CentOS 7 upgrade to Kernel 4.14.9




1. Import the ELRepo repository on CentOS 7:

# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm

2. Enable the repo and install the latest mainline kernel:

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

3. Reboot

4. Set the grub default:
Edit the file /etc/default/grub
Set GRUB_DEFAULT=0

5. Configure grub.cfg:

# grub2-mkconfig -o /boot/grub2/grub.cfg

6. Reboot

[root@ConfigNotes ferdy]# uname -sr
Linux 4.14.9-1.el7.elrepo.x86_64

7. Clean up old kernel:

# yum install yum-utils
# package-cleanup --oldkernels

Source: elrepo.org

 

To install kernel-ml-devel, enable [elrepo-kernel] in the elrepo.repo file.

# cd /etc/yum.repos.d/
# vi elrepo.repo

Set enabled=1

[elrepo-kernel]
name=ELRepo.org Community Enterprise Linux Kernel Repository - el7
baseurl=http://elrepo.org/linux/kernel/el7/$basearch/
        http://mirrors.coreix.net/elrepo/kernel/el7/$basearch/
        http://mirror.rackspace.com/elrepo/kernel/el7/$basearch/
        http://repos.lax-noc.com/elrepo/kernel/el7/$basearch/
        http://mirror.ventraip.net.au/elrepo/kernel/el7/$basearch/
mirrorlist=http://mirrors.elrepo.org/mirrors-elrepo-kernel.el7
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
protect=0

Install kernel-ml-devel

# yum install kernel-ml-devel



Published by

Ferdy Mañago

Portland, Oregon