PDA

View Full Version : how to check package status


Asgaard
December 10th, 2005, 01:51 PM
hello all, i'm looking for a way from the command line to see if a certain package is installed or not. apt-cache seems to list a lot of information sans the single boolean info i need ^__^

so far the closest i've come is to do apt-get -s to simulate an install and see if anything would be done, but it's clumsy... there must be a better cleaner way

thanks

invalid
December 10th, 2005, 04:16 PM
dpkg -l | grep packagename

Asgaard
December 20th, 2005, 06:45 PM
that does it, thanks ^__^

angkor
December 20th, 2005, 06:54 PM
Or:

apt-cache policy [package-name]

jaya28inside
August 18th, 2010, 11:52 PM
the simplest one...


dpkg -s packageName