Subject: size in pkgs [was: Re: CVS commit: basesrc]
To: Jim Wise <>
From: Hubert Feyrer <>
List: tech-pkg
Date: 12/02/1999 18:15:08
On Wed, 1 Dec 1999, Jim Wise wrote:
> On Mon, 29 Nov 1999, Hubert Feyrer wrote:
> >Add code to include the size of a package into both the
> >installed version and binary packages. The size can be queried then
> >via pkg_info:
> This is very nice.  Is there any way to generate this information for
> preexisting packages (much like pkg_admin rebuild for file content
> information)?

It should be possible to run down the pkg list, stat every file, and sum
then up, for the +SIZE_PKG file. for +SIZE_ALL, you'd have to do the same
for all the depending pkgs (@pkgdep in pkg list), and add that to
+SIZE_PKG. Shouldn't be too hard to pkg_admin or so.

 - Hubert

NetBSD - Better for your uptime than Viagra