As an alternative to lgarzo's answer, you can grep what you are interested in from /var/log/dpkg.log. E.g., if you want to see everything you installed or upgraded yesterday, you could run:
It became useful for us to have a slightly more easy and accurate answer to the question "when was the last time we patched this thing?". So I put this together. I tested it on 12.04 and 14.04 and 16.04. It returns reasonably accurate answers for that question.
Note: "reasonably accurate" probably isn't "completely accurate".
Note: "for that question" only.
You can read the
history.log
file in/var/log/apt
.Eg.
less /var/log/apt/history.log
.In 10.10, Ubuntu Software Center has a list of all the updates you have downloaded in the past.
/var/log/apt contains a history of package installations. However, by default, it is managed by
logrotate
which compresses and ages out old entries.As an alternative to lgarzo's answer, you can
grep
what you are interested in from/var/log/dpkg.log
. E.g., if you want to see everything you installed or upgraded yesterday, you could run:One thing to note: this will also list manually installed packages (
sudo dpkg -i ...
), which won't show up in apt's history.Even better use zgrep if it's installed so you can find lines in gzipped files as well
On 10.04 Click (System > Administration > Synaptic Package Manager > File > History)
It's now possible to do this through the software center as well! Go to History and you can display all of your updates and installations.
It became useful for us to have a slightly more easy and accurate answer to the question "when was the last time we patched this thing?". So I put this together. I tested it on 12.04 and 14.04 and 16.04. It returns reasonably accurate answers for that question. Note: "reasonably accurate" probably isn't "completely accurate". Note: "for that question" only.
sample output:
subroutines and program: