why do I need to run pkg_glob as root?

Kris Kennaway kris at obsecurity.org
Fri Mar 17 21:42:00 UTC 2006

On Fri, Mar 17, 2006 at 05:58:25PM -0300, Fernan Aguero wrote:
> [fernan at omega] pkg_glob -R x11-toolkits/gtkmm24
> ** You do not own /var/db/pkg. (use -f to force or run as root)
> Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ
> Of course I do not own /var/db/pkg ... but I can read it!
> [fernan at omega] ls -ld /var/db/pkg
> drwxr-xr-x  483 root  wheel  13824 Mar 17 17:52 /var/db/pkg
> I can even get a list of required packages for gtkmm24 just
> by doing something like:
> grep pkgdep /var/db/pkg/gtkmm-2.8.3_2/+CONTENTS | awk '{print $2}'
> so why can't pkg_glob?

Because it needs to write to /var/db/pkg to first update the index
(which is apparently out of date on your machine).  If you don't mind
that it working with a stale index (i.e. not representing the true
state of your installed packages), you can use -f per the message you

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060317/e3096658/attachment.pgp

More information about the freebsd-ports mailing list