You are not logged in.

#1 2011-09-13 00:34:42

vendion
Member
From: Tennessee, USA
Registered: 2010-03-10
Posts: 204
Website

Finding when local repos were last updated

This may sound like a weird question but I was wondering if there was a way, other than having to search through /var/log/pacman.log, to find the date pacman -Sy or pacman -Syy has been ran?  For my purposes I am currently grabbing the last mod time from the database files in /var/lib/pacman/sync/ and going off of that but I was wondering if there is a better approach than this.

Offline

#2 2011-09-13 00:58:36

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Finding when local repos were last updated

 ls -lt /var/lib/pacman/sync/

Offline

#3 2011-09-13 16:27:38

vendion
Member
From: Tennessee, USA
Registered: 2010-03-10
Posts: 204
Website

Re: Finding when local repos were last updated

Ah then there is no way to get such information from Pacman itself?  This way is close to the method that I am currently using, using the file command and grabbing the last modified date from there that way I can grab the right date and time for each repo.

Offline

Board footer

Powered by FluxBB