why do I need to run pkg_glob as root?

Fernan Aguero fernan at iib.unsam.edu.ar
Fri Mar 17 21:59:47 UTC 2006


+----[ Kris Kennaway <kris at obsecurity.org> (17.Mar.2006 18:52):
|
| 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
| quoted.
| 
| Kris
|
+----]

OK, got it. Sorry for the noise.

Fernan


More information about the freebsd-ports mailing list