Backing up/restoring package selection with APT
If you have multiple deb-based machines, I find the following useful for backing up the selection on my setup machine to get a new machine to install the same ones.
$ dpkg- l | awk '{print $2}' > installed_packages.txt # to output packages to a list
$ sudo apt-get install `cat installed_packages.txt` # to install the required packages