How to set up EPEL repository on CentOS

If you are using CentOS or RHEL, it is strongly recommended that you configure EPEL (Extra Packages for Enterprise Linux) repository on your system. EPEL is a community effort to create a repository of high-quality add-on free software packages for RHEL-based distributions. Once you set up EPEL repository, you can use yum command to install any of close to 7,000 EPEL packages.

In order to enable EPEL repository on your CentOS system, you need to check CentOS version. To do that, run the following command.

$ cat /etc/redhat-release
CentOS release 6.3 (Final)

Then install an EPEL repository rpm file as follows. Note that the rpm file does not depend on the underlying processor architecture (e.g., 32-bit/64-bit x86, ppc, sparc, alpha, etc), so no need to pay attention to processor architecture difference.

For CentOS 5.*:

$ sudo rpm -Uvh http://mirrors.kernel.org/fedora-epel/5/i386/epel-release-5-4.noarch.rpm

For CentOS 6.*:

$ sudo rpm -Uvh http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm

To verify that EPEL yum repository has been set up successfully, run the following command to list all available repositories on your system.

$ yum repolist
repo id            repo name                                              status
base               CentOS-6 - Base                                        4,776
epel               Extra Packages for Enterprise Linux 6 - i386           6,913
extras             CentOS-6 - Extras                                         17
updates            CentOS-6 - Updates                                       960
repolist: 12,666

Subscribe to Xmodulo

Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.

2 thoughts on “How to set up EPEL repository on CentOS

  1. The packages in the EPEL repository are NOT Freeware. They are Free Software.

    Not one of them is in anyway Proprietary, they are all Open Source Software licensed under a Free Software License.

    Freeware is Proprietary Software that is released under a Proprietary EULA, no source code is ever made available. The Free in freeware relates to the amount of money charged, which is to say none. This is quite different from the case with Free Software, which while it is typicalally made available at no monetary cost, is Free because the license associated with it transfers rights to the user of the software, rather than taking them away, as a proprietary license does.

Leave a comment

Your email address will not be published. Required fields are marked *

Current day month ye@r *