On May 1, 2006, at 9:36 PM, Christian Goetze wrote:
Does anyone have a script which queries an existing rpm db and
spits out the dependencies expressed as dependencies between rpms?
This would require matching up the --provides and --requires of all
rpms, using the proper version matching used by rpm - so it's a
little more complex than a naive perl script.
You essentially want a computation of what I call the "contains"
relationship, which package "contains"
the Provides: that satisfies a given Requires:. The basic primitive
is a --whatprovides query, better can be done
with the RPMTAG_PROVIDENAME through, say, a python match iterator.
My ultimate goal is: given a set of rpms, list me the minimal set
of rpms required to satisfy the dependencies of the given rpms.
Hint: Multiple packages that satisfy a given Provide: need to be
figured for "minimal set" and that
needs additional information, like affinities that group containing
packages.
Good luck!
73 de Jeff
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list