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/2...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to