centos添加 中国科技大学yum源
首先备份CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载对应版本的CentOS-Base.repo, 放入/etc/yum.repos.d/
这是CentOS 5的:
wget http://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=1
这是CentOS 6的:
wget http://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=2
下载完成后 :
运行yum makecache生成缓存 ,运行 yum update升级软件包

浙公网安备 33010602011771号