[Rpm-maint] [rpm-software-management/rpm] How can I find details on the binary representation of the RPM DB? (Discussion #2211)
Shane Bishop
notifications at github.com
Thu Sep 29 18:49:07 UTC 2022
I am trying to find an RPM version agnostic way to find details on installed software on any Linux distro that uses RPM packages.
A co-worker found for one version of RPM that the magic byte array/slice `[]byte{0, 1, 0x43, 0}` works for extracting each installed package from the RPM DB using regex (I don't know which version this works for). However, this does not work for other RPM versions.
Is there any documentation for the binary representation of the RPM DB for each RPM version I could look at?
If there is no documentation for this, where can I find the relevant part of the source code for the `rpm` binaries? (My thought is if there is no documentation, I could try reading the source code to figure out how I can extract the information I need from the RPM DB for each RPM version.)
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/2211
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/2211 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220929/e9d126aa/attachment.html>
More information about the Rpm-maint
mailing list