1. 程式人生 > >centos7 升級內核

centos7 升級內核

grub num pre pan eas -s oar subst 默認

查看當前

uname -r

1.導入key

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

2.安裝elrepo的yum源

rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

3.安裝內核

yum --enablerepo=elrepo-kernel install kernel-ml-devel kernel-ml

4.查看默認啟動順序

awk -F\‘ ‘$1=="menuentry " {print $2}‘ /etc/grub2.cfg

grub2-set-default 0

刪除舊內核

yum remove kernel

centos7 升級內核