dpkg --get-selections | grep -v deinstall ## To get a list of packages installed locally do this in your terminal: