Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 2006 16:41:58 -0500
From:      Kris Kennaway <kris@obsecurity.org>
To:        FreeBSD Ports <ports@FreeBSD.ORG>
Subject:   Re: why do I need to run pkg_glob as root?
Message-ID:  <20060317214158.GA17455@xor.obsecurity.org>
In-Reply-To: <20060317205825.GC75135@iib.unsam.edu.ar>
References:  <20060317205825.GC75135@iib.unsam.edu.ar>

next in thread | previous in thread | raw e-mail | index | archive | help

--MGYHOYXEY6WxJCY8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Mar 17, 2006 at 05:58:25PM -0300, Fernan Aguero wrote:
> [fernan@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
>=20
> Of course I do not own /var/db/pkg ... but I can read it!
>=20
> [fernan@omega] ls -ld /var/db/pkg
> drwxr-xr-x  483 root  wheel  13824 Mar 17 17:52 /var/db/pkg
>=20
> 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}'
>=20
> 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

--MGYHOYXEY6WxJCY8
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (FreeBSD)

iD8DBQFEGy0lWry0BWjoQKURAsLxAJwIXeI33dYKNQ2kuIMDfbb9y0w6+wCeN/QA
opAfqrDz1Eu12vJb1vzf184=
=EMwS
-----END PGP SIGNATURE-----

--MGYHOYXEY6WxJCY8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060317214158.GA17455>