[
Date Prev
][
Date Next
] [
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
How to check that if a package is installed?
To
:
debian-user@lists.debian.org
Subject
: How to check that if a package is installed?
From
: S Mathias <
smathias1972@yahoo.com
>
Date
: Tue, 30 Nov 2010 04:54:40 -0800 (PST)
Message-id
: <
[🔎]
860400.48471.qm@web121406.mail.ne1.yahoo.com
>
if [ "$(dpkg -l | awk '/tofrodos/ && /^ii/ {print $2}' | awk '/^tofrodos/')" == "" ]; then echo -e "error: no zip package detected\!\n\nYou could install it like e.g.: \"apt-get install tofrodos\""; fi
Is there a better way then this?
Thank you!
Reply to:
debian-user@lists.debian.org
S Mathias (on-list)
S Mathias (off-list)
Follow-Ups
:
Re: How to check that if a package is installed?
From:
Axel Freyn <axel-freyn@gmx.de>
Re: How to check that if a package is installed?
From:
Bob Proulx <bob@proulx.com>
Prev by Date:
acroread trouble on Sqeeze
Next by Date:
Re: Mount esata ntfs drives as user.PARTIALLY SOLVED
Previous by thread:
Re: acroread trouble on Sqeeze
Next by thread:
Re: How to check that if a package is installed?
Index(es):
Date
Thread