需要下载三个rpm包
wget http://mirrors.coreix.net/elrepo-archive-archive/kernel/el7/x86_64/RPMS/kernel-lt-devel-4.4.215-1.el7.elrepo.x86_64.rpm
wget http://mirrors.coreix.net/elrepo-archive-archive/kernel/el7/x86_64/RPMS/kernel-lt-headers-4.4.215-1.el7.elrepo.x86_64.rpm
wget http://mirrors.coreix.net/elrepo-archive-archive/kernel/el7/x86_64/RPMS/kernel-lt-4.4.215-1.el7.elrepo.x86_64.rpm
安装
rpm -ivh kernel-lt-4.4.215-1.el7.elrepo.x86_64.rpm
rpm -ivh kernel-lt-devel-4.4.215-1.el7.elrepo.x86_64.rpm
查看
rpm -qa | grep kernel
kernel-3.10.0-1127.el7.x86_64
kernel-lt-devel-5.4.278-1.el7.elrepo.x86_64
abrt-addon-kerneloops-2.1.11-57.el7.centos.x86_64
kernel-tools-libs-3.10.0-1127.el7.x86_64
kernel-tools-3.10.0-1127.el7.x86_64
kernel-headers-3.10.0-1160.118.1.el7.x86_64
kernel-lt-5.4.278-1.el7.elrepo.x86_64
设置启动时的默认内核
awk -F' '$1=="menuentry " {print $2}' /etc/grub2.cfg
grub2-set-default 0
重启
reboot
标签:升级,x86,kernel,elrepo,centos7,64,内核,rpm,el7 From: https://www.cnblogs.com/kkit/p/18398521