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

Unlock a world of enhanced functionality and software availability on your AlmaLinux, Rocky Linux, RHEL, and CentOS systems by learning how to effortlessly enable the EPEL Repo. With this essential repository at your fingertips, you’ll gain access to a vast array of additional packages and updates, ensuring your Linux experience is both versatile and up-to-date. Dive into the step-by-step guide and empower your systems today with the Enable EPEL (Extra Packages for Enterprise Linux) repository tutorial.

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: AlmaLinux, Rocky Linux, RHEL, and CentOS Stream.
  • 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

r00t is a Linux Systems Administrator and open-source advocate with over ten years of hands-on experience in server infrastructure, system hardening, and performance tuning. Having worked across distributions such as Debian, Arch, RHEL, and Ubuntu, he brings real-world depth to every article published on this blog. r00t writes to bridge the gap between complex sysadmin concepts and practical, everyday application — whether you are configuring your first server or optimizing a production environment. Based in New York, US, he is a firm believer that knowledge, like open-source software, is best when shared freely.

Related Posts