Working With MicroDNF Behind A HTTP/HTTPS Proxy

Solution In Progress - Updated -

Issue

  • Running the rhel7-minimal container image's microdnf command behind a HTTP/HTTPS proxy results in the following error:
# podman run --rm -it rhel-minimal:7.5 /bin/bash

bash-4.2# microdnf --enablerepo=rhel-7-server-rpms install bash-completion
Downloading metadata...
(microdnf:8): libdnf-WARNING **: Skipping refresh of rhel-7-server-rpms: cannot update repo 'rhel-7-server-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Curl error (6): Couldn't resolve host name for https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml [Could not resolve host: cdn.redhat.com; Name or service not known]
error: No package matches 'bash-completion'

Environment

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