美文网首页
CentOS 7 更换yum 源

CentOS 7 更换yum 源

作者: 6309b0eed1c7 | 来源:发表于2020-12-15 16:11 被阅读0次

1、进入目录:/etc/yum.repos.d

2、备份:

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

3、更换新的源;

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

(注:阿里源:https://developer.aliyun.com/mirror/)

4、清空缓存

yum clean all

5、建立缓存

yum makecache

相关文章

网友评论

      本文标题:CentOS 7 更换yum 源

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