moneyslow.com

CentOSyum升级软件不升级内核

CentOS升级软件时不升级内核的命令如下 CentOS7.5/7.6 yum update --exclude "kmod-kvdo*,kernel*,centos-release*" -y CentOS7.2/7.3/7.4 yum update --exclude "initscripts*,kernel*,centos-release*" -y CentOS6.8/6.9 yum update --exclude "kernel*,centos-release*" -y

如果不小心升级了内核,如何修改启动时默认加载的内核 CentOS7修改内核顺序 参考https://blog.csdn.net/qq_23039185/article/details/81479603

1、查看当前系统内核 uname -r

2、查看当前默认内核启动项 grub2-editenv list

3、更改默认启动内核项 grub2-set-default 1(改成你要改的内核对应的数字)

4、重启系统 reboot 查看当前系统内核 uname -r

Exit mobile version