How To Enable and Install EPEL Repo on CentOS 8

Here’s how to enable and install the EPEL (Extra Packages for Enterprise Linux) repository on CentOS 8:

  1. Download the EPEL repository package by running the following command:
sudo yum install epel-release
  1. Verify that the EPEL repository has been added by running the following command:
yum repolist

The EPEL repository should be listed among the enabled repositories.

  1. To install a package from the EPEL repository, use the following command:
sudo yum install <package-name>
  1. To check which packages are available to install, use the following command:
yum --disablerepo="*" --enablerepo="epel" list available

Note: In case you have any issues with the above commands, you might need to check that you have enabled the “PowerTools” repository. If the command doesn’t work, try the following command:

sudo dnf config-manager --set-enabled PowerTools

Also, it’s worth mentioning that EPEL is a community-maintained repository, and as such, it does not provide the same level of quality and security as the official CentOS repositories. So, you should be careful when installing and using packages from the EPEL repository. It’s always recommended to check the package and repository’s integrity before using it.

Leave a Comment