In this tutorial, we will show you how to install and enable EPEL Repo on CentOS. For those of you who didn’t know, EPEL(Extra Packages for Enterprise Linux) is a repo developed by the Fedora project to ensure that there is a quality 3rd party package available for enterprise users such as people who are using RHEL, CentOS, Oracle Linux, and Scientific Linux. 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 the EPEL repository, you can use the yum command to install any close to 7,000 EPEL packages.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation and enable EPEL repository on CentOS 5, CentOS 6, and CentOS 7.
Install and Enable EPEL Repo on CentOS 5, CentOS 6 and CentOS 7
First, you need to enable the EPEL repository on your system. You don’t need to configure this repository manually in your yum. Instead, download the following package and install it, which will enable the EPEL repository on your system.
- CentOS 7 64 Bit
## 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
- CentOS 6 64 Bit
## RHEL/CentOS 6 64-Bit ## # wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm
- CentOS 6 32 Bit
## RHEL/CentOS 6 32-Bit ## # wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm
- CentOS 5 64 Bit
## RHEL/CentOS 5 64-Bit ## # wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm # rpm -ivh epel-release-5-4.noarch.rpm
- CentOS 5 32 Bit
## RHEL/CentOS 5 32-Bit ## # wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm # rpm -ivh epel-release-5-4.noarch.rpm
To verify that the EPEL repository has been set up successfully, run the following command to list all available repositories on your system:
Congratulations! You have successfully installed EPEL repo. Thanks for using this tutorial for installing the EPEL repository in the CentOS 8 system. For additional help or useful information, we recommend you to check the official EPEL website.