Originally Posted by ndefontenay
To replicate your packages selection on another machine (or restore it if re-installing), you can run this
This will save a file called my-packages in your home directory. Make a backup of it, install the fresh release, then restore the file "my-packages" to new home partition and run this code in the terminal:
dpkg --get-selections > ~/my-packages
It will download and install all the programs for you, except those that you installed manually, if they are not in the new repository. I did this with Jaunty and a lot of packages I installed manually on Hardy were available in the Jaunty repos. So I didn't search for many applications after the fresh install.
sudo dpkg --set-selections < my-packages && sudo apt-get dselect-upgrade