分类: LINUX
2017-04-19 16:01:18
1:备份你的原镜像文件。
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak2:下载新的CentOS-Base.repo 到/etc/yum.repos.d/
CentOS 5 wget -O /etc/yum.repos.d/CentOS-Base.repo CentOS 7 wget -O /etc/yum.repos.d/CentOS-Base.repo
enabled=0]
yum clean all yum makecache