CentOS 5 yum更新源推荐--163、搜狐、中科大


CentOS 5 yum更新源推荐-

-163、搜狐、中科大


本文章介绍的yum源支持的版本是CentOS 5系列,理论上支持RHEL5系列。

更新方法如下:
########################

以超级用户登录

先关闭fastestmirror “vi /etc/yum/pluginconf.d/fastestmirror.conf”

and set “enable=0″

 


先进入yum源配置目录
cd /etc/yum.repos.d

备份系统自带的yum源
mv CentOS-Base.repo CentOS-Base.repo.save

下载其他更快的yum源
中科大的yum源:
wget http://centos.ustc.edu.cn/CentOS-Base.repo

163的yum源:
wget http://mirrors.163.com/.help/CentOS-Base-163.repo

sohu的yum源
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo

更新玩yum源后,建议更新一下,使操作立即生效
yum makecache

 

yum makecache

yum update

将fastestmirror.conf文件修改回来。

########################

posted @ 2012-07-28 14:55  像块石头  阅读(683)  评论(0)    收藏  举报