Install EPEL Repository on CentOS 6.3 or Redhat 6.3 RHEL

How to Install EPEL Repository on CentOS 6.3 or Redhat 6.3 RHEL

1. Download and import GPG key

[root@Centos6 ~]# wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6
–2012-12-07 08:07:46– http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6
Resolving ftp.riken.jp… 134.160.38.1
Connecting to ftp.riken.jp|134.160.38.1|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1649 (1.6K) [text/plain]
Saving to: âRPM-GPG-KEY-EPEL-6â100%[======================================>] 1,649 –.-K/s in 0s2012-12-07 08:07:47 (76.3 MB/s) – âRPM-GPG-KEY-EPEL-6â[root@Centos6 ~]# rpm –import RPM-GPG-KEY-EPEL-6
[root@Centos6 ~]# rm -f RPM-GPG-KEY-EPEL-6
[root@Centos6 ~]#

 

2. Download epel software

NOTE: Go to http://dl.fedoraproject.org/pub/epel/6/i386/ to download newest version for epel-release package, if you can not use these commands

[root@Centos6 ~]# wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
–2012-12-07 08:08:35– http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Resolving dl.fedoraproject.org… 209.132.181.26, 209.132.181.27, 209.132.181.23, …
Connecting to dl.fedoraproject.org|209.132.181.26|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 14496 (14K) [application/x-rpm]
Saving to: âepel-release-6-8.noarch.rpmâ100%[======================================>] 14,496 29.2K/s in 0.5s2012-12-07 08:08:36 (29.2 KB/s) – âepel-release-6-8.noarch.rpmâ[root@Centos6 ~]#

3. Install epel on Centos

[root@Centos6 ~]# rpm -ivh epel-release-6-8.noarch.rpm
Preparing… ########################################### [100%]
1:epel-release ########################################### [100%]
[root@Centos6 ~]#

4. Test install software by EPEL

[root@Centos6 ~]# yum –enablerepo=epel install php-pdo -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink | 2.8 kB 00:00
* base: mirrors.vonline.vn
* epel: mirrors.ustc.edu.cn
* extras: mirrors.vonline.vn
* rpmforge: mirror-fpt-telecom.fpt.net
* updates: mirrors.vonline.vn
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 4.1 MB 01:00extras | 3.5 kB 00:00rpmforge | 1.9 kB 00:00updates | 3.5 kB 00:00
updates/primary_db | 3.8 MB 00:16
Setting up Install Process
Package php-pdo-5.3.3-14.el6_3.i686 already installed and latest version
Nothing to do
[root@Centos6 ~]#

That’s all. Thanks for using IThelpblog.com.

 

 

 

3 comments to Install EPEL Repository on CentOS 6.3 or Redhat 6.3 RHEL

  • Bhaskar  says:

    Dear Sir

    Is it possible to add CentOS 6.4 repository to RHEL 6.4? Kindly help.

    Regards
    Bhaskar

  • Valter Henrique  says:

    @Bhaskar, yes it is. I make these same steps in my CentOS 6.4 today and it works perfectly.

    Thank you for the post!

  • da99  says:

    Yay… It works. Amazingly, it was easy!
    I used it on a CentOS 6, 64-bit minimal version, vps/openvz. (Of course, I used the 64-bit version of epel.)

    I got htop and node running nicely. Thanks for posting it.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>