Re: How does yum decide rpm A to depnd on B?

Greg Ward <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.