Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-26-2004, 10:53 PM   #1
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90

Guys, I need to know how to recognize when an RPM package depends on ANOTHER RPM package, not a file.

I get the values like this:

char ** names;
char ** versions;
int * flags;
int count;

headerGetEntry(header, RPMTAG_REQUIRENAME, &namesType, (void **) &names, count);
headerGetEntry(header, RPMTAG_REQUIREVERSION, &versionsType, (void **) &versions, count);
headerGetEntry(header, RPMTAG_REQUIREFLAGS, &flagsType, (void **) &flags, count);

Now.... I get each flag by flags[i], no problem with that.... but how can I tell if the requirement is an RPM package or a file or anything else? I only need the information of RPM packages.

Even more.... if you can tell me the meaning of every single rpmsenseFlags_e flag, I'd be veeeery thankful. Or where can I find that info? (please, don't tell me to look at the rpmlib 4.1 api, cause I coudn't figure out my needs from there ).

So...??? Any ideas?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Directories and Meanings virtualme Linux - Newbie 1 03-24-2005 06:36 PM
ksysguard cpu meanings Hexane Linux - Newbie 1 01-20-2005 02:14 AM
% and & meanings jesus_edu Linux - Newbie 9 04-13-2004 02:27 AM
% and & meanings jesus_edu Linux - Software 1 04-09-2004 02:46 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration