How to install RHEL rpms inside the UBI continers using host subscription

Solution Verified - Updated -

Issue

  • Yum cannot download and install RHEL RPMs from RHEL repos inside the UBI container even base host has a valid subscription.
  • Error
  RUN yum -y install foomatic
  No match for argument: foomatic
  Error: Unable to find a match: foomatic

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Podman

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content