Cannot enable PowerTools for RHEL 8

Latest response

Hi community, I'm trying to enable PowerTools on my RHEL 8 workstation. So I typed dnf config-manager --set-enabled PowerTools, but got this error message:

[root@rhel ~]# dnf config-manager --set-enabled PowerTools
Updating Subscription Management repositories.
Error: No matching repo to modify: PowerTools.

I've searched on Google about RHEL 8/CentOS 8, all posts I found are mentioning this method. But unfortunately this did not work in my case. Can I have your help please?


Here are all available groups:

[root@rhel ~]# dnf grouplist
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 255 B/s | 4.1 kB 00:16
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) 31 kB/s | 3.7 MB 02:00
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 276 B/s | 4.5 kB 00:16
Available Environment Groups:
Server with GUI
Server
Minimal Install
KDE Plasma Workspaces
Custom Operating System
Virtualization Host
Installed Environment Groups:
Workstation
Installed Groups:
Development Tools
GNOME Desktop Environment
Hardware Support
Available Groups:
Legacy UNIX Compatibility
Smart Card Support
RPM Development Tools
Headless Management
Container Management
.NET Core Development
System Tools
Scientific Support
Security Tools
Graphical Administration Tools
Network Servers
Fedora Packager
Xfce
Games and Entertainment
Graphical Internet
KDE (K Desktop Environment)
Sound and Video

And what I've enabled:

[root@rhel ~]# dnf repolist
Updating Subscription Management repositories.
repo id repo name
code Visual Studio Code
codeready-builder-for-rhel-8-x86_64-rpms Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
epel Extra Packages for Enterprise Linux 8 - x86_64
epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64
google-chrome google-chrome
raven Raven's RPM repo for el8-x86_64 - base
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)
rpmfusion-free-updates RPM Fusion for EL 8 - Free - Updates

Responses

I accidentally saw this post: https://serverfault.com/questions/997896/how-to-enable-powertools-repository-in-centos-8.

And according to CentOS Wiki, I think PowerTools is the equivalent repo for CodeReady (RHEL) on CentOS due to trademark issues. https://wiki.centos.org/FAQ/CentOS8.

And I think my issue solved :)

I did as instructed by the shared link and this is always the outcome Red Hat Enterprise Linux 8.2

Updating Subscription Management repositories. Error: No matching repo to modify: PowerTools.

Hi Emmanuel,

Rather than trying to enable this non-existing repository, please execute the following command ... :)
sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms

Regards,
Christian

Thanks : ) I am now able to install PostGIS-3 for PostgreSQL-12 on RHEL-8. The solution was.

sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
dnf install postgis30_12

https://stackoverflow.com/questions/58405357/why-is-installing-postgis-3-on-rhel-8-centos-8-impossible

You're welcome, Marcelo ! :)

Could you please check if below command works for you?

dnf config-manager --set-enabled powertools

Hi Federico,

This won't work on RHEL, I'm afraid ... PowerTools is a CentOS repository. On RHEL 8 we have the CodeReady
Builder repository ! As I see the Red Hat logo in your avatar, I assume you are a Red Hat employee - are you ? :)
In case you are indeed, you now have learned something from a customer ... hope you don't mind the humor. :D

Regards,
Christian

Indeed you are right. I didn't realized this discussion is about RHEL8 and not CentOS8. Cheers

2021-03-08 11:12:48  447 [73483] (DEBUG):   - ssystem [BEGIN]: /usr/bin/yum -y install network-scripts --enablerepo=powertools
2021-03-08 11:12:48  447 [73483] (DEBUG):     Updating Subscription Management repositories.
2021-03-08 11:12:50  447 [73483] (DEBUG):     Error: Unknown repo: 'powertools'
2021-03-08 11:12:50  447 [73483] (ERROR):   - ssystem [EXIT_CODE] '/usr/bin/yum' exited with 1 (ignored)
2021-03-08 11:12:50  447 [73483] (DEBUG):   - ssystem [END]

HOW TO SOLVE THIS ERROR. It occured while installing cpanel in redhat 8

Hi Jay,

Remove the CentOS Power Tools repository and enable the Red Hat CodeReady Builder repository. :)

Regards,
Christian

hi Jay,

As powertools is not a Red Hat repository you cannot use the repository, without downloading the repo file from one of the CentOS mirror sites.

Are you using RHEL 8 or CentOS8?

For RHEL try sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms Then try to/usr/bin/yum -y install network-scripts

Regards,

Jan Gerrit Kootstra

Is codeready-builder really the equivalent of PowerTools? I ask because I am trying to install the doxygen package which is in PowerTools but not installing on a RHEL8 system with codeready-builder enabled.

I wonder if the CodeReady Builder repo on UBI is different than the one on RHEL8. Can someone confirm?

RHEL 8 UBI is a subset of the full RHEL 8 product, so it may not have the necessary packages to install doxygen.

Ok thanks for confirming. I had always suspected that was the case. Now I know what to look for in the future.