yum syntax to update all except Kernel
Posted sdyiheng
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yum syntax to update all except Kernel相关的知识,希望对你有一定的参考价值。
yum syntax to update all except Kernel
The syntax is:
yum --exclude=packgeName* update
yum --exclude=packgeName1* --exclude=packgeName2* update
yum -x ‘packageName*‘ update
yum -x ‘packageName1*‘ -x ‘packageName2*‘ update
Examples
To prevent yum command from updating the Kernel type:
yum -y --exclude=kernel* update
|
OR
yum -y -x ‘kernel*‘ update
以上是关于yum syntax to update all except Kernel的主要内容,如果未能解决你的问题,请参考以下文章
centos7运行yum报如下提示:Run “yum repolist all“ to see the repos you have
ubuntu16.04 yum报错:There are no enabled repos. Run “yum repolist all“ to see the repos you have.(代码片段