Debian Paketliste exportieren

Sichern der Liste der installierten Pakete

dpkg -l | while read s p rest; do test $s = ii && echo $p; done > installed_packages_211009.txt

dpkg --get-selections | grep '[[:space:]]install$'| awk '{print $1}' > installedpackages