How to install Red Hat Enterprise Linux (RHEL) Extended Update Support (EUS) packages on a Red Hat Enterprise Linux Universal Base Image (UBI)
Issue
- Error: Unable to find a match in a UBI container when trying to install a package from a RHEL EUS repository, even if the UBI container is running on a RHEL host which is registered and subscribed to a valid RHEL Premium subscription (or EUS Add-on) and non EUS RHEL packages can be installed into the UBI container without errors
$ podman run registry.access.redhat.com/ubi8/ubi bash -c 'dnf install kernel-devel-4.18.0-305.34.2.el8_4.x86_64'
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
This system is not registered with an entitlement server. You can use subscription-manager to register.
Red Hat Enterprise Linux 8 for x86_64 - AppStre 5.9 MB/s | 38 MB 00:06
Red Hat Enterprise Linux 8 for x86_64 - BaseOS 6.0 MB/s | 43 MB 00:07
Red Hat Universal Base Image 8 (RPMs) - BaseOS 1.3 MB/s | 796 kB 00:00
Red Hat Universal Base Image 8 (RPMs) - AppStre 3.5 MB/s | 2.6 MB 00:00
Red Hat Universal Base Image 8 (RPMs) - CodeRea 6.6 kB/s | 16 kB 00:02
No match for argument: kernel-devel-4.18.0-305.34.2.el8_4.x86_64
Error: Unable to find a match: kernel-devel-4.18.0-305.34.2.el8_4.x86_64
- Status code: 404 and Error: Failed to download metadata while trying to install a RHEL EUS package into a UBI container, even if the package can be installed on the RHEL host without errors and a correct repository is passed to the container
dnf
with the--enablerepo
parameter
$ podman run registry.access.redhat.com/ubi8/ubi bash -c 'dnf install --enablerepo=rhel-8-for-x86_64-baseos-eus-rpms kernel-devel-4.18.0-305.34.2.el8_4.x86_64'
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
This system is not registered with an entitlement server. You can use subscription-manager to register.
Red Hat Enterprise Linux 8 for x86_64 - BaseOS 6.2 MB/s | 43 MB 00:06
Red Hat Enterprise Linux 8 for x86_64 - AppStre 5.9 MB/s | 38 MB 00:06
Red Hat Enterprise Linux 8 for x86_64 - BaseOS 3.5 B/s | 10 B 00:02
Errors during downloading metadata for repository 'rhel-8-for-x86_64-baseos-eus-rpms':
- Status code: 404 for https://cdn.redhat.com/content/eus/rhel8/8/x86_64/baseos/os/repodata/repomd.xml (IP: 23.65.200.83)
Error: Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-eus-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
subscription-manager
is not available inside a UBI container, thereforesubscription-manager release --set=$VERSION
can't be used to set the RHEL EUS stream to the containerdnf
Environment
- Red Hat Enterprise Linux (RHEL)
- 8.4
- Red Hat Universal Base Images (UBI)
- ubi8/ubi
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.