Centos配置国内yum源

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

2,备份系统自带的yum源
mv CentOS-Base.repo CentOS-Base.repo.bk
下载163网易的yum源:
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

3,更新玩yum源后,执行下边命令更新yum配置,使操作立即生效
yum makecache

4,除了网易之外,国内还有其他不错的yum源,比如中科大和搜狐的,大家可以根据自己需求下载
中科大的yum源:
wget http://centos.ustc.edu.cn/CentOS-Base.repo

5. 阿里云

   wget  http://mirrors.aliyun.com/repo/Centos-5.repo
  
   wget   http://mirrors.aliyun.com/repo/Centos-6.repo

   wget   http://mirrors.aliyun.com/repo/Centos-7.repo

原文地址:https://www.cnblogs.com/rongfengliang/p/5157213.html