A way to save your linux package and restore it for new installation.
Step One – Get a list of installed packages
Once you have your machine set up more or less as you want it, export the list of installed packages to a file like this:
dpkg --get-selections > package.list
Step Two – keep the list safe!
Keeping the list safe is more important than keeping it up to date. I keep mine in my DropBox account with a few other essential items. Using DropBox means I can grab the file via the web if I need it in a hurry. Not much point if I needed to install DropBox before I could access the file!
Step Three – Recover
Bring everything back in one massive update if things go wrong:
sudo dpkg --set-selections > package.list sudo apt-get dselect-upgrade