hum, can't see the point on cloning the red hat package manager
I'll suggest simply to use system("rpm ...") for this
And please, note that this is not a "first occurrence's problem", it is a "categorizing packages" problem. You want to print the parent (upper node of the tree) package, not the first package that match the regex
In reply to Re: Need to return the first occurance of a search
by pvaldes
in thread Need to return the first occurance of a search
by mds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |