1.安装163的GPG,也可增加其他资

rpm --import http://mirrors.163.com/centos//RPM-GPG-KEY-CentOS-5

 

2.检查GPG Key

rpm -qa gpg-pubkey*

 

3.如果要删除Key,使用以下命令(一般不需执行):

rpm -e gpg-pubkey-e8562897-459f07a4

 

4.复制添加以下更新点插入到rhel-debuginfo.repo文本里后面

vi /etc/yum.repos.d/rhel-debuginfo.repo

 

[base]

name=Red Hat Enterprise Linux $releasever -Base

baseurl=http://mirrors.163.com/centos/5//os/$basearch/

gpgcheck=1

[update]

name=Red Hat Enterprise Linux $releasever -Updates

baseurl=http://mirrors.163.com/centos/5//updates/$basearch/

gpgcheck=1

[extras]

name=Red Hat Enterprise Linux $releasever -Extras

baseurl=http://mirrors.163.com/centos/5//extras/$basearch/

gpgcheck=1

[addons]

name=Red Hat Enterprise Linux $releasever -Addons

baseurl=http://mirrors.163.com/centos/5//addons/$basearch/

gpgcheck=1

 

5.清理yum缓存

yum clean all