Control the order yum dependencies are installed?

ady8531 asked:

I need to install an application that has 4 dependencies (output from .spec file):

Requires: PA-KBU-KBUONE-SHARED
Requires: PA-KBU-KBUONE-PLI-CONF
Requires: PA-KBU-KBUONE-PLA-CONF
Requires: PA-KBU-KBUONE-PLA-BIN

These 4 dependencies must be installed in that order (first SHARED, second PLI-CONF etc), but when I do yum install app, yum does a sort on that list:

Installing:
app                             noarch            10.0.0-1              localrepo            1.4 k
Installing for dependencies:
PA-KBU-KBUONE-PLA-BIN             noarch            10.0.0-1            localrepo             20 M
PA-KBU-KBUONE-PLA-CONF            noarch            10.0.0-1            localrepo            2.5 M
PA-KBU-KBUONE-PLI-CONF            noarch            10.0.0-1            localrepo             10 k
PA-KBU-KBUONE-SHARED              noarch            10.0.0-1            localrepo            7.1 k

Is there a way to control the order in which yum installs dependencies ?

My answer:


I can tell that you didn’t actually install the packages, or you would not have asked this question.

Generally, yum gets this right already, installing dependencies before the package that requires them. It is only when listing the packages to be installed that they are sorted, for convenience.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.