Tuesday, July 7, 2009

How to use apt-get behind proxy server from command line (Ubuntu)

Edit your /etc/bash.bashrc file as root. Put these line at the end of your /etc/bash.bashrc file :
export http_proxy=http://username:password@proxyserver.net:port/
export ftp_proxy=http://username:password@proxyserver.netport/

1 comments:

andrey said...

This is also applicable to yum, wget and some other tools.

Post a Comment