Here is a python script that can analyse a rpmdb and also help determining the status of an installed machine:
Copied to my /usr/local/bin. Might be good to post this to the RPM dev list. -- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx http://www.redhat.com/mailman/listinfo/fedora-devel-list