centos更改yum源
2013-08-26 12:14
363 查看
在centos下面,我们经常使用yum安装一些软件包。有些情况下,使用默认的yum源安装软件,下载速度比较慢。我比较推荐使用的网易的163镜像服务器,更新速度比较快。
更改使用163yum源的方法比较简单,步骤如下:
1、首先备份默认的yum源文件/etc/yum.repos.d/CentOS-Base.repo
# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份)
wget http://mirrors.163.com/.help/CentOS5-Base-163.repo
(这个centos5的yum源配置文件下载地址,centos6的下载地址见http://mirrors.163.com/.help/centos.html)
3、运行yum makecache生成缓存
#yum makecache
完成这些步骤之后,就可以使用163yum源安装和更新软件包
参考:http://mirrors.163.com/.help/centos.html
更改使用163yum源的方法比较简单,步骤如下:
1、首先备份默认的yum源文件/etc/yum.repos.d/CentOS-Base.repo
# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份)
wget http://mirrors.163.com/.help/CentOS5-Base-163.repo
(这个centos5的yum源配置文件下载地址,centos6的下载地址见http://mirrors.163.com/.help/centos.html)
3、运行yum makecache生成缓存
#yum makecache
完成这些步骤之后,就可以使用163yum源安装和更新软件包
参考:http://mirrors.163.com/.help/centos.html
相关文章推荐
- CentOS更改yum源
- CentOS7.2更改yum源与更新系统
- Centos系统更改 yum源为163
- [转]CentOS更改yum源与更新系统
- 更改centos 5 yum源
- CentOS7.2更改yum源与更新系统
- CentOS6.3更改yum源换成163
- CentOS更改yum源与更新系统
- CentOS更改yum源
- CentOS-5.5 Yum源配置更改
- Centos 5.3更改yum源为163和sohu
- CentOS 6.3 更改yum源 换成163
- RHEL6.5 7.2更改为阿里云(aliyun)CentOS6 163 CentOS7的yum源
- Centos系统更改yum源为163
- CentOS更改yum源与更新系统
- CentOS更改yum源与更新系统
- CentOS6.3从光盘安装gcc(更改yum源)[转]
- CentOS更改yum源与更新系统
- CentOS 更改yum源
- CentOS更改yum源与更新系统