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 quickly install the EPEL repository and enable PowerTools on your AlmaLinux 8 system.
Prerequisites
- Recommended OS: AlmaLinux 8.
- User account: A user account with sudo privilages or root access (su command).
Updating Operating System
Update your AlmaLinux 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:
[[email protected] ~]$ sudo whoami
root
To set up an existing or new sudo account, visit our tutorial on How to Add a User to Sudoers on AlmaLinux.
To use the root account, use the following command with the root password to log in.
su
The tutorial will utilize the terminal, which can be found in your show applications menu.
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 dnf install dnf-plugins-core
Install PowerTools on AlmaLinux
Before you can enable the PowerTools repository, the first task is to install the EPEL repository, 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
EPEL should be enabled by default, 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 AlmaLinux, 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
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
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-debuginfo
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 enable the PowerTools repository on your AlmaLinux 8 distribution quickly. 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.