Friday, November 13, 2015

Fedora : DNF with proxy

# dnf update
Error: Failed to synchronize cache for repo 'fedora' from 'https://mirrors.fedoraproject.org/metalink?repo=fedora-23&arch=x86_64': Cannot prepare internal mirrorlist: Curl error (28): Timeout was reached for https://mirrors.fedoraproject.org/metalink?repo=fedora-23&arch=x86_64 [Connection timed out after 120000 milliseconds]

Currently, I using Gnu/Linux Fedora 23. If you are working behind a proxy server just like me, then you have to edit the file /etc/dnf/dnf.conf so that DNF can know which proxy setting to use.

# gedit etc/dnf/dnf.conf

Then add proxy=http://proxy:port at end of the file. Example :
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=true
proxy=http://192.168.100.252:8080

References:
  1. http://dnf.readthedocs.org/en/latest/conf_ref.html
  2. https://docs.fedoraproject.org/en-US/Fedora/
  3. http://linoxide.com/how-tos/yum-replace-dnf




1 comment:

  1. Whenever I need some problem relating this issue I come to your site and get very informative stuff thanks a lot for your article . Keep it up.
    Monova UK proxy

    ReplyDelete