CentOS配置163的yum源

Posted 寅春树

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS配置163的yum源相关的知识,希望对你有一定的参考价值。

1:下载repo文件

wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

 

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

[[email protected] ~]# cd /etc/yum.repos.d/

[[email protected] ~]# mv CentOS-Base.repo CentOS-Base.repo.bak

[[email protected] ~]# mv CentOS6-Base-163.repo CentOS-Base.repo

 

3:执行yum源更新命令

[[email protected] ~]# yum clean all

[email protected] ~]# yum makecache

[[email protected] ~]# yum update

以上是关于CentOS配置163的yum源的主要内容,如果未能解决你的问题,请参考以下文章