How to detect RPM version without running rpm --version? #2213
Answered
by
pmatilai
shanebishop
asked this question in
Q&A
-
How can the RPM version be detected programmatically (in a language like Go or C) using either a file or a system call, without running a subprocess For context, I am writing an application that needs to be highly performant, and I want to avoid spawning any child processes if at all possible. |
Beta Was this translation helpful? Give feedback.
Answered by
pmatilai
Oct 3, 2022
Replies: 1 comment
-
librpm does export its version:
But a highly performant application will remain that way if you call an external process, once. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pmatilai
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
librpm does export its version:
But a highly performant application will remain that way if you call an external process, once.