Get all manual selected/installed packages from a debian system.
This does not include packages installed during the last logrotation iteration.
gunzip -c /var/log/apt/history.log.*.gz | grep "apt-get install" | cut -f4- -d" " | sort | uniq