Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpmlib: RPM reader API #14

Closed
tony-iqlusion opened this issue Apr 8, 2018 · 1 comment
Closed

rpmlib: RPM reader API #14

tony-iqlusion opened this issue Apr 8, 2018 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@tony-iqlusion
Copy link
Member

tony-iqlusion commented Apr 8, 2018

This issue tracks the ability to read RPM package files. Presently no support is available.

Some reference information on the API is available here, courtesy the Fedora RPM Guide:


#11 is fixed, and #19 added transaction set support, so this is ready to work on for any interested takers.
@n3npq
Copy link

n3npq commented Apr 13, 2018

The easiest bindings are rpmInstall() and rpmErase() in lib/rpminstall.c, copying rust args into the needed structure. There are also similar interfaces for query/verify/sign available. All the tables for popt option processing are available for needed flags if you also bind libpopt.

If you want a lower level interface, use rpmReadPackageFile() which verifies package signatures.

I would avoid doing similar to Python interfaces which were mis-designed to accomodate "I don't want to verify signatures! I don't want to use a transaction!" politics from a long time ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants