How to enable and make use of content within CodeReady Linux Builder
Table of Contents:
- Overview
- Enabling the Repository
- CodeReady Linux Builder Modules
- How to download a CodeReady Package from Portal
Overview
Alongside the primary two repositories available within Red Hat Enterprise Linux 8, unsupported additional content is provided within the new CodeReady Linux Builder (CRB) repository.
For overview information regarding this content, please see the following:
Introducing the CodeReady Linux Builder Repository - Red Hat Customer Portal:
As the content available with CRB is unsupported, it is disabled by default. Additional action is necessary to install RPMs and Modules shipped within that repository.
Enabling the Repository
To enable the repository, the following
subscription-managercommand can be used:
# subscription-manager repos --enable <repo-id> ##syntax## # subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
This will allow most content to be available for installation. Specifically, any content that is available as a non-modularized RPM will be able to be installed.
CodeReady Linux Builder Modules
The CRB repository also includes a number of modules. The following is a list of available modules at the time of this article being written:
# yum module list --disablerepo=* --enablerepo=codeready-builder-for-rhel-8-x86_64-rpms Updating Subscription Management repositories. Last metadata expiration check: 0:40:08 ago on Tue 13 Aug 2019 08:49:29 AM 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 virt-devel rhel Virtualization module Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
In the output above, the
javapackages-toolsmodule includes acommonprofile, but it is not defined as the default. Thevirt-develmodule does not include a profile. With either of these states, no profile included or a profile included but not the default, it is necessary to enable the module stream in order to install included content.# yum module info javapackages-tools | grep xz-java : xz-java-0:1.8-2.module+el8+2598+06babf2e.noarch : xz-java-javadoc-0:1.8-2.module+el8+2598+06babf2e.noarch # yum install xz-java Updating Subscription Management repositories. Last metadata expiration check: 0:42:24 ago on Tue 13 Aug 2019 08:49:30 AM EDT. No match for argument: xz-java Error: Unable to find a match
The output above shows that the modularized
xz-javapackage cannot be installed by default. In order to do so, the module must first be enabled.# yum module enable javapackages-tools Updating Subscription Management repositories. Last metadata expiration check: 0:42:33 ago on Tue 13 Aug 2019 08:49:30 AM EDT. Dependencies resolved. ========================================================================================================= Package Arch Version Repository Size ========================================================================================================= Enabling module streams: javapackages-tools 201801 Transaction Summary ========================================================================================================= Is this ok [y/N]: y Complete! [root@localhost ~]# yum install xz-java Updating Subscription Management repositories. Last metadata expiration check: 0:42:40 ago on Tue 13 Aug 2019 08:49:30 AM EDT. Dependencies resolved. ========================================================================================================= Package Arch Version Repository Size ========================================================================================================= Installing: xz-java noarch 1.8-2.module+el8+2598+06babf2e codeready-builder-for-rhel-8-x86_64-rpms 106 k Installing dependencies: javapackages-filesystem noarch 5.3.0-2.module+el8+2598+06babf2e codeready-builder-for-rhel-8-x86_64-rpms 30 k copy-jdk-configs noarch 3.7-1.el8 rhel-8-for-x86_64-appstream-rpms 27 k libjpeg-turbo x86_64 1.5.3-7.el8 rhel-8-for-x86_64-appstream-rpms 155 k lua x86_64 5.3.4-10.el8 rhel-8-for-x86_64-appstream-rpms 192 k java-1.8.0-openjdk-headless x86_64 1:1.8.0.222.b10-0.el8_0 rhel-8-for-x86_64-appstream-rpms 32 M tzdata-java noarch 2019b-1.el8 rhel-8-for-x86_64-appstream-rpms 189 k lksctp-tools x86_64 1.0.18-3.el8 rhel-8-for-x86_64-baseos-rpms 100 k Transaction Summary ========================================================================================================= Install 8 Packages Total download size: 33 M Installed size: 114 M Is this ok [y/N]: y <snip> Installed: xz-java-1.8-2.module+el8+2598+06babf2e.noarch javapackages-filesystem-5.3.0-2.module+el8+2598+06babf2e.noarch copy-jdk-configs-3.7-1.el8.noarch libjpeg-turbo-1.5.3-7.el8.x86_64 lua-5.3.4-10.el8.x86_64 java-1.8.0-openjdk-headless-1:1.8.0.222.b10-0.el8_0.x86_64 tzdata-java-2019b-1.el8.noarch lksctp-tools-1.0.18-3.el8.x86_64 Complete!
How to download a CodeReady Package from Portal
You can download a CodeReady package from the following link.
This content is not included.This content is not included.https://access.redhat.com/downloads/content/491/ver=/rhel---8/8/x86_64/packages