CentOS系統自帶的更新源的速度實在是慢,爲了讓CentOS6使用速度更快的YUM更新源,能夠選擇163(網易)的更新源。shell
# cd /etc/yum.repos.d/ # wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
備份並替換系統的repo文件spa
# mv CentOS-Base.repo CentOS-Base.repo.bak # mv CentOS6-Base-163.repo CentOS-Base.repo
執行yum源更新code
# yum clean all # yum makecache # yum update