Subject: Re: pkg_add + wget?
To: Mike M. Volokhov <mishka@apk.od.ua>
From: Rui Paulo <rpaulo@NetBSD.org>
List: netbsd-help
Date: 07/21/2005 12:24:13
On 2005.07.21 14:02:22 +0000, Mike M. Volokhov wrote:
 | 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.

Are you sure about this ?

proton% pkg_add -v firefox                                                  [~]
parsing: ftp://ftp.NetBSD.org/pub/NetBSD/packages/2.0/i386/All
path: ftp://ftp.NetBSD.org/pub/NetBSD/packages/2.0/i386/All
increasing RLIMIT_NOFILE to max. 1772 open files
trying PKG_PATH ftp://ftp.NetBSD.org/pub/NetBSD/packages/2.0/i386/All
Spawning FTP coprocess
ftp -detv ftp://ftp.NetBSD.org/pub/NetBSD/packages/2.0/i386/All/
...

proton% ps ax|grep ftp                                                      [~]
 569 ttyp3 S+   0:00.01 ftp -detv ftp://ftp.NetBSD.org/pub/NetBSD/packages/2.0/
1276 ttyp5 R+   0:00.00 grep ftp (zsh)

Am I missing something ?

		-- Rui Paulo