1
2
3
4
5
6
7
8
|
[root@localhost ~]
# lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.5 (Final)
Release: 5.5
Codename: Final
[root@localhost ~]
# uname -a
Linux localhost.localdomain 2.6.18-194.el5
#1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
|
1
|
[root@localhost src]# wget http:
//mirrors.yun-idc.com/epel/5/i386/epel-release-5-4.noarch.rpm
|
1
|
[root@localhost ~]# http:
//mirrors.hust.edu.cn/epel//5/x86_64/epel-release-5-4.noarch.rpm
|
1
2
3
4
|
[root@localhost src]
# rpm -ivh epel-release-5-4.noarch.rpm
warning: epel-release-5-4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing...
########################################### [100%]
1:epel-release
########################################### [100%]
|
1
|
[root@localhost src]
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
|
1
2
3
4
5
6
7
|
[root@localhost src]
# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]
# ll
总计 24
-rw-r--r-- 1 root root 2245 2010-04-26 CentOS-Base.repo
-rw-r--r-- 1 root root 626 2010-04-26 CentOS-Media.repo
-rw-r--r-- 1 root root 954 2010-08-12 epel.repo
#正式版,所有的软件都是稳定可以信赖的
-rw-r--r-- 1 root root 1054 2010-08-12 epel-testing.repo
#最新的测试源
|
1
2
|
[root@localhost yum.repos.d]
# yum clean all
[root@localhost yum.repos.d]
# yum list
|
1
2
3
4
5
|
[root@node1 ~]
# uname -a
Linux node1.
test
.com 2.6.32-358.el6.x86_64
#1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@node1 ~]
# cat /etc/issue
CentOS release 6.4 (Final)
Kernel \r on an \m
|
1
|
[root@node1 src]
# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
|
1
|
[root@node1 ~]# http:
//mirrors.hust.edu.cn/epel//6/x86_64/epel-release-6-8.noarch.rpm
|
1
2
3
4
|
[root@node1 src]
# rpm -ivh epel-release-6-8.noarch.rpm
warning: epel-release-6-8.noarch.rpm: Header V3 RSA
/SHA256
Signature, key ID 0608b895: NOKEY
Preparing...
########################################### [100%]
1:epel-release
########################################### [100%]
|
1
|
[root@node1 src]
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
|
1
2
3
4
5
6
7
8
9
|
[root@node1 src]
# cd /etc/yum.repos.d/
[root@node1 yum.repos.d]
# ll
总用量 24
-rw-r--r--. 1 root root 1926 2月 25 16:57 CentOS-Base.repo
-rw-r--r--. 1 root root 638 2月 25 16:57 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 623 7月 25 16:57 CentOS-Media.repo
-rw-r--r--. 1 root root 3664 2月 25 16:57 CentOS-Vault.repo
-rw-r--r-- 1 root root 957 11月 5 2012 epel.repo
-rw-r--r-- 1 root root 1056 11月 5 2012 epel-testing.repo
|
1
2
|
[root@localhost yum.repos.d]
# yum clean all
[root@node1 yum.repos.d]
# yum list
|
1
|
[root@node1 ~]
# yum -y install yum-utils
|
1
|
[root@node1 src]
# yumdownloader heartbeat
|
1
2
3
4
|
[root@node1 src]
# ll
总用量 180
-rw-r--r-- 1 root root 14540 11月 5 2012 epel-release-6-8.noarch.rpm
-rw-r--r-- 1 root root 165244 5月 25 2011 heartbeat-3.0.4-1.el6.x86_64.rpm
|
1
|
[root@node1 src]
# rpm -e epel-release
|