Ein einfacher und schneller Weg um Packages zu sichern um beispielsweise ein System zu clonen.

– Use “dpkg –get-selections > selections.txt” on your current system.
– Copy the “selections.txt” file over to your target system.
– Run “dpkg –set-selections < selections.txt" on your target system. - Finally, "apt-get dselect-upgrade" will download and install the packages.

Die jeweiligen configs noch aus /etc und man sollte eine gleichwertige Kopie haben.