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 https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
Installing the ELRepo repository on CentOS6 or CentOS7
CentOS7 # rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm CentOS6 # rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
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.
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.