Re: RPM C API (and other fun acronyms)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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-----

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux