Subject: Re: pkg_add + wget?
To: Mike M. Volokhov <mishka@apk.od.ua>
From: Kamil Shakirov <kamils80@gmail.com>
List: netbsd-users
Date: 07/21/2005 15:22:17
hello, Mike

Mike M. Volokhov wrote:
>>I tried to install some binary packages being behind proxy but I didn't 
>>  succeed. I know about ftp_proxy and http_proxy and set them properly 
>>but  couldn't make the ftp client work for me. But wget works fine. Is 
>>there any way to make pkg_add work with wget? Thanks in advance!
> 
> 
> AFAIK, no, you can't use wget for pkg_add, because all HTTP/FTP fetches
> performed using internal routines (ftpio.c) and pkg_add didn't use any
> external command (even nbftp) to retrive packages.
> 
> But I believe you may get it works via proxy. For example, if you have
> HTTP proxy running at port 8080 on host proxy.local, just set the
> mentioned variables to the following values:
> 
> 	ftp_proxy=ftp://proxy.local:8080
> 	http_proxy=http://proxy.local:8080
> 
> Also, you may wish to use passive mode for ftp transfers. If so, set
> the environment variable FTP_PASSIVE_MODE to some value ("yes", for
> example).

Thanks for your advice, Mike. I have just tried FTP_PASSIVE_MODE and it 
didn't help me. :) by the way, my ftp environment has been already set like:

HTTP_PROXY=http://user:blabla@proxy.myhost.ru:8080/
FTP_PROXY=http://user:blabla@proxy.myhost.ru:8080/

I have no idea why it doesn't work. :(