Originally Posted by
dragonfly41
Run this command in terminal.
This will give you a list of historical commands containing "apt" which you ran since your last stable configuration.
Almost. This will only show the history for the current bash session and the prior ones inherited, upto the default count of history retained. If you use multiple terminals or installed packages using commands that don't have "apt" in the name (dpkg or gnome-software, for example), then those will not be shown. People who use the terminal are likely to have multiple terminals on the same system and which ever is closed last will close the ~/.history file - overwriting any other prior changes from other terminal sessions being closed.
If looking through 'what was installed', there must be an APT package manager installation log somewhere. Probably in /var/apt or /var/lib/apt somewhere. Think I've used that twice since 2000. A quick web search found this answer: https://askubuntu.com/questions/2165...a-command-line Read the log file with
Code:
less /var/log/apt/history.log
It gets rotated, so older versions are likely. Use
Code:
zless /var/log/apt/history.log.1.gz
to read the prior history. Appears these are rotated monthly and 12 log files are kept, so there's almost 1 yr of logs for packages installed into APT. On my system, it appears that even going from a 16.04 --> 18.04 release upgrade was captured.
I don't use GUI package manager tools on any of my systems, so I have no idea if any GUI tool package management commands are put into that log or not. Sorry. For me, GUI programs just add a complex layer of junk, provide fewer controls, and hide important details. For almost all administrative tasks, I skip the GUI stuff - with 1 exception, gparted. Of course, that wouldn't apply here.
Bookmarks