aptitude search '?installed?not(?automatic)?not(?reverse-depends(?installed))'
To use output in scripting add a key: -F %p
This package list can be passed as an argument list an apt-get install program on your new system.
aptitude search '?installed?not(?automatic)?not(?reverse-depends(?installed))'
ssh-keygen -y -f ~/.ssh/id_dsa | ssh remote.org tee -a ~/.ssh/authorized_keys