How can I enable PowerTools repository in CentOS/RHEL 8?

This is a similar question to: How to enable PowerTools repository in CentOS 8?

I am trying to to setup a headless web server on my EC2 AWS running on RHEL 8.2. As it is a headless server with no GUI, I just need to the firefox browser to do some web configurations. With that said, on on the client side, I am using Putty to SSH to the server remotely and Xming to display the browser. I think PowerTools is needed in order to install xorg-x11-apps in RHEL 8.2 in my case to get the display installed in my VM so that I can run my firefox remotely via Putty SSH.

On the Side note:

(On Server Side)

  1. Installed firefox and prerequisite packages
  2. Installed xauth & xorg-x11*
  3. Configured /etc/ssh/ssh_config (FowardX11 yes, FowardX11Trusted yes)
  4. Configured /etc/ssh/sshd_config (X11Forwarding yes)
  5. export DISPLAY=ip:0.0

(On Client Side - PuTTy)

  1. Installed and configured XMing
  2. SSH with X Forwarding via Putty (With X11Forwarding enabled & X Display Location to :0.0)

I installed epel:

$ yum install dnf-plugins-core
$ dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
$ yum install epel-release

But when I tried to enable PowerTools, I received the following error:

$ dnf config-manager --set-enabled PowerTools
Error: Unknown repo: 'PowerTools'

When I checked the repo list, no PowerTools is installed:

$ yum repolist
repo id                        repo name
epel                           Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                   Extra Packages for Enterprise Linux Modular 8 - x86_64
rhel-8-appstream-rhui-rpms     Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (RPMs)
rhel-8-baseos-rhui-rpms        Red Hat Enterprise Linux 8 for x86_64 - BaseOS from RHUI (RPMs)
rhui-client-config-server-8    Red Hat Update Infrastructure 3 Client Configuration Server 8

How do I go around this so that I can enable PowerTools so that I can run the dnf config-manager --set-enabled PowerTools command?

Many thanks!


Solution 1:

CentOS and RHEL are actually different, despite one being "clone" of the other.

The canonical name for the repository in question is actually CodeReady Linux Builder. However, it is trademarked, and as such, in CentOS it has a different name - PowerTools.

Since you are using RHEL, you should enable CodeReady Linux Builder repository:

subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms

According to this AWS doc, it can enabled with:

sudo dnf config-manager --set-enabled codeready-builder-for-rhel-8-rhui-rpms