将Centos的yum源更换为国内的阿里云源,最新centos8 yum源

政林 2020-01-02 5705浏览 1条评论
首页/正文
分享到: / / / /

将Centos的yum源更换为国内的阿里云源,将Centos的yum源更换为国内的阿里云源,最新centos8 yum源

第一步:备份你的原镜像文件,以免出错后可以恢复。
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
第二步:下载新的CentOS-Base.repo 到/etc/yum.repos.d/

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

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

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

第三步:运行yum makecache生成缓存
yum clean all
yum makecache

查看系统所有可用源
yum repolist enabled

点击这里给我发
消息
最后修改:2020-01-02 21:52:09 © 著作权归作者所有
如果觉得我的文章对你有用,请随意赞赏
扫一扫支付

上一篇

发表评论

评论列表

匿名用户 2022-04-02 17:40:13
Lasix furosemide is a loop diuretic water pill that prevents your body from absorbing too much salt allowing the salt to instead be passed in your urine. Otnwvz [url=https://oscialipop.com]Cialis[/url] Jwvhpz Propecia Varata <a href=https://oscialipop.com>Cialis</a> Because guanylyl cyclase GC inhibitors e. Qqzanx Buying Chloramphenicol https://oscialipop.com - buy cialis online Gwxhaw Atripla
回复