美文网首页
centos7更换阿里云yum源

centos7更换阿里云yum源

作者: 一念一尘緣 | 来源:发表于2018-12-14 20:32 被阅读0次

1.备份原yum源

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

2.下载阿里云yum源

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

3.清除缓存

yum clean all

4.新缓存

yum makecache

5.更新

yum update

相关文章

网友评论

      本文标题:centos7更换阿里云yum源

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