SLUG Mailing List Archives* Michael Chesterton <chesty@xxxxxxxxxxxxxxxx> [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. >> > > root@booboo:~# dpkg -s bash >/dev/null 2>&1 && echo installed > installed > root@booboo:~# dpkg -s basha >/dev/null 2>&1 && echo installed Thanks Lindsay & Michael. Sonia.
Attachment:
signature.asc
Description: Digital signature