****centos7优化yum(下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/)
1、优化基础的yum源文件
通过阿里镜像源进行优化: curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2、优化扩展的yum源文件
通过阿里镜像源进行优化: wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
检查可用的yum源信息
yum makecache
yum repolist