Sheesh! Shor 'nuff hard gettung evaireeting bak thu wai et wuz. How you fokes go aboud it?
You can do this:
[prompt]# dpkg --get-selections > /etc/packagelist.bak
Then you should keep a backup of /etc, /var, and /home (not everything in /var, just some things).
Then, if you crap out, just reinstall, mount the backed up packagelist.bak somewhere, and do this:
[prompt]# dpkg --set-selections < /some/path/packagelist.bak
And it will automatically install all the same programs that you had before. Then, you just restore all your /etc, /var, and /home stuff and you are back where you started.
-Mitch |