centos7安装kernel 4.x

Install Linux Kernel 4.4.5 LTS in CentOS 7

I tested this tutorial on CentOS 7 64 bit edition. Although, these steps should work on RHEL 7.

Note: Since this kernel is just released, the latest kernel haven’t pushed into the ELRepo yet. It stills shows the 4.4.4 version. I think the latest kernel will be pushed to the repository in few hours.

To install the latest kernel, add ELRepo repository.

Add ELRepo GPG key:

1
# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

Then, add ELRepo in CentOS 7 / RHEL 7 / Scientific Linux 7 using command:

1
# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

Enable ELRepo fastest mirror using by installing the following package:

1
# yum install yum-plugin-fastestmirror

We have added the ELRepo. Now, it is time to install Linux kernel 4.4.1 LTS.

1
2
# uname -r
# yum --enablerepo=elrepo-kernel install kernel-ml

After installing the Kernel, Reboot your system and select the latest Kernel from the Grub boot menu.
kernel

Check the Kernel version using command:

1
# uname -r

Sample output:

1
4.4.4-1.el7.elrepo.x86_64

Congratulation! Your CentOS 7 system is currently running on Kernel 4.4.4.

Have any problems after installing Linux Kernel 4.4.x? No worries, reboot your system. Select your previously working Kernel from the Boot menu.

kernel

Then, remove the newly installed Kernel using command:

1
# yum remove kernel-ml