Subject: re: Ease of Downloading Packages
To: matthew green <mrg@eterna.com.au>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 12/19/2001 22:31:38
On Thu, 20 Dec 2001, matthew green wrote:
> But what if, instead of typing
>
> pkg_add
> ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/i386/All/pine-4.33.tgz
>
> I could just type
>
> pkg_add http://packages.netbsd.org/pine
>
> and it would give me the latest version?
You can already use a package name without the version info and it will
get the latest version for you.
> why not just `pkg_add pine' ? have some config file to stuff where
> to download from...
I am not sure if you are saying that this is possible -- or if you are
suggesting this idea.
You can already do it by setting the environment variable for PKG_PATH to
the semicolon-delimited list of URLs (and CD mounts, et cetera).
This works for me:
$ echo $PKG_PATH
ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/i386/All
$ pkg_add xsnow
("pkg_add pine" works to get pine-4.33.tgz.)
Jeremy C. Reed
http://bsd.reedmedia.net/