On Thu, Jul 8, 2010 at 2:05 PM, seth vidal <skvidal@xxxxxxxxxxxxxxxxx> wrote: > 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. Thanks for your quick answer. According to http://rpm.org/wiki/PackagerDocs/Dependencies#ScriptletDependencies Using "Requires(pre)" would be a hack (in the sense of "it's not designed for this"), wouldn't it ? I think it's more safe to consider modifying 'bar' package in order to make it depends of 'foo' Thanks for your help, Manuel _______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxx http://lists.baseurl.org/mailman/listinfo/yum