centos6更新yum源为阿里云
2017-05-11 22:54
447 查看
[1] 首先备份/etc/yum.repos.d/CentOS-Base.repo
[2] 进入yum源配置文件所在文件夹
[3] 下载163或者阿里云的yum源配置文件,放入/etc/yum.repos.d/(操作前请做好相应备份)
163:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
[2] 进入yum源配置文件所在文件夹
cd /etc/yum.repos.d/
[3] 下载163或者阿里云的yum源配置文件,放入/etc/yum.repos.d/(操作前请做好相应备份)
163:
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo[/code]
centos5:wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo[/code]
centos6:wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo[/code]
centos7:wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo[/code]
[4] 运行yum makecache生成缓存yum makecache
[5] 更新系统yum -y update
参考链接:
centOS更改yum源与更新系统
超简单将Centos的yum源更换为国内的阿里云源
相关文章推荐
- 将CentOS系统软件包yum源更新为阿里云
- linux 更新yum源 改成阿里云源
- Centos7更新阿里云yum源
- CentOS6阿里云yum源配置
- 阿里云服务器yum源更新问题
- 阿里云服务器yum源出错和更新等问题
- 阿里云服务器yum源更新问题
- 阿里云服务器yum源更新问题从何而来
- redhat6.9更新阿里云或者是163的yum源
- Kali Linux系统更改镜像源使用阿里云镜像更新
- CentOS更改yum源与更新系统
- centos6 完全测试 rsync+Inotify实现数据的实时同步更新
- Centos 更新YUM源
- 将Centos的yum源更换为国内的阿里云源
- redhat 使用centos6 yum源
- 超简单将Centos的yum源更换为国内的阿里云源
- CentOS7 yum源 快速转 阿里云
- CentOS 6.5 更新yum源
- CentOS更新yum源
- RedHat6使用centos6的yum源