How to Add EPEL Repository in CentOS/RHEL 7/6/5

EPEL or “Extra Packages for Enterprise Linux” is an online yum repository providing high quality of rpm packages. These packages are developed and tested on fedora, which is available for RHEL. RHEL 7 beta packages are also available to install now.

  • Add EPEL Repository

Download and install epel-release package as per your system version and architecture. Basically they provides noarch packages, which means they are architecture independent but still EPEL providing different packages to download. So you can download as per you choice.
For CentOS/RHEL 7:
On 64-Bit
# rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm

For CentOS/RHEL 6:
On 32-Bit
# rpm -Uvh http://epel.mirror.net.in/epel/6/i386/epel-release-6-8.noarch.rpm

On 64-Bit
# rpm -Uvh http://epel.mirror.net.in/epel/6/x86_64/epel-release-6-8.noarch.rpm

For CentOS/RHEL 5:
On 32-Bit
# rpm -Uvh http://epel.mirror.net.in/epel/5/i386/epel-release-5-4.noarch.rpm

On 64-Bit
# rpm -Uvh http://epel.mirror.net.in/epel/5/x86_64/epel-release-5-4.noarch.rpm

  • Test EPEL Repository

Now check if your repository is working properly on your system. Execute following command to list all packages available in epel repository

# yum –disablerepo=* –enablerepo=epel list all

Author: Chathura Ariyadasa

A highly talented IT professional with extensive experience and capabilities in performing a variety of IT Security, Computer Networking and IT Help Desk duties and responsibilities in the IT Department.