LinuxSir.cn,穿越时空的Linuxsir!

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

如何停止一个yum源的更新。

[复制链接]
发表于 2007-8-30 13:39:40 | 显示全部楼层 |阅读模式
用yum安装软件包,有四个源分别为一、二、三、四。
知道自己要装的包不在四里面,可不可以使第四源失效,而只更新一、二、三的源?
下那个primary.xml.gz太麻烦了。老是checksum错误。
发表于 2007-8-30 15:18:41 | 显示全部楼层
yum --help:

Options:
  -h, --help            show this help message and exit
  -t, --tolerant        be tolerant of errors
  -C                    run entirely from cache, don't update cache
  -c  [config file]     config file location
  -R  [minutes]         maximum command wait time
  -d  [debug level]     debugging output level
  -e  [error level]     error output level
  -y                    answer yes for all questions
  --version             show Yum version and exit
  --installroot=[path]  set install root
  --enablerepo=[repo]   enable one or more repositories (wildcards allowed)
  --disablerepo=[repo]  disable one or more repositories (wildcards allowed)

  -x [package], --exclude=[package]
                        exclude package(s) by name or glob
  --obsoletes           enable obsoletes processing during updates
  --noplugins           disable Yum plugins
  --nogpgcheck          disable gpg signature checking
  --disableplugin=[plugin]
                        disable plugins by name
回复 支持 反对

使用道具 举报

发表于 2007-8-30 15:48:26 | 显示全部楼层
对于不常用的源我基本上是把它关掉, /etc/yum.repos.d/四.repo里面设置enalbed=0

需要的时候再用 --enablerepo 把它打开
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-30 16:02:56 | 显示全部楼层
谢了,楼上两位。
回复 支持 反对

使用道具 举报

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

本版积分规则

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