Subject: Re: pkg_* crashes
To: Marc Baudoin <>
From: Hubert Feyrer <>
List: tech-pkg
Date: 03/15/2005 19:51:10
On Tue, 15 Mar 2005, Marc Baudoin wrote:
> ....................................pkg_admin: Package `randrext-1.0nb1' has no @name, aborting.
> Damned, adding "@name randrext-1.0nb1" to
> /var/db/pkg/randrext-1.0nb1/+CONTENTS (same thing for openmotif)
> does the trick and pkg_admin runs fine.
> Deleting them needed an extra "@cwd /usr/pkg".
> Now randrext installs fine (doing openmotif), thanks.
>> Next time leave "pkg_delete -O" alone, as it does probably not do what you
>> wanted. :)

The error you get from pkg_admin really seems like something got messed up 
in your /var/db/pkg entry for that pkg. BTW, the "package database" the 
pkg_delete manpage talks about is not the one in /var/db/pkg, but only the 
binary one in /var/db/pkg/pkgdb.byfile.db which is used for "pkg_info -F" 
to map files to pkgs, e.g. "pkg_info -Fe /usr/pkg/bin/bash".

Maybe someone should improve the manpage... :)

  - Hubert

NetBSD - Free AND Open!      (And of course secure, portable, yadda yadda)