Jan 23 2008

Setting up apt-get, wget to use http-proxy

Published by at 9:24 am under linux

If you are inside a corporate network, the chances are that you can only access the internet through the http-proxies.

This snippet shows you how to setup the proxy address for apt-get, wget and such programs to access internet.

First method:

In Bash Command Shell, execute

export http_proxy=http://proxy-address:portnumber

proxy-address is your proxy server address.

For example if your proxy server address is proxy1.mydomain.com and port is 8080 then

export http_proxy-http://proxy1.mydomain.com:8080

Second Method

in .bashrc file , type the following

http_proxy=http://proxy-address:portnumber

export http_proxy

Comments Off on Setting up apt-get, wget to use http-proxy

Comments are closed at this time.