Which packages are installed?

To find out which packages you have installed in your Debian based distribution (like Ubuntu), you can use for example:
sudo dpkg  –list | grep package_name
ex: sudo dpkg  –list | grep postfix
or
sudo aptitude search package_name
ex: aptitude search postfix

About:
dpkg –l, –list package-name-pattern…
List packages matching given pattern.
aptitude search package-name-pattern
Searches for packages matching one of the patterns supplied on command line. All packages which match any of the given pattern will be displayed.

Discussion Area - Leave a Comment