Steven M. Bellovin wrote: [---] >> 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). >> > > Try this: > > cd /usr/pkgsrc/$x && make show-var VARNAME=PKGNAME > > You may have to use a regular expression to strip off the version > suffix; for my scripts, I don't need to. Exactly what I was looking for. Many thanks! -- Kind regards, Jan Danielsson
Attachment:
signature.asc
Description: OpenPGP digital signature