Since I had a lot of trouble finding out how to do this anywhere, I'd like to ask,

how do I enable the PowerTools repository in CentOS 8? (equivalent of CodeReady Linux Builder repo in RHEL 8)

  • Just for better clarification and context, what would one gain from enabling the PowerTools repository?
    – Raleigh L.
    Oct 3 at 16:12

4 Answers 4


You can enable it with the following commands:

yum install dnf-plugins-core

And then:

yum config-manager --set-enabled powertools


yum config-manager --set-enabled PowerTools

You can also just open /etc/yum.repos.d/CentOS-PowerTools.repo with a text editor and set enabled= to 1 instead of 0'.

Run yum repolist and you'll see it.


The repo is now powertools instead of PowerTools when enabling it with yum. There was a bug so the developers may set it back to what it was before which is why both are listed. The repo file still has the same name.

  • 2
    Thanks. I found only the yum config-manager line was needed in my case.
    – mwfearnley
    Jan 29, 2020 at 14:41
  • Editing /etc/yum.repos.d/CentOS-PowerTools.repo is a nice option. Then you don't need to install to dnf-plugins-core.
    – wisbucky
    Jul 28, 2020 at 15:28
  • 4
    FYI, this is broken as of today. Need to use "powertools" not "PowerTools". bugs.centos.org/view.php?id=17920 Dec 9, 2020 at 17:15
  • Note that they may fix the bug I linked and your answer could end up being correct :) Dec 9, 2020 at 17:41
  • @AlexHirzel I made a note of this in my edit from a bit ago. Both are now listed. Dec 9, 2020 at 17:44

To get more info, run :-

yum info epel-release

Execute the following command:-

sudo yum install epel-release

enable the PowerTools repository since EPEL packages may depend on packages from it:-

sudo yum config-manager --set-enabled powertools

You may get an error that read as follows:-

No such command: config-manager. Please use /usr/bin/yum –help

Run the following command to fix it:

sudo yum install 'dnf-command(config-manager)'

And re-run the above command again:-

sudo yum config-manager --set-enabled powertools

Now that EPEL repo installed it is time to configure and use it. Hence, run the following command:-

sudo yum update

List your new repos:-

sudo yum repolist

On RHEL 8 and Oracle Linux 8 you'd need to

sudo dnf config-manager --set-enabled ol8_codeready_builder

yum config-manager --set-enabled PowerTools

  • It looks like you may have the knowledge to provide good Answer here, but please consider reading How do I write a good Answer? in our help center and then revise the Answer. Your Commands/Code/Settings may technically be the solution but some explanation is welcome. Format format commands and code as "code" using Markdown and/or use the formatting options in the edit menu. Thanks in advance. - Also: I'm unclear what your answer is intended to add to the existing answers?
    – HBruijn
    Sep 25 at 11:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .