Before the update, the kernel version was:
uname -r
3.10.0- 327.10.1. el7.x86_64
Upgrade method:
1、 Import key
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
2、 Install elrepo's yum source
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
3、 Install the kernel
yum --enablerepo=elrepo-kernel install kernel-ml-devel kernel-ml
Currently 4.4.4:
==================================================================================
Package architecture version source size
==================================================================================
Installing:
kernel-ml x86_64 4.4.4-1.el7.elrepo elrepo-kernel 38 M
kernel-ml-devel x86_64 4.4.4-1.el7.elrepo elrepo-kernel 10 M
4、 View the default startup sequence
awk -F\' '$1=="menuentry "{print $2}' /etc/grub2.cfg
CentOS Linux(4.4.4-1.el7.elrepo.x86_64)7(Core)
CentOS Linux(3.10.0-327.10.1.el7.x86_64)7(Core)
CentOS Linux(0-rescue-c52097a1078c403da03b8eddeac5080b)7(Core)
The default startup sequence is to start from 0, and the new kernel is inserted from the beginning (the current position is at 0, while 4.4.4 is at 1), so you need to select 0.
grub2-set-default0
Then reboot to use the new kernel, the following is the kernel version used after the restart:
uname -r
4.4.4- 1. el7.elrepo.x86_64
yum remove kernel
( adsbygoogle = window.adsbygoogle || []).push({});
Recommended Posts