RE: Manage installation order in yum group

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

 



Thanks a lot, Panu. OrderWithRequires is exactly what I need. I didn't
specify the whole story, as this related to some legacy I can't change,
so I needed a workaround...

Eran.

-----Original Message-----
From: rpm-list-bounces@xxxxxxxxxxxxx
[mailto:rpm-list-bounces@xxxxxxxxxxxxx] On Behalf Of Panu Matilainen
Sent: Monday, November 26, 2012 11:10 AM
To: rpm-list@xxxxxxxxxxxxx
Subject: Re: Manage installation order in yum group

On 11/26/2012 08:53 AM, Eran Ben Natan wrote:
> Hello,
>
>
>
> I have created a group which contains 2 packages that are not depend 
> on each other (DB package and application package). They can be 
> installed on separate serves, or cohosted.
>
> If they are to be installed on the same server using the group, I need

> the DB package to be installed first. Unfortunately, YUM always 
> install the application first.
>
> Is there a way to force YUM a specific installation order of 
> non-dependent packages?

If you have rpm >= 4.9.x, this will cause <db package> to installed
before the application IF they are in the same transaction:

OrderWithRequires: <db package>

...but that trick isn't available on older rpm versions. Also there's
nothing preventing somebody from manually first installing them in the
"wrong" order, resulting in non-working packages.

It's better to avoid such implicit ordering constraints to begin with. 
You didn't specify the actual reason for this ordering limitation so its
impossible to say how exactly to fix it, but for example it might be
possible to put the order-dependent thing into a third package which
both the application and the db package require.

	- Panu -
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

This mail was received via Mail-SeCure System.


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/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