[Yum] Yum ignoring http_proxy system variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a Red Hat 9.0 box on a private LAN (ie: not connected to the Internet),
however I do have access to the web via a Squid proxy server.

The Red Hat installation is straight from the CDs - so no updates have been
applied yet.

I log on as root

In .bash_profile I have put in:
  http_proxy=http://proxy.lan:8080/

and have confirmed at the command prompt
  # echo $http_proxy
  http://proxy.lan:8080/

Initially I was getting this error:
--------------------------------------
  # yum list
  Gathering header information file(s) from server(s)
  Server: Red Hat Linux 9 - i386 - Base
  retrygrab() failed for:
   
http://mirror.dulug.duke.edu/pub/yum-repository/redhat/9/i386/headers/header.info
    Executing failover method
  failover: out of servers to try
  Error getting file
http://mirror.dulug.duke.edu/pub/yum-repository/redhat/9/i386/headers/header.info
  [Errno 4] IOError: <urlopen error >
--------------------------------------

I figured that it was because it could not resolve mirror.dulug.duke.edu - even
though it shouldn't need to, so I entered the following in /etc/hosts
  152.3.97.77             mirror.dulug.duke.edu

Now when I run "yum list" it just sits there - and when I run a "netstat -a" I
see that it is trying to make a direct HTTP connection to mirror.dulug.duke.edu
when it should be using my proxy.

Any ideas?

Regards,
Rob

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux