-   Debian (
-   -   APT behind a proxy (

geniarse 04-04-2004 05:35 PM

APT behind a proxy
Heya, I'm planning to put debian on ma machine in the near future (I'm sick of suse) and I was wondering whether apt-get works behind a proxy server??? or any work arounds.

Plus while I'm here does the same work for emerge on gentoo if anyone knows

llamakc 04-04-2004 05:51 PM

Yes and Yes.

[ken:ken](06:48 PM)$ cat /etc/make.conf | grep proxy
# If you need to set a proxy for wget or lukemftp, add the appropriate "export
# ftp_proxy=<proxy>" and "export http_proxy=<proxy>" lines to /etc/profile if
# all users on your system should use them.

Debian man apt.conf

http  HTTP URIs; http::Proxy is the default http proxy to use.  It  is
              in the standard form of http://[[user][:pass]@]host[:port]/. Per
              host  proxies  can  also  be  specified  by  using  the  form
              http::Proxy::<host>  with  the special keyword DIRECT meaning to
              use no proxies. The http_proxy environment variable  will  over-
              ride all settings.


geekzen 04-04-2004 05:53 PM

Google is your friend

xcity 04-04-2004 07:35 PM

more words, some debian update site support both http protocal and ftp protocal, make sure you get the right one.

liamoboyle 04-14-2004 09:26 PM

apt-config -o http::Proxy=<proxy information> shell
will set the apt proxy for http, use ftp::Proxy for ftp.

<proxy information> as in the man pages or as described in the second post.

All times are GMT -5. The time now is 11:39 PM.