[Techtalk] querying RPM for recently installed packages
Carla Schroder
carla at bratgrrl.com
Tue May 25 17:09:42 EST 2004
On Tuesday 25 May 2004 4:58 pm, Carla Schroder wrote:
> halo,
>
> Maximum RPM says this query shows RPMs installed within the last x days:
>
> # find / -type f -mtime 14 | rpm -qF
>
> Well this totally does not work, it doesn't even make sense- -F means
freshen.
> -f = file, but it still doesn't find recently installed packages.
>
> This lists every single package:
> # rpm -qa --queryformat '%{installtime} %{name}-%{version}-%{release}
> %{installtime:date}\n' | sort -nr +1 | sed -e 's/^[^ ]* //'
>
> Any brilliant notions?
>
why yes, I believe I have a moderately brilliant notion. I found the '--last'
option in 'man rpm', so this lists all installed packages, newest first:
# rpm -qa --last
kdegames-3.1.4-2 Tue 25 May 2004 09:01:01 AM PDT
SDL_Mixer-1.2.4-9 Fri 07 May 2004 06:33:07 AM PDT
etc....
But there must be a way to filter the output to select by date...?
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Carla Schroder
this message brought to you
by Libranet 2.8 and Kmail
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the Techtalk
mailing list