$ dpkg –get-selections > my_installed_packages
Copy the resultant file to the new system, and then:
$ dpkg –set-selections < my_installed_packages $ sudo apt-get dselect-upgrade
Source: http://yonkeltron.com/2010/04/19/debian-package-state-backup-and-restore/