Debian: How to check the last time package upgrades/updates were run

debianpackage-management

I want to know when we last ran the package upgrades/updates on our Debian server.

Best Answer

The file /var/log/apt/history.log gives you information on when APT was run and what was done.

tail -3 /var/log/apt/history.log

will give you this information for the last run of APT (not necessarily the last run of upgrage, though).

To find out when was the last time you've run an upgrade, you want to look for a line starting with Upgrade: and then lookup up the timestamp in the following line of the file (which starts with End-Date:). The last such match is the last time you've run an upgrade.

Related Topic