Subject: dependencies database
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 09/20/2002 01:54:01
I think it would be useful to have a small dependencies database that
would contain information about all available built packages on the
download sites (not just locally installed) and how they require each
other.

Then another tool could be used as a wrapper around pkg_add, for example,
you choose to install koffice, then it would know what packages (with
versions) are needed and then retrieve all of them first.

I think this may provide another way to install software faster. (Any
comments or suggestions?)

Is there a pkgsrc target for showing the dependencies without the
BUILD_DEPENDS too?

(I did patch show-depends-dirs target temporarily to test.)

It doesn't look like show-depends-dirs, show-all-depends-dirs-excl,
show-all-depends-dirs, or show-root-dirs are documented.

Is there a pkgsrc target for showing all (recursively) the dependencies
without build dependencies that also shows the version information too?

Something like "pkg_info -n"? (But without the results being based on the
package information about already installed packages.)

   Jeremy C. Reed
   http://bsd.reedmedia.net/

p.s. I had mentioned a few months ago about improving pkg_add so it could
have an option to permanently save the retrieved file instead of just
untarring it on the fly (as it is ftp'd). That way it could be used again
from a local location (via PKG_PATH order) instead of fetching remotely
again and again and again and ...

Anyways, I started patching various pkg_install files to add this feature.
The pkg_install code is a little hard to follow :) I am guessing it would
be better to rewrite a lot of the related code, instead of making
additional add-ons.