[Yum] How does yum decide rpm A to depnd on B?

Greg Ward gerg.ward+yum at gmail.com
Mon Aug 18 16:56:11 UTC 2008


On 18 August 2008, Yang, Yi Y said:
> I notcied yum repo has a xml file primary.xml, that provides what a rpm
> requires and what a rpm provides, optionally, yum repo can also have a
> sqlite database primary.sqlite which has similar info to primary.xml, I
> want to decide dependency according to xml file or sqlite database, my
> decision logic is A requires B and C provides C, then A depends on C, I
> don't know if this logic is correct, I don't know how to decide the real
> dependency logic, anybody know it?

As I understand it, the definitive source is the .rpm file in the
repository.  If you have direct repository access, just query the file:

  rpm -qp --depends A-<version>-<release>.<arch>.rpm
  rpm -qp --provides A-<version>-<release>.<arch>.rpm
  ...etc...

        Greg



More information about the Yum mailing list