How To Update CentOS Kernel¶
When using CentOS, the Kernel should be updated to 4.4.
To update the kernal, follow these steps:
Check the current kernel version:
uname –msr
Update CentOS repositories:
sudo yum –y update
Enable the ELRepo repository:
sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org sudo rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
List available kernels:
yum list available --disablerepo='*' --enablerepo=elrepo-kernel
Install the new kernel version to 4.4.203-LT (LT signifies a stable long-term support release)
sudo yum –enablerepo=elrepo-kernel install kernel-lt
Reboot and select the new kernel. After the machine is rebooted you can select the new kernel from a list (using the arrows) - then press Enter.
Verify the machine functions as usuall
Set the default kernel version:
sudo vim /etc/default/grub
Search for the line that says GRUB_DEFAULT=X*, and change it to GRUB_DEFAULT=0* (zero). Save. Recreate the kernel configuration:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Reboot once more.
To continue with the requirements, go here.