First of all, the RHEL5 system is installed when the Yum, just because if you update the official website unless you are the money to buy the rhel5. Otherwise it would mention
Sign up for something like that. So as long as the Yum update address into open source on the line. The file that qualifies Yum to update the address is in/etc/yum.repos.d/. First put
They are converted to backup files, which are added. bak at the back.
[Root@killgoogle ~]# Mv/etc/yum.repos.d/rhel-debuginfo.repo/etc/yum.repos.d/rhel-debuginfo.repo.bak
[Root@killgoogle ~]# Mv/etc/yum.repos.d/rpmforge.repo.rpmnew/etc/yum.repos.d/rpmforge.repo.rpmnew.bak
To create a new configuration file:
[Root@killgoogle ~]# CD/ETC/YUM.REPOS.D
[Root@killgoogle ~]# Touch Rhel-debuginfo.repo
[Root@killgoogle ~]# Touch Mirrors-rpmforge
[Root@killgoogle ~]# Touch Rpmforge.repo
Write something to the new configuration file:
[Root@killgoogle ~] #vi Rhel-debuginfo.repo
[Base]
Name=centos-5–base
#mirrorlist =http://mirrorlist.centos.org/?release= $releasever 5&arch= $basearch &
Repo=os
#baseurl =http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos5
#released Updates
[UPDATE]
Name=centos-5–updates
#mirrorlist =http://mirrorlist.centos.org/?release=4&arch= $basearch &repo=updates
baseurl=http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos5
#packages used/produced in the builds but not released
[Addons]
Name=centos-5–addons
#mirrorlist =http://mirrorlist.centos.org/?release=4&arch= $basearch &repo=addons
baseurl=http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos5
#additional packages that useful
[Extras]
Name=centos-5–extras
#mirrorlist =http://mirrorlist.centos.org/?release=4&arch= $basearch &repo=extras
baseurl=http://ftp.sjtu.edu.cn/centos/5/extras/$basearch/
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos5
#additional packages that extend functionality of existing packages
[Centosplus]
Name=centos-5–plus
#mirrorlist =http://mirrorlist.centos.org/?release=4&arch= $basearch &repo=centosplus
baseurl=http://ftp.sjtu.edu.cn/centos/5/centosplus/$basearch/
Gpgcheck=1
Enabled=0
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos5
#contrib –packages by Centos Users
[Contrib]
Name=centos-5–contrib
#mirrorlist =http://mirrorlist.centos.org/?release=4&arch= $basearch &repo=contrib
baseurl=http://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/
Gpgcheck=1
Enabled=0
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos5
# VI Dag.repo
[Dag]
Name=dag RPM Repository for RHEL5
baseurl=http://ftp.riken.jp/linux/dag/redhat/el5/en/$basearch/dag/
Enabled=1
Gpgcheck=1
Gpgkey=http://ftp.riken.jp/linux/dag/packages/rpm-gpg-key.dag.txt
————————————
The following error may be reported after the modified use of Yum:
CentOS Yum warning:rpmts_HdrFromFdno:Header V3 DSA signature:nokey, key ID e8562897
Solving method
Reference Warning:rpmts_HdrFromFdno:Header V3 DSA Signature:nokey, key id*****
This is because Yum installed the old version of the GPG keys, the solution is
Referencing rpm–import/etc/pki/rpm-gpg/rpm*
Then install the software will not have this error hint.