想了解centos6.4配置163 yum源的方法的相关内容吗,在本文为您仔细讲解centos6.4配置163 yum源的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:centos6.4,yum源,下面大家一起来学习吧。
今天,安装了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