Note to self as much as anything, taken from http://ubuntuforums.org/showthread.php?t=261366.

Old machine:

> sudo dpkg --get-selections > installed-software

New Machine:

> sudo dpkg --set-selections < installed-software
> sudo dselect