Centos-7修改yum源(阿里yum源)

 

国外地址yum源下载慢,下到一半就断了,就这个缘由就修改它为国内yum源地址centos

 

国内yum源:缓存

阿里centos7 yum源:http://mirrors.aliyun.com/repo/Centos-7.repocentos7

网易centos7 yum源:http://mirrors.163.com/.help/CentOS7-Base-163.repospa

中科大centos7 yum源:https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=3
code

 

以修改成阿里的yum源blog

 

1. 备份本地yum源get

 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak class

 

2.获取阿里yum源配置文件配置

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

 

3.运行如下命令生成缓存 

 

yum clean all 

yum makecache 

 

OK。。。。。。

相关文章
相关标签/搜索