The CodeReady Linux Builder repository is created for Developers working on Red Hat Enterprise Linux Server and Workstation machines. This is in addition to the BaseOS and Appstream repositories which are both enabled by default. CodeReady Linux Builder is for developers writing RHEL Linux applications and it also include packages for developers to use when building their applications.
For developers working with C and C++, many of the header files, devel packages, etc. can be found in the Builder repository. This CodeReady Linux Builder Repository can be enabled on a RHEL 8 server with the subscription-manager command line tool. If you’re not registered to RHSM or Satellite Server run the following command:
$ sudo subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: <my-email-address-or-username>
Password: <my-password>
The system has been registered with ID: f3c9e24b-8500-42d3-9dd1-8f70106db256
The registered system name is: rhel8.computingforgeeks.com
To list subscription and product information for the RHEL 8 system run the following command:
sudo subscription-manager list
To check all available subscriptions not yet attached to the system, the command used is:
sudo subscription-manager list --available
You can automatically attach the best-matched compatible subscriptions to the system:
$ sudo subscription-manager attach --auto
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64
Status: Subscribed
Then set the service level (standard, premium, or selfsupport) for subscriptions attached to the system:
$ sudo subscription-manager attach --servicelevel=standard
Service level set to: standard
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64
Status: Subscribed
Enable CodeReady Linux Builder Repository on RHEL 8
First check the current list of repositories enabled on your RHEL 8 server.
$ sudo yum repolist
Updating Subscription Management repositories.
Last metadata expiration check: 0:00:43 ago on Wed 28 Oct 2020 03:49:00 PM EDT.
repo id repo name status
rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 11,143
rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 5,098
From the output we can confirm only AppStream and BaseOS repositories are enabled.
CodeReady Linux Builder Repository can be enabled on RHEL 8 with the command below.
$ sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
Repository 'codeready-builder-for-rhel-8-x86_64-rpms' is enabled for this system.
Confirm:
$ sudo yum repolist
Updating Subscription Management repositories.
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) 1.9 MB/s | 3.7 MB 00:01
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 26 kB/s | 4.5 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 22 kB/s | 4.1 kB 00:00
repo id repo name status
codeready-builder-for-rhel-8-x86_64-rpms Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) 2,226
rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 11,143
rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 5,098
Repo details:
$ sudo yum repoinfo codeready-builder-for-rhel-8-x86_64-rpms
Updating Subscription Management repositories.
Last metadata expiration check: 0:06:20 ago on Wed 28 Oct 2020 03:53:06 PM EDT.
Repo-id : codeready-builder-for-rhel-8-x86_64-rpms
Repo-name : Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
Repo-status : enabled
Repo-revision: 1603811553
Repo-updated : Tue 27 Oct 2020 11:12:32 AM EDT
Repo-pkgs : 2,226
Repo-size : 1.6 G
Repo-baseurl : https://cdn.redhat.com/content/dist/rhel8/8/x86_64/codeready-builder/os
Repo-expire : 86,400 second(s) (last: Wed 28 Oct 2020 03:53:04 PM EDT)
Repo-filename: /etc/yum.repos.d/redhat.repo
The The CodeReady Linux Builder repository includes a number of modules. Run the command below to get a list of available modules on CRB repository.
$ sudo yum module list --disablerepo=* --enablerepo=codeready-builder-for-rhel-8-x86_64-rpms
Updating Subscription Management repositories.
Last metadata expiration check: 0:00:44 ago on Wed 28 Oct 2020 03:53:04 PM EDT.
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
Name Stream Profiles Summary
javapackages-tools 201801 common Tools and macros for Java packaging support
mariadb-devel 10.3 MariaDB Module
python38-devel 3.8 Python programming language, version 3.8
virt-devel rhel Virtualization module
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
Checking module info in CRB repo:
sudo yum module info python38-devel
Enabling module in CRB repository:
sudo yum module enable <module>
To list all packages available in the CRB repository type the command below:
sudo yum --disablerepo="*" --enablerepo="codeready-builder-for-rhel-8-x86_64-rpms" list available
You now have CodeReady Linux Builder (CRB) repository enabled on RHEL 8 Server or Workstation.
More guides on RHEL 8:
- Install Graphite & Graphite-Web on CentOS 8 | RHEL 8
- Install Quipucords / QPC on CentOS 8 | RHEL 8
- Install and Configure DRBD on CentOS 8 | RHEL 8
I did that. And it’s enabled. Now how am i supposed to use it to start creating apps?