On Wed, 2011-01-26 at 08:36 -0500, seth vidal wrote:
On Wed, 2011-01-26 at 12:52 +0100, Michael Schwendt wrote:
> Scenario:
>
> Assume I have package "foo". It's installed already, and the local
RPM
> database covers it and all its dependencies.
>
> App "foo" used to run fine a month ago, but a rebuild no longer does.
> Dependencies have been updated. Too many for "rpm -qa --last|less" or
> yum's log to be helpful.
>
> I'd like to run an RPM query on "foo" that displays the %{buildtime}
> for all of foo's Requires, sorted by buildtime.
>
> Does anyone know of an existing tool that can do exactly this already?
> Or a script that achieves the same on top of an ordinary rpm --qf ... query?
I just want to make sure I have this:
1. rpm -qR foo
2. take each of those resolve it out to what provides them
3. return the buildtime + pkg name of each of those, sorted by buildtime
correct?
If this is what you want then try:
http://skvidal.fedorapeople.org/misc/sort-req-by-buildtime.py
it'll be pretty simple to modify.
-sv