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

猜你喜欢

转载自www.cnblogs.com/SDYiHeng/p/9655114.html