博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【转载】yum update 自动忽略内核更新
阅读量:4205 次
发布时间:2019-05-26

本文共 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/

你可能感兴趣的文章
【一天一道LeetCode】#45. Jump Game II
查看>>
【一天一道LeetCode】#46. Permutations
查看>>
【一天一道LeetCode】#47. Permutations II
查看>>
【一天一道LeetCode】#48. Rotate Image
查看>>
【一天一道LeetCode】#56. Merge Intervals
查看>>
【一天一道LeetCode】#57. Insert Interval
查看>>
【一天一道LeetCode】#58. Length of Last Word
查看>>
【一天一道LeetCode】#59. Spiral Matrix II
查看>>
【一天一道LeetCode】#30. Substring with Concatenation of All Words
查看>>
【一天一道LeetCode】#60. Permutation Sequence.
查看>>
【一天一道LeetCode】#113. Path Sum II
查看>>
【一天一道LeetCode】#114. Flatten Binary Tree to Linked List
查看>>
【unix网络编程第三版】阅读笔记(二):套接字编程简介
查看>>
【一天一道LeetCode】#115. Distinct Subsequences
查看>>
【一天一道LeetCode】#116. Populating Next Right Pointers in Each Node
查看>>
【一天一道LeetCode】#117. Populating Next Right Pointers in Each Node II
查看>>
【一天一道LeetCode】#118. Pascal's Triangle
查看>>
【一天一道LeetCode】#119. Pascal's Triangle II
查看>>
【unix网络编程第三版】ubuntu端口占用问题
查看>>
【一天一道LeetCode】#120. Triangle
查看>>