How to find packages installed/updated yesterday?
Dear Lazyweb,
since yesterday’s daily update, my laptop runs really sluggish. Is there a way to list all packages which where updated or installed yesterday to track down the problem?
Tags: debian, lazyweb
This entry was posted
on Tuesday, January 26th, 2010 at 10:14 am and is filed under Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
January 26th, 2010 at 10:29 am
One way would be to take a look in /var/cache/apt/archives and look for .deb-files that have been created in the last day. That assumes that you didn’t clean up those yet, of course - but by default, they might still be there.
January 26th, 2010 at 10:30 am
Sure, take a look at /var/log/dpkg.log
January 26th, 2010 at 10:31 am
I’ve found /var /log/dpkg.log and especially /var/log/aptitude to be quite readable.
January 26th, 2010 at 10:31 am
$PAGER /var/log/aptitude
January 26th, 2010 at 10:32 am
Hmm, maybe
- /var/log/apt/term.log
- /var/log/aptitude
- /var/log/dpkg.log
?
January 26th, 2010 at 10:41 am
Well, there are a couple of options:
If you are using etckeeper, it includes the list of installed/removed packages including versions in the log for commit it does in apt hook.
If you use some kind of intrusion detection system (like aide), it will tell you which files changed, so you can guess form that.
Otherwise if you didn’t clear the apt cache, try looking at the .deb files in the cache for which were downloaded yesterday.
I don’t think apt would keep any log, unfortunately and I’d recommend using etckeeper anyway. It was very helpful for debugging various upgrade-related breakages to me, both telling me what got upgraded (when libgl upgraded to version incompatible with installer X server) and providing old version of configs (when I needed to switch X drivers (free and non-free) and they required different sets of options).
January 26th, 2010 at 10:57 am
It’s v easy, use ex. below just replace date by which you need:
awk ‘$1==”2010-01-22″ && $4==”installed” {print $5}’ /var/log/dpkg.log
January 26th, 2010 at 11:19 am
grep 2010-01-25 /var/log/dpkg.log | grep ” installed” will also do
January 26th, 2010 at 11:22 am
yee but try to do ‘|xargs apt-get –purge remove -y’ on syntax with 2 greps
January 26th, 2010 at 12:38 pm
Others already mentioned dpkg.log and /var/log/aptitude. If you have some notion of what package you see misbehavior in, but you don’t know the cause, try “which-pkg-broke” from debian-goodies. “which-pkg-broke foo” shows the entire dependency chain of foo, sorted by recency of updates.
January 26th, 2010 at 12:39 pm
I mostly just run “ls -ltr /usr/share/doc | tail -n 20″..
January 26th, 2010 at 2:57 pm
IMHO the direct and none error-prone way:
ls -ltr /var/lib/dpkg/info/
January 26th, 2010 at 4:11 pm
[...] blog.venthur.de wurde jetzt eine ähnliche Frage gestellt, hier findet man in den Kommentaren eine recht schöne [...]
January 26th, 2010 at 4:22 pm
Zwar aus dem Ubuntu-Wiki, sollte aber auch funktionieren:
find /var/lib/dpkg/info/ -daystart \( -name \*.list -a -mtime -3 \) | \sed 's#.list$##;s#.*/##' | sort
Habe erst gestern einen Artikel zu genau dem Thema geschrieben, o.g. gibt dir z.B. die installierten Pakete der letzten 3 Tage aus und ist eine “erweiterte” Variante von Markus’ Einzeiler.
January 31st, 2010 at 9:07 pm
[...] Venthur: How to find packages installed/updated yesterday? If you’re like me you take regular updates to the software you run and every now and then you [...]
March 12th, 2010 at 3:44 am
IMHO the direct and none error-prone way:
ls -lr4 /var/lib/dpkh/info/;