Show the List of Installed Packages on Ubuntu or Debian

This example shows how to get the list of packages installed on Ubuntu or Debian:
$ dpkg --get-selections 
adduser                      install
adium-theme-ubuntu           install
adobe-flash-properties-gtk   install
adobe-flashplugin            install
gcc-4.6                      install
.....