apt-get
Michael Vogt
mvogt at acm.org
Wed Nov 3 20:51:56 UTC 2004
On Mon, Nov 01, 2004 at 04:33:53PM -0500, Bob Carlucci wrote:
> How do i edit the config file so that i could use apt-get thru a proxy server?
You can set the http_proxy enviroment variable to do this:
$ export http_proxy=http://proxy.my-isp.com:3128/
$ sudo apt-get update
Alternativly you can edit /etc/apt/apt.conf and add lines like this:
Acquire
{
// HTTP method configuration
http
{
Proxy "http://127.0.0.1:3128";
Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
Timeout "120";
Pipeline-Depth "5";
// Cache Control. Note these do not work with Squid 2.0.2
No-Cache "false";
Max-Age "86400"; // 1 Day age on index files
No-Store "false"; // Prevent the cache from storing archives
};
}
(for a complete reference of the apt configuration see:
/usr/share/doc/apt/examples/configure-index.gz)
bye,
Michael
--
The first rule of holes is: when you find yourself in one, stop digging. - PJ
Linux is not The Answer. Yes is the answer. Linux is The Question. - Neo
More information about the ubuntu-users
mailing list