CentOS系統自帶的更新源的速度實在是慢,爲了讓CentOS6使用速度更快的YUM更新源,能夠選擇163(網易)的更新源。web
1.下載repo文件spa
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
code
2.備份並替換系統的repo文件orm
[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
ci
get
it
3.執行yum源更新form
[root@localhost ~]# yum clean all[root@localhost ~]# yum makecache[root@localhost ~]# yum update
class
transform