dpkg --get-selections > list.txt Then (on another system) restore installations from that list: dpkg --clear-selections sudo dpkg --set-selections < list.txt To get rid of stale packages sudo apt-get autoremove To get installed like at backup time (i.e. to install packages set by dpkg --set-selections) sudo apt-get dselect-upgrade