Friday, August 10, 2007

Using a proxy for apt-get in Debian

Linux Debian:

A quick and easy way to get apt-get to work with a proxy in Debian...

Place the following code into the file /etc/apt/apt.conf.d/proxy

Acquire::http::Proxy "http://proxy:8080";

2 comments:

Cd-MaN said...

I'm not sure that this actually works, but you could try doing:

export http_proxy=http://localhost:8008/

before running apt-get if you want to set it only for that given session.

TRR said...

The Debian way of doing this (ie, if you select a proxy during the installer) is now to write that Proxy config to /etc/apt/apt.conf