Subject: Re: Determening if a package is installed?
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Jeremy C. Reed <reed@reedmedia.net>
List: pkgsrc-users
Date: 05/01/2007 21:03:02
On Tue, 1 May 2007, Steven M. Bellovin wrote:

> 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.

PKGBASE will have it without the version.


  Jeremy C. Reed