{"id":13756,"date":"2022-01-11T11:28:29","date_gmt":"2022-01-11T11:28:29","guid":{"rendered":"https:\/\/linuxways.net\/?p=13756"},"modified":"2022-01-11T11:28:29","modified_gmt":"2022-01-11T11:28:29","slug":"how-to-enable-powertools-repository-on-rocky-linux-8","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/red-hat\/how-to-enable-powertools-repository-on-rocky-linux-8\/","title":{"rendered":"How to Enable PowerTools Repository on Rocky Linux 8"},"content":{"rendered":"<p>PowerTools is a special repository available for Red Hat and Red Hat derivatives such as CentOS, Oracle Linux, Rocky and AlmaLinux. It makes it possible to download and install developer-related tools, libraries, packages and dependencies. PowerTools is a prerequisite when installing some software packages provided by EPEL and other packages that other packages that need to be installed from source.<\/p>\n<p>In this guide, we will demonstrate how to install the PowerTools repository.<\/p>\n<h2><strong>Step 1: Enable PowerTools repository<\/strong><\/h2>\n<p>To set the ball rolling, launch your terminal and install the <a href=\"https:\/\/github.com\/rpm-software-management\/dnf-plugins-core\">core DNF plugins <\/a>as follows.<\/p>\n<pre><strong>$ sudo dnf install dnf-plugins-core<\/strong><\/pre>\n<p>In our case, the package is already installed.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"746\" height=\"151\" class=\"wp-image-13757\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-170.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-170.png 746w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-170-300x61.png 300w\" sizes=\"auto, (max-width: 746px) 100vw, 746px\" \/><\/strong><\/p>\n<p>Once installed, head over to the next step and enable EPEL repository.<\/p>\n<h2><strong>Step 2: Enable EPEL repository<\/strong><\/h2>\n<p>The next step is to install EPEL. EPEL, an acronym for Extra Packages for Enterpise Linux, is a repository that provides a set of high quality packages from Fedora Project which are not included, by default, on Red Hat and Red Hat distros such as Rocky and AlmaLinux.<\/p>\n<p>To install EPEL run the command:<\/p>\n<pre><strong>$ sudo dnf install https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-8.noarch.rpm<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"902\" height=\"284\" class=\"wp-image-13758\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-171.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-171.png 902w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-171-300x94.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-171-768x242.png 768w\" sizes=\"auto, (max-width: 902px) 100vw, 902px\" \/><\/strong><\/p>\n<p>You can confirm that EPEL is installed by running the command:<\/p>\n<pre><strong>$ rpm -qi<\/strong><\/pre>\n<p>The command provides intricate details such as the name, version release, and architecture of EPEL.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"774\" height=\"232\" class=\"wp-image-13759\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-172.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-172.png 774w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-172-300x90.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-172-768x230.png 768w\" sizes=\"auto, (max-width: 774px) 100vw, 774px\" \/><\/strong><\/p>\n<p>With EPEL in place, we can now go ahead and enable PowerTools repository.<\/p>\n<h2><strong>Step 3: Enable PowerTools repository <\/strong><\/h2>\n<p>Lastly, we are going to enable the PowerTools repository. To achieve this m use the config-manager program as follows.<\/p>\n<pre><strong>$ sudo dnf config-manager --set-enabled powertools<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"693\" height=\"94\" class=\"wp-image-13760\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-173.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-173.png 693w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-173-300x41.png 300w\" sizes=\"auto, (max-width: 693px) 100vw, 693px\" \/><\/strong><\/p>\n<p>To verify that PowerTools has been enabled, check the list of enabled repositories.<\/p>\n<pre><strong>$ sudo dnf repolist<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"832\" height=\"199\" class=\"wp-image-13761\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-174.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-174.png 832w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-174-300x72.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-174-768x184.png 768w\" sizes=\"auto, (max-width: 832px) 100vw, 832px\" \/><\/p>\n<p>From the output, we can see that PowerTools is included in the list of enabled repositories alongside EPEL. A better way to narrow down the output is to run the command<\/p>\n<pre><strong>$ sudo dnf repolist | grep -i powertools<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"601\" height=\"108\" class=\"wp-image-13762\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-175.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-175.png 601w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-175-300x54.png 300w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/strong><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>And there you have it! Enabling PowerTools repository on Rocky Linux and any other Red Hat derivative is as easy as they come. It\u2019s a matter of three simple steps, and you have it enabled on your system.<\/p>","protected":false},"excerpt":{"rendered":"<p>PowerTools is a special repository available for Red Hat and Red Hat derivatives such as CentOS, Oracle Linux, Rocky and AlmaLinux. It makes it possible to download and&hellip;<\/p>","protected":false},"author":1,"featured_media":13831,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[165],"tags":[832,198,411],"class_list":["post-13756","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-red-hat","tag-powertools","tag-red-hat-enterprise-linux-8","tag-rocky-linux"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/13756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=13756"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/13756\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/13831"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=13756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=13756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=13756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}