Using DNF with a proxy

Edit the /etc/dnf/dnf.conf file, adding these parameters in the [main] section:

proxy=http://proxy.thinkhel.com:9090
proxy_username=thinkhel
proxy_password=thinkhelpass

proxy_username and proxy_password are optional, based on your proxy server configuration.