1.以root用戶進(jìn)入CentOS系統(tǒng)。
[root@chenlb ~]# cd /etc/yum.repos.d
2.備份repo
[root@chenlb yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.save
3.從USTC下載新的repo
[root@chenlb yum.repos.d]# wget http://centos.ustc.edu.cn/CentOS-Base.repo
現(xiàn)在可以yum了。^_^
鏈接:http://centos.ustc.edu.cn/