I'm trying to get an authoritative list of installed packages in order to find the explicitly installed ones as is done here.
This command gives me one list
aptitude search '~i !~M' -F '%p' --disable-columns | sort -u
And this gives me another
apt --installed list | cut -d'/' -f1 | tail -n +2 | sort -u
The second command lists more packages, and some of these I'm able to run from the command line. I'd prefer to use apt because it's a default package. Which list is authoritative?