LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   APT behind a proxy (http://www.linuxquestions.org/questions/debian-26/apt-behind-a-proxy-166194/)

geniarse 04-04-2004 06: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 06:51 PM

Yes and Yes.
Gentoo
Code:

[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
Code:

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.

HTH

geekzen 04-04-2004 06:53 PM

http://lists.debian.org/deity/1999/d.../msg00193.html

Google is your friend

xcity 04-04-2004 08: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 10: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 05:11 PM.