首页 > Linux操作系统 > Linux操作系统 > CentOS配置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
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7719012/viewspace-1795014/ ,如需转载,请注明出处,否则将追究法律责任。