How to enable PowerTools repository in CentOS 8?

You can enable it with the following commands:

yum install dnf-plugins-core

And then:

yum config-manager --set-enabled powertools

Or:

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.

EDIT:

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.


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