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

Yi Yang yi.y.yang at intel.com
Mon Aug 18 13:32:58 UTC 2008


On Mon, 2008-08-18 at 12:56 -0400, Greg Ward wrote:
> 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
--depends should be --requires.


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

These commands just output some components but not packages.

Any command can give out all dependencies of one package?

Does yum have such a feature?

> 
>         Greg
> _______________________________________________
> Yum mailing list
> Yum at lists.dulug.duke.edu
> https://lists.dulug.duke.edu/mailman/listinfo/yum




More information about the Yum mailing list