|
|
发表于 2008-3-6 17:42:24
|
显示全部楼层
Post by zealoghu;1823706
如何让yum的自动更新,或者yum update不更新某些我不想升级的包?
以Fedora 8为例,自动更新可以如下设置。
$ su
Password: *******
# gedit /etc/yum/yum-updatesd.conf
[main]
# how often to check for new updates (in seconds)
#多久检查一次更新,我设置成7天
run_interval = 604800
# how often to allow checking on request (in seconds)
updaterefresh = 600
# how to send notifications (valid: dbus, email, syslog)
emit_via = dbus
# should we listen via dbus to give out update information/check for
# new updates
dbus_listener = yes
# automatically install updates
#是否自动安装,yes为自动安装。
do_update = [color="Red"]no
# automatically download updates
#是后台自动下载软件包,yes为自动
do_download = [color="Red"]no
# automatically download deps of updates
#是否自动下载依赖关系包,yes为自动
do_download_deps = [color="Red"]no
[color="Red"]以上三项中任何一项为 yes 会导致软件安装程序在后台被锁死,无法在前台运行任何安装程序。 |
|