CentOS 更新yum源
2016-12-13 13:58
337 查看
将yum源设置为国内yum源,可以提升软件包安装和更新的速度,同时避免一些常见软件版本无法找到。
国内源:可以使用wget获取或者直接下载
网易:
Centos5: http://mirrors.163.com/.help/CentOS5-Base-163.repo
Centos6: http://mirrors.163.com/.help/CentOS6-Base-163.repo
Centos7: http://mirrors.163.com/.help/CentOS7-Base-163.repo
中科大的yum源:
Centos5: https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=1
Centos6: https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=2
Centos7: https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=3
sohu的yum源:
http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
2、下载对应版本的CentOS-Base.repo, 放入/etc/yum.repos.d/ (可以直接cd /etc/yum.repos.d/ 然后使用wget下载)
3、运行以下命令生成缓存
国内源:可以使用wget获取或者直接下载
网易:
Centos5: http://mirrors.163.com/.help/CentOS5-Base-163.repo
Centos6: http://mirrors.163.com/.help/CentOS6-Base-163.repo
Centos7: http://mirrors.163.com/.help/CentOS7-Base-163.repo
中科大的yum源:
Centos5: https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=1
Centos6: https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=2
Centos7: https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=3
sohu的yum源:
http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
安装步骤
1、首先备份CentOS-Base.repomv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载对应版本的CentOS-Base.repo, 放入/etc/yum.repos.d/ (可以直接cd /etc/yum.repos.d/ 然后使用wget下载)
3、运行以下命令生成缓存
yum clean all yum makecache
相关文章推荐
- CentOS更新yum源
- CentOS更新163 yum源
- CentOS7.2更改yum源与更新系统
- CentOS更改yum源与更新系统
- centos更新yum源
- CentOS更新yum源
- Red Hat 更新yum源为centos,并安装c环境
- CentOS更改yum源与更新系统
- centos更新yum源
- centos6.2更新yum源
- [原]CentOS 6.2(32位)如何使用YUM源更新的方法
- CentOS更新yum源
- 将CentOS系统软件包yum源更新为阿里云
- centos6.2更新yum源
- CentOS 更改yum源与更新系统
- Centos6.0 yum源更新设置
- Centos6.5通过创建局域网http实现yum源的更新
- CentOS更改yum源与更新系统
- Centos 7 更新yum源
- Red Hat 6.2 64如何使用Centos的YUM源更新两种方法