How to Install EPEL Repository on CentOS


1. Installing  EPEL Repository

Install EPEL Repository On 32-bit CentOS Linux 5.5:
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Install EPEL Repository On 64-bit CentOS Linux 5.5:
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

Sample Output:
[root@gembul ~]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Preparing…             ########################################### [100%]
1:epel-release           ########################################### [100%]

2. Check and updating your repository list, make sure the epel.repo has been installed
# yum update
# yum repolist

Sample Output:

Loading “skip-broken” plugin
Loading “fastestmirror” plugin
repo id           repo name                                                                status
addons           CentOS-5 – Addons                                                 enabled
base                CentOS-5 – Base                                                      enabled
epel                Extra Packages for Enterprise Linux 5 –             enabled
extras             CentOS-5 – Extras                                                   enabled
updates          CentOS-5 – Updates                                                enabled

3. Edit your epel.repo file configuration and the priority of yum repository configuration
# vi /etc/yum.repos.d/epel.repo

Sample Output :

———————————————————————————————————————-
[epel]
name=Extra Packages for Enterprise Linux 5 – $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 5 – $basearch – Debug #baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 5 – $basearch – Source #baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL gpgcheck=1

———————————————————————————————————————

Done🙂

Download this guide in PDF

17 thoughts on “How to Install EPEL Repository on CentOS

  1. Sridaran April 17, 2011 at 11:47 PM Reply

    awesome info.. its working ..great……..

  2. […] root user. We will install the RPM for EPEL now. These instructions are taken from a great weblog that you can find here. Follow […]

  3. Chris Thomas Wakefield February 23, 2012 at 2:41 AM Reply

    Gembul, the repository you use for an example is no longer there. I found your page looking for a valid repository of EPEL to add to my centos server.
    however I did find one here:
    http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
    I was able to install mod_security from that repositiory.
    chris w.

    • gembuls February 24, 2012 at 5:22 PM Reply

      hi chris.w,
      thank you, I will update soon.

  4. FTP/Sharing file - Page 2 February 27, 2012 at 11:57 AM Reply

    […] adjustment finally working properly. do not using pam_mysql from rpm download here https://gembuls.wordpress.com/2011/02…ory-on-centos/ after installation n update remove pam_mysql –>rpm -e -check vsftpd.conf n vsftpd_user_conf/ […]

  5. Sever March 13, 2012 at 4:41 AM Reply

    Thank YOU !

  6. alucard May 3, 2012 at 9:55 PM Reply

    gracias por la informacio no hablo ingles pero entendi thank you

  7. nic May 19, 2012 at 5:59 PM Reply

    Thank you, this was helpful. I tried a few different sources but the destinations where out of date. Yours worked like a charm.

  8. […] to Connect locally to a VNC Service. Hopefully my instructions will help you. Special thanks to Gembul’s Weblog & IT Specialists Blog for giving me a guiding point in order to figure out what was […]

  9. […] what you should do. So with that in mind, hopefully my instructions will help you. Special thanks toGembul’s Weblog & IT Specialists Blog for giving me a guiding point in order to figure out what was […]

  10. […] note, that if you choose to install using yum, you need to configure EPEL repo [read how to do it here], or you will have to do local install. Here is command for yum […]

  11. […] you should do. So with that in mind, hopefully my instructions will help you. Special thanks to Gembul’s Weblog & IT Specialists Blog for giving me a guiding point in order to figure out what was […]

  12. How do I download/install EPEL? May 15, 2013 at 9:36 PM Reply

    […] http://www.rackspace.com/knowledge_c…entos-5x-or-6x https://gembuls.wordpress.com/2011/02…ory-on-centos/ […]

  13. […] For CentOS newbies, this might also be helpful: To install the EPEL package library on CentOs: How to Install EPEL Repository on CentOS […]

  14. […] with that in mind, hopefully these instructions will help you. Special thanks to Vernon Spangler, Gembul’s Weblog & IT Specialists Blog for giving me a guiding point in order to figure out what was […]

  15. […] with that in mind, hopefully these instructions will help you. Special thanks to Vernon Spangler, Gembul’s Weblog & IT Specialists Blog for giving me a guiding point in order to figure out what was […]

  16. […] with that in mind, hopefully these instructions will help you. Special thanks to Vernon Spangler, Gembul’s Weblog & IT Specialists Blog for giving me a guiding point in order to figure out what was […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: