Set up HTTP PROXY via command line in Linux/FreeBSD Setting HTTP PROXY for command line tools such as wget/fetch/pkg_add/yum/apt-get on Linux and Freebsd.
Wget/apt-get/fetch/yum/pkg_add -rv and the rest of command line tools in Linux and FreeBSD that use HTTP protocol will not use the proxy settings from your Firefox/Konqueror/Opera browsers. Instead, an environment variable "HTTP_PROXY" must be set and exported.
Assuming that your HTTP Proxy IP address is 192.168.0.1 port 3128 (standard proxy port), you must use following command (as the user you wish you have this setting for):
# export HTTP_PROXY='http://192.168.0.1:3128'
Setting up HTTP Proxy with authentication for command line tools in FreeBSD and Linux
Designed and developed by Andrei Manescu. Optimized for Mozilla Firefox.
Copyright 2007 Andrei Manescu
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by those who posted them.