Re: pairwise dependency script anyone?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux