美文网首页
Centos7 更换 yum

Centos7 更换 yum

作者: 风暴白熊 | 来源:发表于2017-01-01 13:20 被阅读11次

备份文件

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

下载新的yum源

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

运行yum makecache生成缓存

yum clean all
yum makecache

相关文章

网友评论

      本文标题:Centos7 更换 yum

      本文链接:https://www.haomeiwen.com/subject/nacivttx.html