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=thinkhelpassproxy=http://proxy.thinkhel.com:9090 proxy_username=thinkhel proxy_password=thinkhelpass proxy_username and proxy_password are optional, based on your proxy server configuration.

curl via proxy

To send a request using curl via proxy: $ curl -v –proxy [proxy_address]:[port] [protocol://][hostname]$ curl -v –proxy [proxy_address]:[port] [protocol://][hostname]