CentOS使用yum的elrepo源升级内核
1、 导入public key
参考:http://elrepo.org/tiki/tiki-index.php
Import the public key:
Detailed info on the GPG key used by the ELRepo Project can be found on https://www.elrepo.org/tiki/key
If you have a system with Secure Boot enabled, please see the SecureBootKey page for more information.
To install ELRepo for RHEL-8 or CentOS-8:
To make use of our mirror system, please also install yum-plugin-fastestmirror.
To install ELRepo for RHEL-7, SL-7 or CentOS-7:
To make use of our mirror system, please also install yum-plugin-fastestmirror.
To install ELRepo for RHEL-6, SL-6 or CentOS-6:
To make use of our mirror system, please also install yum-plugin-fastestmirror.
2、查看kernel
yum --enablerepo=elrepo-kernel list |grep kernel*
安装kernel-ml(ml=mainline)
yum --enablerepo=elrepo-kernel install kernel-ml -y
3、 更改/etc/default/grub
4、更新grub.conf
grub2-mkconfig -o /boot/grub2/grub.cfg
5、 重启shutdown -r now
来源:https://www.cnblogs.com/dream397/p/12376167.html