前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >CentOS6 更换yum源的方法

CentOS6 更换yum源的方法

作者头像
互联网-小阿宇
发布2022-11-21 20:31:15
1.3K0
发布2022-11-21 20:31:15
举报
文章被收录于专栏:互联网-小阿宇互联网-小阿宇

CentOS6停止支持有一段时间了,如果你还在用它的话,就需要更新 yum源

代码语言:javascript
复制
rm -rf /etc/yum.repos.d/CentOS-Base.repo
wget http://github.itzmx.com/1265578519/mirrors/master/CentOS/CentOS6-Base-itzmx.repo -O /etc/yum.repos.d/CentOS6-Base-itzmx.repo
rm -rf /etc/yum.repos.d/*pel.repo /etc/yum.repos.d/epel-testing.repo
wget http://github.itzmx.com/1265578519/mirrors/master/EPEL/epel.repo -O /etc/yum.repos.d/epel.repo

如果你的centos6连wget都没的话,你可以用winscp打开 /etc/yum.repos.d/目录

把 http://github.itzmx.com/1265578519/mirrors/master/CentOS/CentOS6-Base-itzmx.repo 和

http://github.itzmx.com/1265578519/mirrors/master/EPEL/epel.repo 两个文件下好以后上传上去。

然后再用yum install wget 安装wget

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021-05-06,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档