Subject: Re: i broke my package system :)
To: Andrew Brown <>
From: Hubert Feyrer <>
List: tech-pkg
Date: 04/26/1999 12:47:55
[sorry for the late answer, I needed some sleep :-]

On Sun, 25 Apr 1999, Andrew Brown wrote:
> >> # file /var/db/pkg/pkgdb.byfile.db
> >> /var/db/pkg/pkgdb.byfile.db: ASCII text
> >
> >Interresting...
> >miyu% file /var/db/pkg/pkgdb.byfile.db 
> >/var/db/pkg/pkgdb.byfile.db: Berkeley DB Btree file/Little Endian (Version
> >3, Page Size 8192, Free Page 312, Number of Records 0, Flags 0x20)

I just see that this is actually OK - file(1)'s database on 1.3.x just
doesn't recognize DB files as such.

> >Can you rm the file, run "pkg_admin rebuiild", then run the file-command
> >again?
> um...okay.  nope.  still ascii. this is actually broked, how
> else would it manifest itself?

Well you can try to query the pkgdb in some way or other:

pkg_info -F				<- dump the whole pkgdb
pkg_info -Fe /usr/pkg/bin/gtexinfo	<- find out which package the
					   named file belongs to
pkg_info -FqL /usr/pkg/bin/gtexinfo 	<- get list of all files belonging
					   to /usr/pkg/bin/gtexinfo

 - Hubert 

NetBSD - better for your uptime than Viagra