yum update 排除一些不要的套件

有些情況不想更新 kernel 或是不想更新 httpd, 可以直接編輯 yum.conf, 加入 exclude=kernel* httpd* 就可以了.

# vi /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=0
plugins=1
metadata_expire=72000
exclude=kernel* httpd*

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.