Fedora DNF Proxy

Reading Time: 1 minute

Fedora’s Package manager DNF requires proxy if you are behind a company network. To enter the details:

sudo nano /etc/dnf/dnf.conf

add the below line and replace it with your settings and credentials:

proxy=http://URL:PORT/
proxy_username=OPTIONAL-IF-NOT-MANDATORY
proxy_password=OPTIONAL-IF-NOT-MANDATORY

save the file and give it a shot.

For troubleshooting you can always

tail -f /var/log/dnf.log

For my Setup Fedora 28 64bit Mate the bug persisted: https://bugzilla.redhat.com/show_bug.cgi?id=1387622

Resolution is stated in the comment, open the file

nano /usr/lib/python3.6/site-packages/dnf/repo.py

find the line contain

h.setopt(librepo.LRO_PROXYAUTH, True)

replace with

h.setopt(librepo.LRO_PROXYAUTHMETHODS, 8)

save the file

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *