{{tag>centos microcode cpu}}
====== Update Microcode ======
This example is for Intel CPU Microcode.

===== Install the necessary packages =====
<sxh bash>
yum install linux-firmware microcode_ctl
</sxh>

===== Check for current version =====
<sxh bash>dmesg | grep 'microcode'</sxh>

==== Example Result ====
<sxh bash>
[    0.872172] microcode: sig=0x906e9, pf=0x2, revision=0x5e
[    0.872692] microcode: Microcode Update Driver: v2.2.
</sxh>

===== Unpack microcode archive =====
<sxh bash>tar zxfv microcode-20180108.tgz</sxh>

===== Copy new microcode =====
==== Check reload exists : ====
<sxh bash>ls -l /sys/devices/system/cpu/microcode/reload</sxh>

==== Copy all unpacked files of intel-ucode: ====
<sxh bash>cp -v intel-ucode/* /lib/firmware/intel-ucode/</sxh>

==== Set reload to True ====
<sxh bash>echo 1 > /sys/devices/system/cpu/microcode/reload</sxh>

===== Update current initramfs =====
<sxh bash>drakut -f</sxh>

===== Finish =====
Reboot the server.

===== Verify =====
To verify your update you can again:
<sxh bash>dmesg | grep 'microcode'</sxh>

==== Example Result ====
<sxh bash>
After
[    0.000000] microcode: microcode updated early to revision 0x80, date = 2018-01-04
[    0.872172] microcode: sig=0x906e9, pf=0x2, revision=0x80
[    0.872692] microcode: Microcode Update Driver: v2.2.
</sxh>