[Rpm-maint] [rpm-software-management/rpm] Is there any proper documentation with examples for librpm 6.x? (Discussion #4168)
Panu Matilainen
notifications at github.com
Mon Mar 30 10:22:00 UTC 2026
Note that if you just want formatted strings from a header, that's easier with headerFormat():
```
char *nevr = headerFormat(h, "%{name}-%{epoch}-%{version}-%{release}", NULL);
printf(nevr);
free(nevr);
```
Or for the traditional n-[e:]vr formatted string, just
```
headerFormat(h, "%{nevr}", NULL);
```
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/4168#discussioncomment-16379234
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/4168/comments/16379234 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260330/6aa1c60a/attachment.htm>
More information about the Rpm-maint
mailing list