[Rpm-maint] [rpm-software-management/rpm] Is there any proper documentation with examples for librpm 6.x? (Discussion #4168)

3millionminds notifications at github.com
Sat Mar 28 12:33:12 UTC 2026


Hello,

I'm trying to use librpm mixed into a Go program to get a list of all the packages installed on the system.

The documentation at https://rpm-software-management.github.io/rpm/api/index.html
only provides minimal explanations as to what the functions do,
but no explanation as to what how to use them - as in, there is no explanation that I have found that tell you to connect to the DB, instantiate a cursor, etc.

I ran across this documentation but it's from the year 2000 and very much out of date:
http://ftp.rpm.org/max-rpm/index.html

Is there any documentation with examples, or at least an outline of the process of actually querying the rpmDB with this library, anywhere?

I just need to dump all the installed RPMs with their names and versions.

Cheers.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/4168
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/repo-discussions/4168 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260328/a880d302/attachment.htm>


More information about the Rpm-maint mailing list