Subject: Re: package oddity
To: Johnny C. Lam <jlam@netbsd.org>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-users
Date: 05/24/2002 14:53:06
On Fri, 24 May 2002, Johnny C. Lam wrote:

> On Thu, May 23, 2002 at 09:52:59AM -0400, Steven M. Bellovin wrote:
> > >
> > >I guess that suse_base has a REQUIREDBY entry pointing to that version of
> > >communicator. I don't know how it has got there, but you may try to
> > >remove it manually. Go to /var/db/pkg/suse_base*/+REQUIREDBY, edit that
> > >file and remove the reference to communicator...
> > >
> > >Should solve the problem.
> >
> > Unfortunately, it doesn't -- there's no entry in that file for it.
> > Grep find it in pkgdb.byfile.db, but that's a db file.  Is there any
> > tool for rebuilding it from scratch?
>
> You can run "pkg_admin rebuild" as root to rebuild the pkgdb.byfile.db
> from the PLISTs of installed packages.  I often run it after deleting
> large packages to compact this file a bit.

Steven didn't say exactly what grep found, but that file has nothing
to do with the error given. "pkgdb.byfile.db" holds the mapping from
files to packages, for "pkg_info -F", and nothing more. You can see
all of what's in there with "pkg_admin dump".

Frederick