CentOS 更改yum源
2015-04-23 11:07
316 查看
转自:/article/5568273.html
CentOS更改yum源
[1] 首先备份/etc/yum.repos.d/CentOS-Base.repo
[2] 进入yum源配置文件所在文件夹
[3] 下载163的yum源配置文件,放入/etc/yum.repos.d/(操作前请做好相应备份)
CentOS更改yum源
[1] 首先备份/etc/yum.repos.d/CentOS-Base.repo
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
[2] 进入yum源配置文件所在文件夹
[root@localhost yum.repos.d]# cd /etc/yum.repos.d/
[3] 下载163的yum源配置文件,放入/etc/yum.repos.d/(操作前请做好相应备份)
[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo[/code]
[4] 重命名文件[root@localhost yum.repos.d]#mv CentOS6-Base-163.repo CentOS-Base.repo
[5] 运行yum makecache生成缓存[root@localhost yum.repos.d]# yum makecache
[6] 更新系统(可选)[root@localhost yum.repos.d]# yum -y update
[7] 安装vim编辑器(可选)[root@localhost ~]# yum -y install vim*
相关文章推荐
- CentOS更改yum源
- CentOS更改yum源与更新系统
- centos6.5更改为163的yum源
- CentOS更改yum源与更新系统
- CentOS 6 yum源更改为163源
- CentOS 6.3 更改yum源 换成163
- 在CentOS 7下更改yum源与更新系统。
- centos6.5的yum源更改成163的源
- CentOS6.5系统更改yum源为16
- CentOS更改yum源与更新系统
- CentOS更改yum源与更新系统
- CentOS更改yum源与更新系统
- CentOS更改yum源与更新系统
- CentOS更改yum源与更新系统
- Centos 6.5系统更改yum源为163
- CentOS更改yum源与更新系统
- CentOS 6 yum源更改
- Centos系统更改 yum源为163
- centos更改yum源
- 更改centos 5 yum源