yum 源手动替换

* 备份原有yum源:

    mv /etc/yum.repos.d /etc/yum.repos.d.bak

* 创建yum源目录

   mkdir /etc/yum.repos.d

* 下载阿里云yum源配置

   wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

* 重建缓存

   yum clean all
  yum makecache