Red Hat Enterprise Linux / CentOS Linux Enable EPEL (Extra Packages for Enterprise Linux) Repository

by Vivek Gite on August 20, 2008 · 8 comments

Q. How do I enable EPEL (Extra Packages for Enterprise Linux) repo and install the packages under RHEL / CentOS Linux?

A. EPEL (Extra Packages for Enterprise Linux) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs, such as CentOS and Scientific Linux.

EPEL provide lots of packages for CentOS / RHEL, It is not part of RedHat or CentOS but is designed to work with these major distributions. Please note that EPEL only provides free and open source software unencumbered by patents or any legal issues. In short you will not find mp3, dvd and music / media player under EPEL. However, you will find many programs related to networking, monitoring, sys admin, programming and so on.

Packages are supplied in RPM format and in most cases are ready to use. Beware that some packages may break something and you should not blindly install those packages.

How do I enable EPEL?

Simply type the following command as root user:
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
List new repo:
# 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

Once installed use yum command to list, view and install the packages:
# yum search package-name
# yum install package-name

See how to use yum command for installing and searching packages using various repos.

Further readings:

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 8 comments… read them below or add one }

1 Sam May 6, 2009

I think it would be helpful if you also mention how to use yum-priorities, which is recommended when one plans to use 3rd party repos (like EPEL).

Reply

2 Amila Withanage August 2, 2009

Very useful article. It enables to find various packages which are not avaialble in CentOS repository or rpm.forge repository. Thank you Vivek.

Amila Withanage

Reply

3 Balwinder Sigh Sidhu October 7, 2009

Really it is very helpfull to all, which people want to know more about linux. i really very thankful to this group. it is greate affort for us..!! thank you …….

Reply

4 Maxbyte October 24, 2009

This is excellent stuff! Thank you. It stands on its own feet with appropriate links and examples, and it provides those of us with less than complete Linux knowledge with straightforward guidance in security enhancement.

Reply

5 Kiran December 8, 2009

Hi
I tried the above steps however it gives me error, i could able to install the package manually by downloading it from the website because i was not able to upgrade it directly from the Web. And After instillation of the package i tried to run the command “yum repolist” however i am getting the error message as “[root@gk ~]# yum repolist
Loading “rhnplugin” plugin
Loading “installonlyn” plugin
This system is not registered with RHN.
RHN support will be disabled. ”

Can you please let me know am i going wrong somewhere or i am missing anything somewhere.

Reply

6 Jamin September 28, 2010

IF you are running RHEL, use the package yum-protectbase instead of yum-priorities.

Reply

7 alex April 3, 2011
8 Rafael Holanda April 15, 2011

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 10 + 4 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the simple math so we know that you are a human and not a script.




Previous post:

Next post: