[CentOS] Using HTTP proxy for yum

Wed Aug 22 10:49:59 UTC 2007
Michel van Deventer <michel at van.deventer.cx>

On Wed, 22 Aug 2007 11:17:37 +0100, Dogsbody wrote
> >>> Is there a way to use an HTTP proxy (with a user/pass) with yum?  Or
> >>> at least a way to pass a user/pass through yum?  I have a situation
> >>> with a CentOS server behind a web filter appliance.
> >>
> >> Add the following to /etc/wgetrc
> >> http_proxy = http://username:password@proxy.example.com:8080/
> >> ftp_proxy = http://username:password@proxy.example.com:8080/
> > 
> > Since when does yum read wgetrc?
> 
> I believe yum uses wget (or libraries) and wget reads wgetrc, I 
> picked this up from the yum mailing list and it works too! :-)
Setting the local vars HTTP_PROXY and FTP_PROXY is also enough if you just
want to use it in the current session.

   Michel


--
Het.Grote.Net WebMail, powered by OpenWebMail
--