The PowerTools repository is a container that contains many packages, libraries, and developer tools for either creating from source or installing applications. Most repositories rely on the PowerTools to be enabled, including the most popular Extra packages for the Enterprise Linux repository.
In the following tutorial, you will learn how to quickly install the EPEL repository and enable PowerTools on your Rocky Linux 8 system.
Table of Contents
Prerequisites
- Recommended OS: Rocky Linux 8.+.
- User account: A user account with sudo or root access.
- Internet Access
Update Operating System
Update your Rocky Linux operating system to make sure all existing packages are up to date:
sudo dnf upgrade --refresh -y
The tutorial will be using the sudo command and assuming you have sudo status.
To verify sudo status on your account:
sudo whoami
Example output showing sudo status:
[joshua@rockylinux ~]$ sudo whoami
root
To set up an existing or new sudo account, visit our tutorial on How to Add a User to Sudoers on Rocky Linux.
To use the root account, use the following command with the root password to log in.
su
For desktop users, the tutorial will utilize the terminal for the installation found in Activities > Show Applications > Terminal.
Example:
Install Required Dependecies
The following dependencies are needed to enable the PowerTools repository successfully. This should already be installed by default, but run the command to check.
sudo install dnf-plugins-core
Install PowerTools on Rocky Linux
Before you can enable the PowerTools repository, the first task is to install the EPEL repository, which is short for Extra Packages for Enterprise Linux.
In your terminal, execute the following command.
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
By default, EPEL should be enabled, but use the following command to enable it manually if any issues arise.
sudo dnf config-manager --enable epel
Once installed, use the following command to enable the PowerTools repository.
sudo dnf config-manager --set-enabled powertools
Note, you may notice some distributions require “PowerTools” or “powertools” in the command. For Rocky Linux, this will always be the lowercase abbreviation.
To confirm that the PowerTools repository was enabled, use the following dnf repolist command to verify.
sudo dnf repolist | grep powertools
Example output:
A handy tip is to use the following command, showing what other options are available with PowerTools but are currently disabled.
sudo dnf repolist disabled | grep -i power
Example output:
As above, debug and source are disabled as mostly you won’t need to enable these just the standard PowerTools repository will be enough. However, if you need to enable any of them, use the following command.
To enable PowerTools debug:
sudo dnf config-manager --set-enabled powertools-debug
To enable PowerTools source:
sudo dnf config-manager --set-enabled powertools-source
Now verify the enabled PowerTools repositories again with the following command.
sudo dnf repolist | grep powertools

And that is it, and you have successfully enabled the PowerTools repository.
Comments and Conclusion
In the short tutorial, you have learned how to quickly enable the PowerTools repository on your Rocky Linux 8 distribution. Overall, this is a repository you should look at enabling by default and EPEL, as many valuable packages are contained in these repositories and used extensively in the community.