[SLUG] easiest way to check if a .deb is installed?

2008-06-06 Thread Sonia Hamilton
What's the easiest accurate way to check if a .deb has been installed on a system, from a script? At the moment I'm using `dpkg -l | grep ...`, which is messy. signature.asc Description: Digital signature -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info

Re: [SLUG] easiest way to check if a .deb is installed?

2008-06-07 Thread Lindsay Holmwood
On Sat, Jun 7, 2008 at 4:21 PM, Sonia Hamilton <[EMAIL PROTECTED]> wrote: > What's the easiest accurate way to check if a .deb has been installed > on a system, from a script? > > At the moment I'm using `dpkg -l | grep ...`, which is messy. dpkg -s $package Return code is 0 for installed, 1 for n

Re: [SLUG] easiest way to check if a .deb is installed?

2008-06-07 Thread Michael Chesterton
On 07/06/2008, at 4:21 PM, Sonia Hamilton wrote: What's the easiest accurate way to check if a .deb has been installed on a system, from a script? At the moment I'm using `dpkg -l | grep ...`, which is messy. [EMAIL PROTECTED]:~# dpkg -s bash >/dev/null 2>&1 && echo installed installed [EMA

Re: [SLUG] easiest way to check if a .deb is installed?

2008-06-07 Thread Sonia Hamilton
* Michael Chesterton <[EMAIL PROTECTED]> [2008-06-07 18:01:05 +1000]: >> What's the easiest accurate way to check if a .deb has been installed >> on a system, from a script? >> >> At the moment I'm using `dpkg -l | grep ...`, which is messy. >> > > [EMAIL PROTECTED]:~# dpkg -s bash >/dev/null 2>&1