{"id":9207,"date":"2021-06-19T10:50:05","date_gmt":"2021-06-19T07:50:05","guid":{"rendered":"https:\/\/kifarunix.com\/?p=9207"},"modified":"2024-03-18T20:38:39","modified_gmt":"2024-03-18T17:38:39","slug":"enable-powertools-repository-on-rocky-linux-8","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/enable-powertools-repository-on-rocky-linux-8\/","title":{"rendered":"Enable PowerTools Repository on Rocky Linux 8"},"content":{"rendered":"\n
Follow through this tutorial to learn how to enable PowerTools repository on Rocky Linux<\/a> 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<\/em>. PowerTools repository provides most of the developer tools that are not provided by the default Rocky Linux repos.<\/p>\n\n\n\n PowerTools repositories are disabled by default on Rocky Linux 8.<\/p>\n\n\n\n To list currently enabled repositories, run the command below;<\/p>\n\n\n\n To list disabled repositories;<\/p>\n\n\n\n The command output might be a bit long.<\/p>\n\n\n\n To check for specific repository, for example the PowerTools repository;<\/p>\n\n\n\n You can also verify the same by check the value of the If the value is set to 0, then the repository is disabled.<\/p>\n\n\n\n There are two ways in which you can enable PowerTools repository.<\/p>\n\n\n\n To enable PowerTools repository on Rocky Linux using the package manager (yum or dnf), run the commands below;<\/p>\n\n\n\n The enable PowerTools using the command below;<\/p>\n\n\n\n Verify that the repository has been enabled;<\/p>\n\n\n\n Or<\/p>\n\n\n\n Output;<\/p>\n\n\n\n To manually enable PowerTools repository on Rocky Linux by setting the value of the enabled= to 1, run the command below;<\/p>\n\n\n\n To verify;<\/p>\n\n\n\n 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.<\/p>\n\n\n\n And that is how easy it is to enable PowerTools repository.<\/p>\n\n\n\n Other Tutorials<\/p>\n\n\n\n Install phpMyAdmin on Rocky Linux 8<\/a><\/p>\n\n\n\nEnabling PowerTools Repository on Rocky Linux 8<\/h2>\n\n\n\n
dnf repolist<\/code><\/pre>\n\n\n\n
\nrepo id repo name\nappstream Rocky Linux 8 - AppStream\nbaseos Rocky Linux 8 - BaseOS\nepel Extra Packages for Enterprise Linux 8 - x86_64\nepel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64\nextras Rocky Linux 8 - Extras\nmariadb MariaDB\nremi-modular Remi's Modular repository for Enterprise Linux 8 - x86_64\nremi-safe Safe Remi's RPM repository for Enterprise Linux 8 - x86_64\n<\/code><\/pre>\n\n\n\n
dnf repolist disabled<\/code><\/pre>\n\n\n\n
dnf repolist disabled | grep -i power<\/code><\/pre>\n\n\n\n
powertools Rocky Linux 8 - PowerTools\npowertools-source Rocky Linux 8 - PowerTools - Source<\/code><\/pre>\n\n\n\n
enabled<\/code><\/strong> parameter on the PowerTools repository file,
\/etc\/yum.repos.d\/Rocky-PowerTools.repo<\/strong><\/code>.<\/p>\n\n\n\n
grep enabled \/etc\/yum.repos.d\/Rocky-PowerTools.repo<\/code><\/pre>\n\n\n\n
enabled=0<\/code><\/pre>\n\n\n\n
\n
enabled=<\/code>\u00a0to\u00a0
1<\/code><\/a><\/li>\n<\/ol>\n\n\n\n
Enable PowerTools repository using the package manager (yum or dnf)<\/h3>\n\n\n\n
dnf install dnf-plugins-core<\/code><\/pre>\n\n\n\n
dnf config-manager --set-enabled powertools<\/code><\/pre>\n\n\n\n
dnf repolist enabled | grep -i power<\/code><\/pre>\n\n\n\n
powertools Rocky Linux 8 - PowerTools<\/code><\/pre>\n\n\n\n
grep enabled \/etc\/yum.repos.d\/Rocky-PowerTools.repo<\/code><\/pre>\n\n\n\n
enabled=1<\/code><\/pre>\n\n\n\n
Manually enable PowerTools repository by setting the value of the
enabled=<\/code>\u00a0to\u00a0
1<\/code><\/h3>\n\n\n\n
sed -i 's\/enabled=0\/enabled=1\/' \/etc\/yum.repos.d\/Rocky-PowerTools.repo<\/code><\/pre>\n\n\n\n
dnf repolist enabled | grep -i power<\/code><\/pre>\n\n\n\n
powertools Rocky Linux 8 - PowerTools<\/code><\/pre>\n\n\n\n
Install EPEL Repositories on Rocky Linux 8<\/h3>\n\n\n\n
dnf install epel-release<\/code><\/pre>\n\n\n\n