配置yum的安装源
配置yum的安装源
yum的配置文件是 /etc/yum.conf
, 安装源的配置在目录 /etc/yum.repos.d
中.
把不用的安装源配置文件备份或删除, 重新编辑一个配置文件,
将要用的源配置粘贴.
然后执行 yum clean all && yum makecache
重新更新一下仓库文件缓存.
一个可用的源配置:
# centos 5.x
wget http://mirrors.163.com/.help/CentOS5-Base-163.repo
# centos 6.x
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
refs: