Stupid RPM query tricks

I was doing upgrades on my personal router, and didn’t remember when I installed the last set of RPMs. I found this site that shows how to use the querytags properly. I had managed to miss the man page entry on the queryformat parameter.

Anyway, to get the sorted list of RPMs, by install time:

rpm -qa –queryformat ‘%{NAME} %{INSTALLTIME}\n’ |sort -n +1

Time is in unix epoch notation. A handy page for converting it can be found here. Save me the bother of writing the perl.

Comments are closed.