pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Determening if a package is installed?



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




Home | Main Index | Thread Index | Old Index