In this case you would like to enable packages but it’s not available in standard repository you should enabling the EPEL repository provides additional options for package installation. In this post we will show you these ways to enable EPEL repository.
Follow these steps to download, install and enable EPEL repository on Amazon Linux-based, RHEL, CentOS7 distributions
Resolutions:
CentOS 6:
Install and enable the EPEL release package for EL 6.
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm sudo yum-config-manager --enable epel
CentOS 7:
Install and enable the EPEL release package. CentOS 7 includes the epel-release package in the base repositories.
sudo yum install -y epel-release sudo yum-config-manager --enable epel
CentOS 8:
Install the EPEL release package for EL 8. Enable both the EPEL and PowerTools repositories. The PowerTools repository contains development tools required by many EPEL packages.
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm sudo dnf config-manager --set-enabled PowerTools
RHEL 6:
Install and enable the EPEL release package for EL 6.
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm sudo yum-config-manager --enable epel
RHEL 7:
Install and enable the EPEL release package for EL 7.
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo yum-config-manager --enable epel
RHEL 8:
Install the EPEL release package for EL8. Enable both the EPEL and CodeReady Builder repositories. The CodeReady Builder repository contains development tools required by many EPEL packages.
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm sudo dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms
Amazon Linux AMI:
The EPEL repository is already installed on the original version of Amazon Linux, but you must enable it. You can enable this repository either by using the yum-config-manager command or by editing the epel.repo file.
sudo yum-config-manager --enable epel
Amazon Linux 2:
Install the EPEL release package for EL 7 and enable the EPEL repository.
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo yum-config-manager --enable epel