本文共 547 字,大约阅读时间需要 1 分钟。
命令:yum -y -x 'kernel*' update
修改配置文件的没用
原文:
系统每天凌晨 3 点自动执行 yum update 任务
但升级内核后,会出现下面情况
一些编译软件需要内核模块才能够被调用, 而内核模块需要与当前版本内核编译后才能够使用, 假设内核升级后,之前软件模块是不可兼容的, 需重新编译后才能够再次被调用,甚至可能导致在启动过程中因为无法加载该模块而无法启用某种系统文件而无法正常启用电脑,需现场修复
利用 下面方法进行自动升级过程忽略 kernel 自动更新
yum --exclude=packgeName\* updateyum --exclude=packgeName1\* --exclude=packgeName2\* updateyum -x 'packageName*' updateyum -x 'packageName1*' -x 'packageName2*' update
例如
yum -y --exclude=kernel\* updateyum -y -x 'kernel*' update假如你已经制作自动化脚本, 而不希望修改脚本条件下可参考下面做法
vi /etc/yum.conf[main]exclude=kernel*
转载地址:http://mvmli.baihongyu.com/