EPEL package repository installation for RHEL in AWS

The majority of ProComputers images built before 31st of December, 2022 contain the EPEL package repository preinstalled. However, all images with a release date after 1st of January 2023, do not have EPEL included.

NOTE: The image release date is part of the image version. Read this article to learn how find out the image version.

ProComputers images in AWS Marketplace use the AWS RHUI (Red Hat Update Infrastructure) repository, which allows users to install security updates and new RPM packages without the need of a Red Hat subscription and a Red Hat account.

However, the name of the AWS RHUI repos are not the same with the default RHEL ones, and therefore the instruction to install EPEL are slightly different as well.

To install EPEL in virtual machines that uses ProComputers RHEL AWS images:

RHEL 9:

$ sudo dnf config-manager --enable codeready-builder-for-rhel-9-rhui-rpms
$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

RHEL 8:

$ sudo dnf config-manager --enable codeready-builder-for-rhel-8-rhui-rpms
$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

RHEL 7:

$ sudo yum-config-manager --enable rhel-7-server-rhui-optional-rpms \
                          --enable rhel-7-server-rhui-extras-rpms
$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

For RHEL 8 and 9, at the end of the EPEL package installation, please ignore the following message, since CodeReady Builder repository has already been enabled:

[…]
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.
[…]

To remove EPEL from virtual machines that uses ProComputers RHEL AWS images:

RHEL 9:

$ sudo dnf remove epel-release
$ sudo dnf config-manager --disable codeready-builder-for-rhel-9-rhui-rpms

RHEL 8:

$ sudo dnf remove epel-release
$ sudo dnf config-manager --disable codeready-builder-for-rhel-8-rhui-rpms

RHEL 7:

$ sudo yum remove epel-release
$ sudo yum-config-manager --disable rhel-7-server-rhui-optional-rpms \
                          --disable rhel-7-server-rhui-extras-rpms

If you have any questions related to this article, please contact ProComputers Support as instructed here.

References: