How to enable epel repos in redhat clones ( alma, rocky, centos, oracle, etc... )

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
3,272
Reaction score
3,027
Credits
29,138

EPEL 9 has two different release packages. If you are using RHEL 9, only install the epel-release package. If you are using CentOS Stream 9, install both the epel-release and epel-next-release packages.

CentOS Stream 9​

$ dnf config-manager --set-enabled crb
$ dnf install https://dl.fedoraproject.org/pub/epel/epel{,-next}-release-latest-9.noarch.rpm

RHEL 9​

$ subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
$ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

Other RHEL 9 compatible distributions​

EPEL 9 officially targets CentOS Stream 9 and RHEL 9. EPEL 9 packages will also likely work with other distributions that target RHEL 9 compatibility. We cannot list specific instructions for all such distributions, but in general the steps needed should look similar to the steps for RHEL 9. First enable the distribution’s equivalent of the CRB repository, then install the epel-release package.

$ dnf config-manager --set-enabled crb
$ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

There are also link for RHEL 8

RHEL 8​

$ subscription-manager repos --enable codeready-builder-for-rhel-8-$(arch)-rpms
$ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

Other RHEL 8 compatible distributions​

EPEL 8 officially targets RHEL 8. EPEL 8 packages will also likely work with other distributions that target RHEL 8 compatibility. We cannot list specific instructions for all such distributions, but in general the steps needed should look similar to the steps for RHEL 8. First enable the distribution’s equivalent of the PowerTools/CRB repository, then install the epel-release package.

$ dnf config-manager --set-enabled powertools
$ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

This will add about 12,000 available packages for your rocky/alma/centos/oracle install.
There's a very good chance that whatever you're trying to install that isn't included in the default vendor repos
is in these repos.
 

Staff online

Members online


Top