Enable CRB “Code Ready Builder” – PowerTools in AlmaLinux 9

CentOS PowerTools is not available in RHEL 9-based systems instead its equivalent repository which is known as CRB (Code Ready Builder). In this article, we learn the commands to enable CRB in Almalinux or Rocky Linux 9.

PowerTools repository is still available for CentOS 8 or other RHEL 8-based Linux such as Almalinux or Rocky. It was meant to offer a range of tools & libraries mainly required by developers. However, in RHEL 9 and its based Linux distros it is known as Code Ready Builder.

CRB (Code Ready Builder) is an equivalent repository to well-known CentOS PowerTools and in short known as CRB in RHEL including Almalinux,  Rocky Linux, and other derivatives.

It provides developers with a range of tools and features that can help them to streamline their workflow and increase productivity. With its powerful features and tools, Code Ready Builder is an excellent choice for developers looking to create and deploy applications quickly and efficiently.

Note: CRB is an equivalent repository to PowerTools but all the packages in the two repositories would not be the same or available in both.

Enable CRB in AlmaLinux or Rocky Linux 9

1. Perform the System update

Let’s start with the system update command to refresh the DNF package manager and install available security and application package updates.

sudo dnf update

2. Install Yum-utils on AlmaLinux or Rocky Linux 9

Yum-utils is a collection of tools and utilities for RHEL-based Linux package manager called Yellowdog Updater Modified (YUM). It provides several useful commands that can be used to manage software packages and repositories such as the config-manager that is required to manage repositories.

sudo dnf install yum-utils

3. Enable CRB on Almalinux 9 – PowerTools alternative

Now, use the config-manager and enable the already existing Code Ready Builder repository on your Almalinux or Rocly Linux using the given command:

sudo dnf config-manager --set-enabled crb

4. Check the list of enabled repositories

To confirm CRB is enabled successfully on our Linux system, we can list the active repositories, here is the command to do that:

dnf repolist

Output:

repo id                     repo name


appstream                   AlmaLinux 9 - AppStream

baseos                      AlmaLinux 9 - BaseOS

crb                         AlmaLinux 9 - CRB

extras                      AlmaLinux 9 - Extras

5. Install Epel and Epel Next

If you are also interested in enabling EPEL – Extra packages for Enterprise Linux and EPEL Next on Almalinux 9 then here are the command to do that.

What is EPEL Next?

EPEL packages are built for RHEL, but EPEL Next offers an alternative repository for building against CentOS Stream. This is useful for upcoming RHEL library rebases or minimum version build requirements not yet in RHEL. EPEL Next has its own distgit branches, koji build targets, and bodhi releases, with a .next disttag for upgrade paths.

Command to enable EPEL

sudo dnf install epel-release

Command to enable EPEL Next

sudo dnf install epel-next-release

FAQ:

How do I download all EPEL packages?

To download the packages available through the EPEL repository, we have to first enable it using the command- sudo dnf install epel-release in our terminal. This will enable the repository as per the version of our Linux and let us download the packages available through it.

How do I know if EPEL is enabled?

To know whether the EPEL repository is added and enabled on our RHEL-based Linux, use the yum repolist or dnf repolist command. This will list all the active repositories of the system. If the EPEL is enabled then it will show in the list.

How to enable PowerTools in Almalinux 9?

“PowerTools” is not available in AlmaLinux 9 or CentOS 9 including other Linux based on RHEL 9. Instead of that use the CRB – Code Ready Builder repository which is equivalent to it and can provide the packages required by developers or the EPEL repository.

Can we use the commands of Almalinux on Rocky Linux?

Yes, whatever commands and packages are meant to run on Almalinux can also be used on Rocky Linux as well. Because both are based on RHEL Linux.

Other Related articles:

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.