Re: Problem about upgrade multiple rpm package.

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

 




The new B does depend on new A.
You know, I am testing the package, there is a status checking in the %pre scriptlet, sometime it fail. The two packages may exit at the same time for the same reason.
My problem is why the separate upgrade works fine with a clean exit, leave the old installed one untouched, but one line command remove the old one.

rpm -Uvh A_2.0.rpm
rpm -Uvh B_2.0.rpm

clean exit

====================

rpm -Uvh A_2.0.rpm B_2.0.rpm

exit and remove the old one, we don't want this.

Thanks.
--- On Wed, 12/10/08, devzero2000 <devzero2000@xxxxxxxx> wrote:
From: devzero2000 <devzero2000@xxxxxxxx>
Subject: Re: Problem about upgrade multiple rpm package.
To: qiuhd@xxxxxxxxxxxx, "General discussion about the RPM package manager" <rpm-list@xxxxxxxxxxxxx>
Date: Wednesday, December 10, 2008, 9:28 PM

On Wed, Dec 10, 2008 at 9:13 AM, qiuhd <qiuhd@xxxxxxxxxxxx> wrote:
> Hi, Guys
> Please help me about this upgrade problem.
> I built two packages, A and B, B has dependency on A. I have a old version
> of A ( A_1.0.rpm) installed on my linux system, now I want to upgrade to the
> new version by execute
> rpm -Uvh A_2.0.rpm B_2.0.rpm
> If the %pre scriptlet failed because of some reason, I think the upgrade
> should abort and leave the old installed on untouched.

The new B depends on the new A ? From your description i think no. Why should be the upgrade abort all ?
If you use a C rpm - unrelated a A but with %pre failing - what do you think should be happen on : rpm -Uvh C_1_0.rpm B_2_0.rpm ?
B should be failing to upgrade ?

Regards


_______________________________________________
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