更换 CentOS 7 的下载源为阿里云
2017-01-11 16:15
316 查看
1、备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo[/code]
CentOS 6wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo[/code]
CentOS 7wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo[/code]
3、之后运行yum makecache生成缓存
http://mirrors.aliyun.com/help/centos
相关文章推荐
- 更换CentOS 7 的下载源为阿里云
- 更换 CentOS 7 的下载源为阿里云
- 更换 CentOS 7 的下载源为阿里云
- 将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源(亲测可用)
- Centos的yum源更换为阿里云源
- CentOS更换阿里云源
- 将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源
- 将Centos的yum源更换为国内的阿里云源
- centos 6.6中的yum源更换成国内的阿里云yum源
- 更换CentOS7的下载源为阿里云
- Centos的yum源更换为阿里云源
- 将Centos的yum源更换为国内的阿里云源
- Centos的yum源更换为阿里云源
- 更换CentOS7的下载源为阿里云
- 将Centos的yum源更换为国内的阿里云源
- Centos的yum源更换为国内的阿里云源