Skip to content

How to detect RPM version without running rpm --version? #2213

Answered by pmatilai
shanebishop asked this question in Q&A
Discussion options

You must be logged in to vote

librpm does export its version:

rpmlib.h:extern const char * const RPMVERSION;

But a highly performant application will remain that way if you call an external process, once.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pmatilai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants