Find Installed Packages on Ubuntu (and dpkg) Systems

To get a list of all the installed packages on an Ubuntu or dpkg based server, you can use the following command:

dpkg --get-selections | grep -v deinstall