[CentOS] Using HTTP proxy for yum
Dogsbody
dan at dogsbody.org
Wed Aug 22 10:17:37 UTC 2007
>>> 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! :-)
Dan
More information about the CentOS
mailing list