How to check that if a package is installed?
Oliver Grawert
ogra at ubuntu.com
Tue Nov 30 18:55:59 UTC 2010
hi,
...
> Seems kind of wordy to me for what it really does ...
>
> dpkg -l |grep torfrodos || echo nope
you definitely want a grep ^ii in there like:
dpkg -l |grep ^ii | grep tofrodos || echo nope
else you will match it even if it was uninstalled or not properly purged
once ...
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101130/70711e91/attachment.sig>
More information about the ubuntu-users
mailing list