1、进行文件备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
2、下载对应版本repo文件
网易yum镜像路径 http://mirrors.163.com/.help/centos.html
3、进行清除
yum clean all
4、重新生成缓存
yum makecache
1、进行文件备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
2、下载对应版本repo文件
网易yum镜像路径 http://mirrors.163.com/.help/centos.html
3、进行清除
yum clean all
4、重新生成缓存
yum makecache