教育网可用RHEL5 yum更新源一则
时间:2011-04-22 来源:gary_chen
实际上是USTC的CentOS5的更新源
新建 /etc/yum.repos.d/CentOS-Base.repo文件,内容如下
[base]name=CentOS-5 - Baserepo=osbaseurl=http://centos.ustc.edu.cn/centos/5/os/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
[update]name=CentOS-5 - Updatesbaseurl=http://centos.ustc.edu.cn/centos/5/updates/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
[addons]name=CentOS-5 - Addonsbaseurl=http://centos.ustc.edu.cn/centos/5/addons/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
[extras]name=CentOS-5 - Extrasbaseurl=http://centos.ustc.edu.cn/centos/5/extras/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
[centosplus]name=CentOS-5 - Plusbaseurl=http://centos.ustc.edu.cn/centos/5/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
[contrib]name=CentOS-5 - Contribbaseurl=http://centos.ustc.edu.cn/centos/5/contrib/$basearch/gpgcheck=1enabled=0gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
保存后即可使用 yum -y update来update了