Install latest Kernel on CentOS 6

Install latest Kernel on CentOS 6

By default CentOS 6 comes with kernel-2.6.x kernel. If you run yum update, it will update the latest kernel in kernel-2.6.x branch. It will not update to other major version.

latest Kernel on CentOS 6

If you wish to upgrade to latest kernel (kernel-3.10.x or kernel-4.10.x), you will need additional repository in your server. For CentOS 6, you can add elrepo which provides latest kernel for CentOS 6.

To add elrepo, you will need to execute following commands one by one:

rpm --import
rpm -Uvh
yum --enablerepo=elrepo-kernel install kernel-lt

Please ensure that elrepo-kernel block is added in your elrepo file. If it is not present, you can manually add the following code:

[elrepo-kernel] Community Enterprise Linux Kernel Repository - el6

This will install latest kernel on your server. Before you reboot your server, please ensure that your hardware supports latest kernel and you have remote access or KVM access. You may need remote access if your server does not boot from the new kernel and you may need to switch back old kernel.

Leave a Reply