Centos-7停止维护后的yum换源
cd /etc/yum.repos.d/
yum repolist 查看仓库
rm -rf * 删除yum.repos.d目录下所有文件
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo 下载仓库
curl -o /etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-7.repo
yum install all 更新缓存
yum clean all 清理yum缓存
yum makecache 更新yum缓存