How to find date/time of last apt update?

Chris Green cl at isbd.net
Wed May 11 09:59:39 UTC 2022


On Wed, May 11, 2022 at 07:53:49PM +1000, Karl Auer wrote:
> On Wed, 2022-05-11 at 10:36 +0100, Chris Green wrote:
> > I generally update my systems using apt from the command line.  Is
> > there a way to find out when I last ran 'apt update' or 'apt
> > upgrade'?
> 
> Look in /var/log/apt/history.log
> 
> Not sure there will be an entry for a run that did not actually install
> or upgrade anything, so maybe not a complete answer to your question.
> 
That's what I was looking for, thank you.  There's also
/var/log/apt/term.log which shows the whole terminal session which
tells me even more, very handy.

-- 
Chris Green




More information about the ubuntu-users mailing list