需要下載三個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