Code:
# dpkg --get-selections '*' > selection.dpkg
# debconf-get-selections > selection.debconf
Here, "*
" makes "selection.dpkg
" to include package entries for "purge" too.
You can transfer these 2 files to another computer, and install there with the following.
Code:
# dselect update
# debconf-set-selections < myselection.debconf
# dpkg --set-selections < myselection.dpkg
# apt-get -u dselect-upgrade # or dselect install
fai
to manage the whole system.