Cannot enable PowerTools for RHEL 8
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 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.
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
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,
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?