首先修改配置文件
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls rhel-debuginfo.repo rhel-source.repo [root@localhost yum.repos.d]# cp rhel-debuginfo.repo server.repo [root@localhost yum.repos.d]# vim server.repo[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug baseurl=http://mirrors.163.com/centos/5/os/i386/ enabled=1 gpgcheck=1 gpgkey=http://mirrors.163.com/centos/5/os/i386/RPM-GPG-KEY-CentOS-5更新yum源
[root@localhost yum.repos.d]# yum clean all
Loaded plugins: rhnplugin, security Repository rhel-debuginfo is listed more than once in the configuration Repository rhel-debuginfo-beta is listed more than once in the configuration Cleaning up Everything [root@localhost yum.repos.d]# yum update