Quoth the infobot:
<ubottu> To replicate your packages selection on another machine (or
restore it if re-installing), you can type « aptitude
--display-format '%p'
search '?installed!?automatic' > ~/my-packages »,
move the file "my-packages" to the other machine, and there type «
sudo xargs aptitude
--schedule-only install < my-packages ; sudo
aptitude install » - See also !automate
If you don't have aptitude installed, there's a slightly less
"intelligent" method using dpkg --get-selections and dpkg
--set-selections that will do the trick.
- Tony