I was imagining a 3-line Python script to do this but the yum Python API is impenetrable. Is this even possible?
Is writing a wrapper for \'yum list package-name\'
http://fpaste.org/paste/2453
and there are many examples of the yum api and some guides to getting started with it here:
http://yum.baseurl.org/#DeveloperDocumentationExamples