cd /etc/yum.repos.d/
cp rhel-debuginfo.repo rhel-debuginfo.repo.bak
先删除rhel-debuginfo.repo文件中所有内容,然后复制添加以下内容:
[base]name=centos-5 - Basebaseurl=# the other site: # you can find more site in: enabled=1gpgcheck=0gpgkey=RPM-GPG-KEY-CentOS-5#released updates[update]name=CentOS-5 - Updatesbaseurl=gpgcheck=0gpgkey=RPM-GPG-KEY-CentOS-5#packages used/produced in the build but not released[addons]name=CentOS-5 - Addonsbaseurl=gpgcheck=0gpgkey=RPM-GPG-KEY-CentOS-5#additional packages that may be useful[extras]name=CentOS-5 - Extrasbaseurl=gpgcheck=0gpgkey=#additional packages that extend functionality of existing packages[centosplus]name=CentOS-5 - Plusbaseurl=gpgcheck=0enabled=0gpgkey=RPM-GPG-KEY-CentOS-5#contrib - packages by Centos Users[contrib]name=CentOS-5 - Contribbaseurl=gpgcheck=0enabled=0gpgkey=RPM-GPG-KEY-CentOS-5#packages in testing[testing]name=CentOS-5 - Testingbaseurl=gpgcheck=0enabled=0gpgkey=RPM-GPG-KEY-CentOS-5
记里记住把gpgcheck=1置换成gpgcheck=0.不然用一阵子后出现gpgkey错误的提示。
然后导入key
rpm --import
这个源地址应该是国内比较快的一个yum库了。
阅读(679) | 评论(0) | 转发(0) |