Ubuntu Forums Archive Viewer

how to check package status

Archived thread 101699 from Repositories & Backports. Markdown source: Repositories_&_Backports/thread_101699_how_to_check_package_status.md

Original URL About this archive
#1

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

#2
dpkg -l | grep packagename
#3

that does it, thanks ^__^

#4

Or:

apt-cache policy [package-name]
#5

the simplest one...


dpkg -s packageName