Custom Search

Thursday, February 19, 2009

yum through proxy, squid proxy, cannot connect through proxy, yum behind proxy

If you are behind a proxy, yum will not connect via proxy.
(Remember you had to put proxy information in Firefox Web Browser to connect with internet).

So, for yum, you have to put the same settings.

First, set the environment variable(s) for yum:

http_proxy="http://192.168.1.1:3128" /* if PROXY host is http://192.168.1.1 & PROT is 3128 */
ftp_proxy="http://192.168.1.1:3128"

Second, export the variable:

export http_proxy
export ftp_proxy

Third, run your yum command!!!!

No comments:

 
Watch the latest videos on YouTube.com