Install EPEL Release for RHEL 7/8
Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux.
What is EPEL? Here's an explanation from the home of EPEL, https://docs.fedoraproject.org/en-US/epel.
Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS, Scientific Linux (SL), Oracle Linux (OL), AlmaLinux (AL) and Rocky Linux (RL).
RHEL 7
Enable extra repos in Subscription Manager
sudo subscription-manager repos --enable rhel-*-optional-rpms \
--enable rhel-*-extras-rpms \
--enable rhel-ha-for-rhel-*-server-rpms
Install EPEL Release
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
RHEL 8
Enable extra repo in Subscription Manager
sudo subscription-manager repos --enable codeready-builder-for-rhel-8-$(arch)-rpms
If the error Repositories disabled by configuration.
is returned, use the following command to enable them in the configuration and run the previous command again.
sudo subscription-manager config --rhsm.manage_repos=1
Install EPEL Release
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm