Using yum with registry.access.redhat.com Images: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 11: | Line 11: | ||
=Procedure= | =Procedure= | ||
Prepare a yum repository file. It can be conventionally named redhat.repo. It should list the repositories that contains the dependencies that are needed. A commonly used repository is "": | Prepare a yum repository file. It can be conventionally named redhat.repo. It should list the repositories that contains the dependencies that are needed. A commonly used repository is "rhel-7-server-extras-rpms": | ||
[rhel-7-server-extras-rpms] | [rhel-7-server-extras-rpms] | ||
name = Red Hat Enterprise Linux 7 Server - Extras (RPMs) | name = Red Hat Enterprise Linux 7 Server - Extras (RPMs) | ||
baseurl = https | baseurl = https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/extras/os | ||
ui_repoid_vars = basearch | ui_repoid_vars = basearch | ||
metadata_expire = 86400 | metadata_expire = 86400 |
Revision as of 20:25, 15 February 2018
Internal
Overview
registry.access.redhat.com images may need at times additional components installed with yum. However, they do not come pre-configured with any repository yum may use, so it fails with:
This article describes the procedure to configure the image with the appropriate repositories and entitlements, so yum can be used. Note that entitlements required to access the RPM repository in question are necessary.
Procedure
Prepare a yum repository file. It can be conventionally named redhat.repo. It should list the repositories that contains the dependencies that are needed. A commonly used repository is "rhel-7-server-extras-rpms":
[rhel-7-server-extras-rpms] name = Red Hat Enterprise Linux 7 Server - Extras (RPMs) baseurl = https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/extras/os ui_repoid_vars = basearch metadata_expire = 86400 sslverify = 1 enabled = 1 gpgcheck = 1 sslclientkey = /etc/pki/entitlement/4174589344081022728-key.pem sslclientcert = /etc/pki/entitlement/4174589344081022728.pem gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release sslcacert = /etc/rhsm/ca/redhat-uep.pem