Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get Package version?

Status
Not open for further replies.

fechen

Technical User
Jan 25, 2002
48
0
0
US
Please help me to find the C function to get an RPM package version nubmer? I need to write an application to collect several packages' version information and I hate to use a command line, such as "rpm -qa"

In another word, I'd like to know how exactly RPM gets the package version?

If you know where I can download the source code of RPM and which C file to look into, that would be great, too.

Any hint helps. Thanks in advance
 
Any idea which file(s) are likely the target(s)?

The source code is an ocean. Just want to save a little bit my vision if an expert can point me a direction. :)

Thanks,
 
I mean since getting package version is probably 1/20 of RPM fucntions, it is no good to read through the whole RPM package.

I'd like to save a little bit time by looking into one (or several) particular files.

Thanks,

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top