{"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

Enabling PowerTools Repository on Rocky Linux 8<\/h2>\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

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

To list disabled repositories;<\/p>\n\n\n\n

dnf repolist disabled<\/code><\/pre>\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

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

You can also verify the same by check the value of the 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

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

    \n
  1. Enable PowerTools repository using the package manager (yum or dnf)<\/a><\/li>\n\n\n\n
  2. Manually enable PowerTools repository by setting the value of the enabled=<\/code>\u00a0to\u00a01<\/code><\/a><\/li>\n<\/ol>\n\n\n\n

    Enable PowerTools repository using the package manager (yum or dnf)<\/h3>\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

    dnf install dnf-plugins-core<\/code><\/pre>\n\n\n\n

    The enable PowerTools using the command below;<\/p>\n\n\n\n

    dnf config-manager --set-enabled powertools<\/code><\/pre>\n\n\n\n

    Verify that the repository has been enabled;<\/p>\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

    Or<\/p>\n\n\n\n

    grep enabled \/etc\/yum.repos.d\/Rocky-PowerTools.repo<\/code><\/pre>\n\n\n\n

    Output;<\/p>\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\u00a01<\/code><\/h3>\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

    sed -i 's\/enabled=0\/enabled=1\/' \/etc\/yum.repos.d\/Rocky-PowerTools.repo<\/code><\/pre>\n\n\n\n

    To verify;<\/p>\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

    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

    dnf install epel-release<\/code><\/pre>\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\n

    Install LEMP Stack on Rocky Linux 8<\/a><\/p>\n\n\n\n

    Install Vtiger CRM on Rocky Linux 8<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

    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<\/p>\n","protected":false},"author":1,"featured_media":9209,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121],"tags":[3717,3715,3714,3716,3587],"class_list":["post-9207","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-dnf-config-manager-set-enabled-powertools","tag-enable-powertools-repository-rocky-linux-8","tag-poweertools-repository-rocky-linux","tag-powertools","tag-rocky-linux-8","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/9207"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=9207"}],"version-history":[{"count":3,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/9207\/revisions"}],"predecessor-version":[{"id":21781,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/9207\/revisions\/21781"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/9209"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=9207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=9207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=9207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}