[SOLVED] Installing same packages on 2 systems

You are welcome!

Not that simple, I'm afraid, for dpkg --get-selections |grep -v deinstall |grep install |cut -f1 returns exactly what apt-mark showmanual does. And the list contains a lot of packages belonging to the system itself, say xorg, xserver, etc.

Cited script strips down system packages from the list using /var/log/installer/initial-status.gz as the reference.