Ubuntu – How to view history of apt-get install

historysoftware installationsystem-installation

How can I view the history of apt-get install commands that I have manually executed?

It seems to me that all methods available show everything that has been installed right from the start of the Ubuntu installation.

How can I view the history of apt-get install since the time my system-installation process had completed?

Best Answer

I think the answer given here by kos is the best way I've seen so far. Though as Software Center uses apt, anything that it has installed would be listed too.

The command is:

zcat /var/log/apt/history.log.*.gz | cat - /var/log/apt/history.log | grep -Po '^Commandline: apt-get install (?!.*--reinstall)\K.*'