CentOSLinuxTutorials

How To Install and Enable EPEL Repo on CentOS 5, CentOS 6 and CentOS 7

Install and Enable EPEL Repo on CentOS 5, CentOS 6 and CentOS 7

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 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 the step-by-step installation and enable the EPEL repository on CentOS 5, CentOS 6, and CentOS 7.

Prerequisites

  • A server running one of the following operating systems: CentOS Linux.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

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 or dnf. Instead, download the following package and install it, which will enable the EPEL repository on your system.

  • CentOS 9 Stream

### RHEL/CentOS 9 Stream 64-Bit ## #

sudo dnf config-manager --set-enabled crb
sudo dnf install epel-release epel-next-release
  • CentOS 8 64 Bit

### RHEL/CentOS 8 64-Bit ## #

sudo dnf install epel-release
  • 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:

# yum repolist

Congratulations! You have successfully installed the EPEL repo. Thanks for using this tutorial for installing the EPEL repository in the CentOS system. For additional help or useful information, we recommend you check the official EPEL website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

Save

Save

Back to top button