Re: Determining if a package is installed (regardless of version)

2019-04-06 Thread Marc Espie
On Wed, Mar 27, 2019 at 09:05:37AM -0700, Thomas Frohwein wrote: > On Wed, Mar 27, 2019 at 07:27:15AM +, Adam Steen wrote: > [...] > > I should have been more specific, my use case completes the check in two > > steps > > > > 1. find out whats installed, builds a list of packages > > 2. insta

Re: Determining if a package is installed (regardless of version)

2019-03-27 Thread Thomas Frohwein
On Wed, Mar 27, 2019 at 07:27:15AM +, Adam Steen wrote: [...] > I should have been more specific, my use case completes the check in two steps > > 1. find out whats installed, builds a list of packages > 2. install whats not installed. [...] If you want to build a list of installed packages f

Re: Determining if a package is installed (regardless of version)

2019-03-27 Thread Adam Steen
‐‐‐ Original Message ‐‐‐ On Wednesday, March 27, 2019 2:58 PM, Anton Lindqvist wrote: > On Wed, Mar 27, 2019 at 02:24:24AM +, Adam Steen wrote: > > > Hi All > > I need to determine if a package is installed, lets use autoconf as an > > example > > I can run "pkg_info -mqP" and get ba

Re: Determining if a package is installed (regardless of version)

2019-03-26 Thread Anton Lindqvist
On Wed, Mar 27, 2019 at 02:24:24AM +, Adam Steen wrote: > Hi All > > I need to determine if a package is installed, lets use autoconf as an example > > I can run "pkg_info -mqP" and get back list of packages, i.e. > > devel/autoconf/2.69 > shells/bash > sysutils/coreutils > x11/dmenu > x11/d

Determining if a package is installed (regardless of version)

2019-03-26 Thread Adam Steen
Hi All I need to determine if a package is installed, lets use autoconf as an example I can run "pkg_info -mqP" and get back list of packages, i.e. devel/autoconf/2.69 shells/bash sysutils/coreutils x11/dmenu x11/dstat x11/dwm . . . devel/git,-main devel/gmp,-main sysutils/firmware/intel sysutil