http://www.wangdanwei.com/?p=192
CentOS 默认yum源, 速度实在不咋地,所以我们要修改 CentOS 镜像源
1. 搜狐镜像 (网通。北方的同学们用这个应该速度还不错。)
# cd /etc/yum.repos.d
# mv CentOS-Base.repo CentOS-Base.repo.save
# wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
# mv CentOS-Base-sohu.repo CentOS-Base.repo
# rpm –import http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-5
2. 中科大镜像 (这个正好地处在中部)
# cd /etc/yum.repos.d
# mv CentOS-Base.repo CentOS-Base.repo.save
# wget http://centos.ustc.edu.cn/CentOS-Base.repo.5
# mv CentOS-Base.repo.5 CentOS-Base.repo
3. 修改 CentOS 的 fastmirror
您还需要确认是否安装的yum的fastmirror插件,它用来寻找最快的镜像,因为我们手动修改了源,所以就把fastmirror禁用。
# vi /etc/yum/pluginconf.d/fastestmirror.conf
enabled=0