使用yum update更新文件系统时不更新内核的方法

CentOS使用yum update更新时不升级内核           

cp /etc/yum.conf    /etc/yum.confbak

方法一、修改yum的配置文件

vi /etc/yum.conf  在[main]的最后添加

exclude=kernel*

exclude=centos-release*

方法二、直接在yum的命令后面加上如下的参数:

yum --exclude=kernel* update

查看系统版本  cat /etc/issue

查看内核版本  uname -a

bingo!!!
原文地址:https://www.cnblogs.com/jians/p/11940292.html