Enable PowerTools Repository on Rocky Linux 8

|
Last Updated:
|
|

Follow through this tutorial to learn how to enable PowerTools repository on Rocky Linux 8. There are several repositories provided by Rocky Linux and other 3rd party developers that offer software packages that are not included in the default base and updates repositories. PowerTools repository  provides most of the developer tools that are not provided by the default Rocky Linux repos.

Enabling PowerTools Repository on Rocky Linux 8

PowerTools repositories are disabled by default on Rocky Linux 8.

To list currently enabled repositories, run the command below;

dnf repolist

repo id                                                        repo name
appstream                                                      Rocky Linux 8 - AppStream
baseos                                                         Rocky Linux 8 - BaseOS
epel                                                           Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                                                   Extra Packages for Enterprise Linux Modular 8 - x86_64
extras                                                         Rocky Linux 8 - Extras
mariadb                                                        MariaDB
remi-modular                                                   Remi's Modular repository for Enterprise Linux 8 - x86_64
remi-safe                                                      Safe Remi's RPM repository for Enterprise Linux 8 - x86_64

To list disabled repositories;

dnf repolist disabled

The command output might be a bit long.

To check for specific repository, for example the PowerTools repository;

dnf repolist disabled | grep -i power
powertools                     Rocky Linux 8 - PowerTools
powertools-source              Rocky Linux 8 - PowerTools - Source

You can also verify the same by check the value of the enabled parameter on the PowerTools repository file, /etc/yum.repos.d/Rocky-PowerTools.repo.

grep enabled /etc/yum.repos.d/Rocky-PowerTools.repo
enabled=0

If the value is set to 0, then the repository is disabled.

There are two ways in which you can enable PowerTools repository.

  1. Enable PowerTools repository using the package manager (yum or dnf)
  2. Manually enable PowerTools repository by setting the value of the enabled= to 1

Enable PowerTools repository using the package manager (yum or dnf)

To enable PowerTools repository on Rocky Linux using the package manager (yum or dnf), run the commands below;

dnf install dnf-plugins-core

The enable PowerTools using the command below;

dnf config-manager --set-enabled powertools

Verify that the repository has been enabled;

dnf repolist enabled | grep -i power
powertools       Rocky Linux 8 - PowerTools

Or

grep enabled /etc/yum.repos.d/Rocky-PowerTools.repo

Output;

enabled=1

Manually enable PowerTools repository by setting the value of the enabled= to 1

To manually enable PowerTools repository on Rocky Linux by setting the value of the enabled= to 1, run the command below;

sed -i 's/enabled=0/enabled=1/' /etc/yum.repos.d/Rocky-PowerTools.repo

To verify;

dnf repolist enabled | grep -i power
powertools       Rocky Linux 8 - PowerTools

Install EPEL Repositories on Rocky Linux 8

You need to enable EPEL since while installing a package being provided by the PowerTools repos, there might be some dependencies required and provided by the EPEL.

dnf install epel-release

And that is how easy it is to enable PowerTools repository.

Other Tutorials

Install phpMyAdmin on Rocky Linux 8

Install LEMP Stack on Rocky Linux 8

Install Vtiger CRM on Rocky Linux 8

SUPPORT US VIA A VIRTUAL CUP OF COFFEE

We're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Photo of author
koromicha
I am the Co-founder of Kifarunix.com, Linux and the whole FOSS enthusiast, Linux System Admin and a Blue Teamer who loves to share technological tips and hacks with others as a way of sharing knowledge as: "In vain have you acquired knowledge if you have not imparted it to others".

Leave a Comment