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

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

r00t is a dedicated and highly skilled Linux Systems Administrator with over a decade of progressive experience in designing, deploying, and maintaining enterprise-grade Linux infrastructure. His professional journey began in the telecommunications industry, where early exposure to Unix-based operating systems ignited a deep and enduring passion for open-source technologies and server administration.​ Throughout his career, r00t has demonstrated exceptional proficiency in managing large-scale Linux environments, overseeing more than 300 servers across development, staging, and production platforms while consistently achieving 99.9% system uptime. He holds advanced competencies in Red Hat Enterprise Linux (RHEL), Debian, and Ubuntu distributions, complemented by hands-on expertise in automation tools such as Ansible, Terraform, Bash scripting, and Python.
Back to top button