使用yum update更新文件系统时不更新内核的方法
方法一、修改yum的配置文件
使用yum update更新时不升级内核,先进行备份以防止修改出错。
cp /etc/yum.conf /etc/yum.confbak
vim /etc/yum.conf 在[main]的最后添加
exclude=kernel*
exclude=centos-release*
方法二、直接在yum的命令后面加上如下的参数
yum --exclude=kernel* update
或者:
yum update --exclude=kernel* --exclude=centos-release* --exclude=initscripts*
linux上 yum update 不更新内核
猜你喜欢
转载自blog.csdn.net/zzhlinux911218/article/details/87914309
今日推荐
周排行