centos6.4更新163源

1.备份现在的源文件

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

2.下载163源

cd /etc/yum.repos.d/
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

3.把下载文件改成源文件

mv CentOS6-Base-163.repo CentOS-Base.repo

4.更新列表

yum makecache

5.更新系统

yum update

本文为原创文章,转载请注明出处。

原文链接:http://www.quartlog.com/post/centos6-4更新163源

评论(1)

  • 热 热心网友 2026-10-05

    这个方案我试过,稳定运行好几个月了。

验证码