Configuring a System to Use a Proxy With a Yum Server
If the organization uses a proxy server as an intermediary for internet access, specify the
proxy
setting in /etc/dnf/dnf.conf
as shown in the
following example.
proxy=http://proxysvr.example.com:3128
If the proxy server requires authentication, also specify the
proxy_username
, and proxy_password
settings.
proxy=http://proxysvr.example.com:3128
proxy_username=user
proxy_password=password
Caution:
All dnf users require read access to
/etc/dnf/dnf.conf
or /etc/sysconfig/rhn/up2date
. If
these files must be world-readable, don't use a proxy password that's the same as any user's
login password, and especially not root
's password.