执行
Version 5
rpm –import /usr/share/doc/CentOS-release-5/RPM-GPG-KEY*
Version 4
rpm –import /usr/share/doc/centos-release-4/RPM-GPG-KEY*
Version 3
rpm –import /usr/share/doc/centos-release-3/RPM-GPG-KEY-CentOS-3
如果没有找些文件的话,先可以手动去下载到相应的目录:
http://mirror.be10.com/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
http://mirror.be10.com/centos/4/os/i386/RPM-GPG-KEY
http://mirror.be10.com/centos/4/os/i386/RPM-GPG-KEY-centos4
http://mirror.be10.com/centos/3/os/i386/RPM-GPG-KEY-CentOS-3
然后再运行上述命令即可
就可以用 yum 更新了