当前位置: 移动技术网 > 网络运营>服务器>Linux > centos6.4配置163 yum源的方法

centos6.4配置163 yum源的方法

2019年05月02日  | 移动技术网网络运营  | 我要评论

今天,安装了centos系统,自带的yum源更新太慢,所以更新使用了163的yum源,具体更换方法:

1.下载repo文件:

复制代码 代码如下:

wget http://mirrors.163.com/.help/centos6-base-163.repo

2.备份并替换系统的repo文件

复制代码 代码如下:

[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost ~]# mv centos-base.repo centos-base.repo.bak
[root@localhost ~]# mv centos6-base-163.repo centos-base.repo

3.执行yum源更新

复制代码 代码如下:

[root@localhost ~]# yum clean all
[root@localhost ~]# yum makecache
[root@localhost ~]# yum update

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网