Re: Dependencies order question

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1278590745.26529.66.camel@rosebud>
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
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.