[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: last time of rpmdb modification
- From: R P Herrold <herrold owlriver com>
- To: rpm-list redhat com
- Subject: Re: last time of rpmdb modification
- Date: Sat, 16 Sep 2000 16:32:57 -0400 (EDT)
On Sat, 16 Sep 2000, Alfredo Kengi Kojima wrote:
> Is there a way to figure what was the last time
> the user installed, removed or upgraded some
> package? (ie: modified the rpm db)
> stat() doesn't work, because even queries cause
> changes in the timestamps.
simple scripting issue:
see: rpm --querytags
rpm -qi `rpm -qa --qf "%{INSTALLTIME}\t%{name}\n" | \
sort -n | tail -1 | awk '{print $2}' `
will show the LAST installed package.
--
end
==================================
.-- -... ---.. ... -.- -.--
Copyright (C) 2000 R P Herrold
herrold@owlriver.com NIC: RPH5 (US)
My words are not deathless prose,
but they are mine.
Owl River Company 614 - 221 - 0695
"The World is Open to Linux (tm)"
... Open Source LINUX solutions ...
info@owlriver.com
Columbus, OH
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]