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

[sokay.  i slept too.  :-]

>> >> # 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.

i'm confused also, but this is the only problem now.  and for all i
know, it was always like this.

>> >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

/usr/pkg/bin/bing                                  bing-1.0.4
/usr/pkg/share/terminfo/z/ztx11                    ncurses-1.9.9g

>pkg_info -Fe /usr/pkg/bin/gtexinfo	<- find out which package the
>					   named file belongs to

# pkg_info -Fe /usr/pkg/bin/bing

>pkg_info -FqL /usr/pkg/bin/gtexinfo 	<- get list of all files belonging
>					   to /usr/pkg/bin/gtexinfo

# pkg_info -FqL /usr/pkg/bin/bing

no problem.

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."