Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

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

2 Answers 2

up vote 2 down vote accepted

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.

share|improve this answer

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).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.