Monday, 8 June 2015

Fedora 22: Configuring proxy settings for DNF (Yums replacement)

Having recently upgrading to Fedora 22, I tried to run yum to update my packages.

   [HR@M11x ~]$sudo yum update
    Yum command has been deprecated...

So the new package handling tool is DNF (Dandified Yum), which has the command

   [HR@M11x ~]$dnf

On the University of Huddersfield network I have to configure the proxy, which used to be done by editing yum.conf:

   [HR@M11x ~]$sudo gedit /etc/profile.d/yum.conf

and adding the line:

   proxy=http://wwwproxy.hud.ac.uk:3128

This works for yum, but now it has to be done for DNF:

   [HR@M11x ~]$sudo gedit /etc/profile.d/dnf/dnf.conf


fortunately the syntax is the same:

   proxy=http://wwwproxy.hud.ac.uk:3128
  
And now DNF should work.

No comments:

Post a Comment