[Rpm-maint] [rpm-software-management/rpm] Is there any proper documentation with examples for librpm 6.x? (Discussion #4168)
Daniel Alley
notifications at github.com
Fri Sep 4 20:53:42 UTC 2026
Rust example using librpm.rs (the Rust bindings):
```Rust
use librpm::{Db, Index};
fn main() {
librpm::init().expect("failed to initialize librpm");
let db = Db::open().expect("failed to open RPM database");
// Look up a package by name (exact match)
for pkg in db.find(Index::Name, "rpm") {
println!("{}", pkg.nevra());
}
}
```
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/4168#discussioncomment-18296146
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/4168/comments/18296146 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260904/aebdc2a9/attachment-0001.htm>
More information about the Rpm-maint
mailing list