1.//删除原来的源或者备份
rm -rf /etc/yum/.repos.d/*
2.下载yum镜像文件(阿里云)
3.更改源
vi /etc/yum.repos.d/centos-7.repo
4.复制下载文件中的内容至centos-7.repo文档中,按:wq保存退出
yum clean all & yum makecache
1.//删除原来的源或者备份
rm -rf /etc/yum/.repos.d/*
2.下载yum镜像文件(阿里云)
3.更改源
vi /etc/yum.repos.d/centos-7.repo
4.复制下载文件中的内容至centos-7.repo文档中,按:wq保存退出
yum clean all & yum makecache