Main menu

How to install latest kernel in CentOS with YUM

As you many know, Kernel 4.x.x has been released with tones of changes and enhancements. We all know new kernel always have latest drivers, support for new devices, new features, filesystem enhancements.The feature that all Linux IT guys awaits for, yes it’s Live kernel patching permit a user to update and patch kernel without a reboots. In this article we will install latest kernel in CentOS with YUM repository.

The ELRepo Project focuses on hardware related packages to enhance your experience with Enterprise Linux. This includes filesystem drivers, graphics drivers, network drivers, sound drivers, webcam and video drivers

Import ELRepo gpg key in your system.

rpm --import

Installing the ELRepo repository on CentOS6 or CentOS7

# rpm -Uvh
# rpm -Uvh

Install latest version of kernel from ELRepo repository. kernel-ml package has the latest kernel for your Distribution.  It will install latest kernel-ml package and update your GRUB.

# yum --enablerepo=elrepo-kernel install kernel-ml

Reboot and choose latest kernel from 4.x.x series.

# reboot

If yo want to remove kernel from ELRepo repository and use the official kernel from CentOS or RedHat.

# yum remove kernel-ml

It’s always a good idea to update your kernel for better performance and Hardware support.