LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1010|回复: 4

yum自动更新问题

[复制链接]
发表于 2008-3-6 13:04:46 | 显示全部楼层 |阅读模式
如何让yum的自动更新,或者yum update不更新某些我不想升级的包?
发表于 2008-3-6 15:05:39 | 显示全部楼层
如果是只想进行安全升级可以试试 Security Plugin 插件。
yum 的插件可以实现不少功能,参考一下这里:
http://fedoraproject.org/wiki/Do ... uide/CustomizingYum
回复 支持 反对

使用道具 举报

发表于 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 会导致软件安装程序在后台被锁死,无法在前台运行任何安装程序。
回复 支持 反对

使用道具 举报

发表于 2008-3-8 14:46:38 | 显示全部楼层
楼上,楼主所问好像与你的回答对不上吧?
回复 支持 反对

使用道具 举报

发表于 2008-3-8 17:14:44 | 显示全部楼层
yum --help 有除外功能的参数
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表