Subject: Re: Determening if a package is installed?
To: Jan Danielsson <jan.m.danielsson@gmail.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: pkgsrc-users
Date: 05/02/2007 05:43:32
> >> 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.
>
> Ah, even better/simpler. Thanks!
>
> Cool, now I can automate my package updates in a very clean fashion.
> Many thanks to you and Steven.
>
> Perhaps someone should document how to do this on a wiki. It really
> is a time-saver.
Please document it at
http://wiki.netbsd.se/index.php/How_to_upgrade_packages
Jeremy C. Reed