How to Enable EPEL Repository in RHEL or CentOS 7.x/6.x/5.x
The EPEL repository provides useful software packages that are not included in the official CentOS or Red Hat repositories. This article helps you to understand about EPEL Repository and how to enable EPEL Repository in RHEL or CentOS Operating System.
What is EPEL?
EPEL (Extra Packages for Enterprise Linux) is a Fedora Special Interest Group that creates, maintains, and manages a high-quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Linux (OL).
How To Enable EPEL Repository in RHEL or CentOS 7/6/5?
NOTE for CentOS users:
You can install EPEL by running the command yum install epel-release. The package is included in the CentOS Extras repository, enabled by default.
If that doesn’t work, no problem. You can manually enable the EPEL Repository on your server by following the steps given below.
RHEL/CentOS 7 – 64 Bit:
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm # rpm -ivh epel-release-7-8.noarch.rpm
RHEL/CentOS 6 – 64 Bit:
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm
RHEL/CentOS 6 – 32 Bit:
# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm
RHEL/CentOS 5 – 64 Bit:
# wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm # rpm -ivh epel-release-5-4.noarch.rpm
RHEL/CentOS 5 – 32 Bit:
# wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm # rpm -ivh epel-release-5-4.noarch.rpm
If you get a File Not Found error message when trying to download any package, the version number might have changed. You can access the latest version of the RPM installer from the Fedora EPEL wiki page.
How to verify the EPEL Repository which you have installed?
You can use the following command to verify if EPEL repository is enabled.
# yum repolist
The following yum command will give more details on the list of all the repositories present in the server.
# yum repolist all
That’s it!!. Now you can install any packages which comes under EPEL repository.
Any queries?? Please leave a comment below.