Subject: Determening if a package is installed?
To: None <>
From: Jan Danielsson <>
List: pkgsrc-users
Date: 05/02/2007 02:05:30
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello all,

   I have a file which looks like this:


   It's simply a file which lists all the packages I want to have install=

   This is what I want to do: I want to be able to run
lintpkgsrc/pkgdepgraph to generate a list of outdated packages, then
delete all the outdated packages and their dependencies. Then finally
loop through my file of the packages I want, check if they are installed
already, and if they aren't, then build them. (I'm doing all this in a
chrooted environent).

   The problem I keep running into is that I am unable to determine if a
package is installed using the pkgsrc path. Everything assumes that I
have the package name, which isn't always true (for instance, the
installed package is called py24-psycopg2).

   Any other solution to get this done is appreciated. I would like to
be able to automate my pkgsrc update procedure in my chroot.

Kind regards,
Jan Danielsson

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

Version: GnuPG v1.4.7 (NetBSD)