参考https://www.cnblogs.com/xjh713/p/7458437.html
备份本地yum源mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak获取阿里yum源配置文件wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo清理缓存重新生成缓存yum clean allyum makecache更新cacheyum makecache更新yumyum -y update
