-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
There's doxygen doco for rpm's C API on your RHEL4 system: file:///usr/share/doc/rpm-devel-X.Y.Z/apidocs/* There's the "RedHat RPM Guilde" someplace @redhat.com.Hint: You want something like (this snippet retrieves the package that provides "bash"):rpmts ts = rpmtsCreate();rpmdbMatchIterator mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, "bash", 0);Header h; while((h = rpmdbNextIterator(mi)) != NULL) { ... do whatever with the bash header ... } mi = rpmdbFreeIterator(mi); ts = rpmtsFree(ts);
Thanks! Unfortunately, the documentaiton seems to make reference (the max-rpm guide as well[1]) to headerDump() which would be perfect, but this doesn't seem to exist any longer in the RPM API. Are there any other good, quick meaningful ways to dump a header's information or print out the information from the rpm transaction?
Cheers, - -R. Tyler Ballance [1] http://www.rpm.org/max-rpm/s1-rpm-rpmlib-example-code.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFFED2LqO6nEJfroRsRAnIUAJsHnY2fRitUIcbutc4cUuVZsZ1CtgCdFzc6 KvvVIVv0OVNsqeVQIUXs4m8= =adNh -----END PGP SIGNATURE-----