Re: installing order != dependencies ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Nov 2, 2006, at 12:55 PM, Tim Mooney wrote:

In regard to: Re: installing order != dependencies ?, James Olin Oden said...:

On 11/2/06, Andrei Kazarov <Andrei.Kazarov@xxxxxxx> wrote:
Hello,
I have a problem with installing 2 dependent packages with "rpm - i": it
seems that the packages are installed on order that I give in the
command line, and not in the order of dependency. E.g. if PackageA
requires PackageB and I do

 > rpm -i PackageA.rpm PackageB.rpm
then PackageA is installed before PackageB. I need B to be installed
first, because in PackageA %post stage I need to access some files in
PackageB.
How can I guarantee the correct order not relying on the order of
packages in rpm -i?
Can you send a link to said packages srpms?

Beyond that do you have:

  Requires: PackageA

in the preamble of PackageB?


Remember that "Requires" isn't the same as "PreReq".  Jeff can give
a better explanation, but if PackageA must be installed *before* PackageB,
rather than at the same time as PackageB, then try using "PreReq"
instead of "Requires".


Au contraire. Requires and PreReq are exactly the same *EXCEPT* when
dependency loops are present. Only Requres:, not PreReq: is ignored in
a dependency loop.

Jeff also added more fine-grained controls in RPM 4.0.1, for doing
stuff like this:

	Requires(pre): /path/to/command/from/packageA

in PackageB's spec, to indicate that its %pre requires a particular
command already be there.



Please, please, please, please do not coinuse the "Pre" in PreReq:
with the "pre" in Requires(pre):

Not all "pre"'s are created equal.

Meanwhile, I suspect that you have a dependency loop amongst your packages.
Fix the loop, and everything will be as you expect.

73 de Jeff

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux