centos7 修改yum源

2017-02-15 22:19:45 9929

centos7 修改yum源为阿里源,某下网络下速度比较快 首先是到yum源设置文件夹里

1.安装base reop源

   cd /etc/yum.repos.d11

接着备份旧的配置文件

   sudo mv CentOS-Base.repo CentOS-Base.repo.bak11

下载阿里源的文件

   sudo wget -O CentOS-Base.repo http://www.landui.com/repo/Centos-7.repo11

2 安装epel repo源:

epel(RHEL 7)

    wget -O /etc/yum.repos.d/epel.repo http://www.landui.com/repo/epel-7.repo11

epel(RHEL 6)

    wget -O /etc/yum.repos.d/epel.repo http://www.landui.com/repo/epel-6.repo11

epel(RHEL 5)

    wget -O /etc/yum.repos.d/epel.repo http://www.landui.com/repo/epel-5.repo11

3.清理缓存

yum clean all11

4.重新生成缓存

yum makecache


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: