apt-sel
Backup and restore apt package selections
On an apt / dpkg based Linux system, dump the list of installed packages in a file and select the same packages for installation, preferrably on a different system or version. Other than the usual recommendation `dpkg --get-selections` and `dpkg --set-selections` this keeps the information about automatic dependencies intact.