How to Install and Enable EPEL Repository on CentOS 8.x, AlmaLinux 8.x, Rocky Linux 8.x

  • May 1, 2023

How to Install EPEL Repository on CentOS Server

To install EPEL repository on any CentOS, AlmaLinux or Rocky Linux, log in to your server instance with SSH as root user and run the commands as explained below:

How to Install EPEL Repo on CentOS 8.x, AlmaLinux 8.x, Rocky Linux 8.x:
(Example screenshots below are on CentOS Stream 8)

Run: dnf install epel-release

How Do I Verify EPEL Repo Installation?

Run: dnf repolist
(You should see the below)

How Do I Enable The EPEL Repo?

Note: The EPEL configuration file is located under /etc/yum.repos.d/epel.repo

Run: nano /etc/yum.repos.d/epel.repo

Make sure under [epel]: enabled=1
If Not, Change It, Save & Exit.


That's It.
You're Finished!
Wasn't that Quick & Simple.


Lat Updated: 25 June 2021

How helpful was this article to you?

Posting has been disabled.