28 uname -a 29 cat /etc/redhat-release 30 rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org 31 rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm 32 yum --disablerepo="*" --enablerepo="elrepo-kernel" list available 33 yum -y --enablerepo=elrepo-kernel install kernel-lt 34 sudo awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg 35 grub2-set-default 0 36 grub2-mkconfig -o /boot/grub2/grub.cfg 37 reboot 41 uname -a
标签:kernel,centos,--,elrepo,升级,grub2,内核,org,rpm From: https://www.cnblogs.com/rtnb/p/16665005.html