2

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!

Noose780
  • 23
  • 1
  • 4

2 Answers2

3

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
Danila Vershinin
  • 4,738
  • 3
  • 16
  • 21
0

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

yum repolist Updating Subscription Management repositories. repo id repo name codeready-builder-for-rhel-8-x86_64-rpms Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) copr:copr.fedorainfracloud.org:group_cloud-init:el-stable Copr repo for el-stable owned by @cloud-init docker-ce-nightly Docker CE Nightly - x86_64 docker-ce-stable Docker CE Stable - x86_64 docker-ce-test Docker CE Test - x86_64 epel Extra Packages for Enterprise Linux 8 - x86_64 epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64 ol7_UEKR5 Latest Unbreakable Enterprise Kernel Release 5 for Oracle Linux 8 (x86_64) ol7_latest Oracle Linux 8 Latest (x86_64) ol7_oracle_instantclient Oracle Instant Client for Oracle Linux 8 (x86_64) rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)

yum install perl-IPC-Run Now your able to install it