1

I access an ubuntu 10.04LTS server that is administered by someone else, I have a feeling that it hasn't been getting updates/upgrades recently.

Is there a way to check on the command line when updates were last taken, without sudo privileges?

4
  • Duplicate of this? askubuntu.com/questions/14328/…
    – fossfreedom
    Mar 3, 2014 at 20:24
  • 1
    @fossfreedom ...not exactly, he is asking unprivileged and CLI solutions.
    – Rmano
    Mar 3, 2014 at 20:26
  • 1
    Several answers already there that doesnt require privilege and are also CLI based.
    – fossfreedom
    Mar 3, 2014 at 20:28
  • @fossfreedom Yep, you're right. Missed some of them.
    – Rmano
    Mar 3, 2014 at 20:33

2 Answers 2

2

You can use stat -c %y /var/lib/apt/periodic/update-success-stamp to find last update date.

It will give the date of last apt-get update.

1

You can check the version of some critical package:

% dpkg -l linux-generic

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  linux-generic  3.11.0.17.18 i386         Complete Generic Linux kernel and

and compare with up-to-date system (the example is from 13.10).

The file /var/log/apt/history.log is normally readable by all, so it can help (but its content is log-rotated, so if the last update is old, it may well be empty; you can search the various /var/log/apt/history.log.*.gz for hints).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .