The solution to solve the problem that CenOS7 cannot directly upgrade the kernel,
[ root@xx ]# yum --enablerepo=elrepo-kernel install kernel-lt -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* elrepo: lon.mirror.rackspace.com
* elrepo-kernel: lon.mirror.rackspace.com
No package kernel-lt available.
Error: Nothing to do
Kernel download address: https://elrepo.org/linux/kernel/el7/x86_64/RPMS/
kernel-lt (lt=long-term) is valid for a long time
kernel-ml (ml=mainline) mainstream version
wget https://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-ml-5.2.4-1.el7.elrepo.x86_64.rpm
rpm -ivh kernel-ml-5.2.4-1.el7.elrepo.x86_64.rpm
# grub2-editenv list
saved_entry=CentOS Linux(3.10.0-327.28.3.el7.x86_64)7(Core)
# awk -F \' '$1=="menuentry "{print i++" : " $2}' /etc/grub2.cfg
0: CentOS Linux(5.2.4-1.el7.elrepo.x86_64)7(Core)1: CentOS Linux(3.10.0-327.28.3.el7.x86_64)7(Core)2: CentOS Linux(3.10.0-327.22.2.el7.x86_64)7(Core)3: CentOS Linux(3.10.0-327.13.1.el7.x86_64)7(Core)4: CentOS Linux,with Linux 0-rescue-cd8c4444947b4b0b818457f51ded6591
grub2-set-default'CentOS Linux (5.2.4-1.el7.elrepo.x86_64) 7 (Core)'
# grub2-editenv list
saved_entry=CentOS Linux(5.2.4-1.el7.elrepo.x86_64)7(Core)
reboot
wget http://ftp.osuosl.org/pub/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-headers-5.2.4-1.el7.elrepo.x86_64.rpm
rpm -ivh kernel-ml-headers-5.2.4-1.el7.elrepo.x86_64.rpm
http://ftp.osuosl.org/pub/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-devel-5.2.4-1.el7.elrepo.x86_64.rpm
rpm -ivh kernel-ml-devel-5.2.4-1.el7.elrepo.x86_64.rpm
( adsbygoogle = window.adsbygoogle || []).push({});
Recommended Posts