On the source machine:
dpkg --get-selections > installed-software.log
On the destination machine:
Install the base system then
apt-get install dselect
dpkg --set-selections < installed-software.log
apt-get dselect-upgrade
dpkg --set-selections < installed-software.log
apt-get dselect-upgrade