CentOS 国内yum源
实验环境
CentOS6
CentOS 默认已安装yum源
[root@admxj ~]# ls /etc/yum.repos.d/
CentOS-Base.repo CentOS-Media.repo
CentOS-Debuginfo.repo CentOS-Vault.repo
CentOS-fasttrack.repo
[root@admxj ~]#
将已经存在的yum改名
[root@admxj ~]# cd /etc/yum.repos.d/
[root@admxj yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak
获取163的yum源
[root@admxj yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo /etc/yum.repos.d/
[root@admxj yum.repos.d]# ls /etc/yum.repos.d/
CentOS6-Base-163.repo CentOS-Debuginfo.repo CentOS-Media.repo
CentOS-Base.repo.bak CentOS-fasttrack.repo CentOS-Vault.repo
[root@admxj yum.repos.d]# yum clean all
[root@admxj yum.repos.d]# yum makecache
此时163的源就已经OK了
另外提供几个其他的yum源
中科大的yum源:
wget http://centos.ustc.edu.cn/CentOS-Base.repo
sohu的yum源
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
阿里云的yum源
wget http://mirrors.aliyun.com/repo/Centos-6.repo