下载yum源1


[root@node2 ~]# rpm -ivh http://mirrors.ustc.edu.cn/fedora/epel//5/x86_64/epel-release-5-4.noarch.rpm
Retrieving http://mirrors.ustc.edu.cn/fedora/epel//5/x86_64/epel-release-5-4.noarch.rpm
warning: /var/tmp/rpm-xfer.uEWGD9: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing...                ########################################### [100%]
   1:epel-release           ########################################### [100%]
You have new mail in /var/spool/mail/root
[root@node2 ~]# rpm -ql epel-release
/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
/etc/yum.repos.d/epel-testing.repo
/etc/yum.repos.d/epel.repo
/usr/share/doc/epel-release-5
/usr/share/doc/epel-release-5/GPL


下载yum源2


[root@node1 ~]# rpm -ivh http://www.elrepo.org/elrepo-release-5-5.el5.elrepo.noarch.rpm
Retrieving http://www.elrepo.org/elrepo-release-5-5.el5.elrepo.noarch.rpm
warning: /var/tmp/rpm-xfer.XaLtH0: Header V4 DSA signature: NOKEY, key ID baadae52
Preparing...                ########################################### [100%]
   1:elrepo-release         ########################################### [100%]
[root@node1 ~]# rpm -ql elrepo-release
/etc/pki/rpm-gpg
/etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
/etc/yum.repos.d
/etc/yum.repos.d/elrepo.repo