You can get a backup of your current installed packages, by running this: dpkg --get-selections > debianlist.txt You can read more on manipulating packages with `dpkg` [Here](http://debian-handbook.info/browse/stable/sect.manipulating-packages-with-dpkg.html)