Wednesday, December 10, 2008

FreeBSD|installing freebsd packages behind proxy

installing freebsd packages behind proxy

if you're behind an authentication proxy (in my case, it's an ISA proxy server), you can add the following to your environment or .profile:

export FTP_PROXY=http://proxy_username:proxy_passsword@proxyhost:proxyport

that way, pkg_add, portsnap, etc will go through the proxy. curiously, setting the following environments did not work for me:

export FTP_LOGIN=proxy_username
export FTP_PASSWORD=proxy_password
export FTP_PROXY=http://proxyhost:proxyport

another note: to accept all default build options, you can add the following to /etc/make.conf
BATCH=yes

or you can do: portupgrade -a --batch

freebsd/gentoo: portupgrade -a is equivalent to emerge -u world

No comments: