Create package.list

dpkg --get-selections | awk '!/deinstall|purge|hold/ {print $1}' > packages.list