[Yum] Dependencies order question

seth vidal skvidal at fedoraproject.org
Thu Jul 8 12:05:45 UTC 2010


On Thu, 2010-07-08 at 13:52 +0200, Manuel Vacelet wrote:
> Hi all,
> 
> After a bit of googling, I have a question regarding dependencies
> solving by yum: Are dependencies always installed in the order they
> are defined in the RPM .spec file ?
> 
> For instance, I have a package with:
> Requires: foo, bar
> or
> Requires: foo
> Requires: bar
> 
> Is it guaranteed that 'foo' will always be installed before 'bar' ?
> (Assuming that 'bar' is not itself a dependency of 'foo' or that my
> current package is not itself a dependency of another package that
> would requires 'bar' at first).
> 

The order that the requirements appear in the file have nothing to do
with install order. You may want to look into requires(pre) in the docs
in rpm.org.

-sv




More information about the Yum mailing list