EPEL package repository installation for RHEL in Azure

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 Azure Marketplace use the Azure 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 Azure 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 Azure images:


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


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


$ sudo yum-config-manager --enable rhui-rhel-7-server-rhui-optional-rpms \
                          --enable rhui-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 Azure images:


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


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


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

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