Subject: Re: i broke my package system :)
To: Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
From: Andrew Brown <atatat@atatdot.net>
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. uh...is this is actually broked, how
>> else would it manifest itself?
>
>Well you can try to query the pkgdb in some way or other:
okay.
>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
bing-1.0.4
>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
/usr/pkg/bin/bing
/usr/pkg/man/man8/bing.8
/usr/pkg/share/doc/bing/README
no problem.
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."