How to add optional repos to RHEL 8?

Latest response

Hi, I would like to know how to add optional repos, and/or EPEL to RHEL 8?

I tried typing into terminal: subscription-manager repos --enable rhel-8-server-extras-rpms

It didn't work, I don't know what's going on, thanks! :)

Responses

Hi GD,

Welcome back ! :) There is no extras channel in RHEL 8 ... RHEL 8 comes with a completely new repository structure :

$ sudo subscription-manager repos --list-enabled
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-8-for-x86_64-baseos-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/baseos/os
Enabled:   1

Repo ID:   rhel-8-for-x86_64-appstream-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/appstream/os
Enabled:   1

BaseOS and AppStream contain all software packages, which were available in extras and optional repositories before.
If you want to enable the repo containing development software - enable codeready-builder-for-rhel-8-x86_64-rpms.
EPEL and RPM Fusion are not set up for RHEL 8 yet and it may take some longer time, because RHEL 8 is very new. :)

Regards,
Christian

Hi, thanks for your helpful reply, as always! I will keep a eye out for EPEL when it comes out! :)

You're welcome, GD (as always) ! :)

To extend Christian's answer - there are two more repositories for RHEL 8 that may be relevant. First, the traditional "supplementary" repository still exists, for third-party binaries (mostly IBM's version of Java). Second, many of the packages that used to be found in the "optional" repository for RHEL 6 or RHEL 7 are now in the "CodeReady Linux Builder" repository for RHEL 8:

Repo ID:   codeready-builder-for-rhel-8-x86_64-rpms
Repo Name: Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
Repo URL:  https://satellite.mumble/mumble/content/dist/rhel8/$releasever/x86_64/coderead
           y-builder/os
Enabled:   1

In particular, many of the *-devel packages are now in the CodeReady Builder repo.

Hi, thanks for your reply, I will try yo add CodeReady Linux Builder, and check out to see whats in it!

I forgot to ask what command do I type in terminal to get "CodeReady" repo installed? Thanks! :)

Hi GD,

sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms

sudo dnf upgrade

Regards,
Christian

Hi GD,

Forgot to say that you can still use the yum command instead of dnf ... if it is more convenient for you.
On RHEL 8 YUM is a sysmlink to DNF, which runs under the hood when you invoke the yum command. :)

Regards,
Christian