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

Re: How to pretend an update



> Renaming (and Obsolete'ing the old) is not an upgtade case because the packageis being renamed.
 
This explains a lot!
 
>    What are you trying to do?
 
Im trying an update installation even when the packagenames changed.
 
But I think this could do it:
Maybe if I install a help-package without files with the new name and a versionnumber 0
Then I install the new packe with the same name, a newer version and obsolete the old packages.
 
But it would be easyer if I could force rpm to think it is an update even if it is no update.


Von: rpm-list-bounces redhat com [mailto:rpm-list-bounces redhat com] Im Auftrag von Jeff Johnson
Gesendet: Freitag, 22. September 2006 13:57
An: RPM Package Manager
Betreff: Re: How to pretend an update


On Sep 22, 2006, at 7:36 AM, Gordian, Martin wrote:

Soory, I should have sayed that I'm using -Uhv but rpm does not give this information into the %pre %post scripts ($1).
 
So -Uhv does not work it out.
 


The 1st argument to the script is used to detect whether installing or upgrading.
E.g. in %pst $1 >1 if upgrading, $1 == 1 if installing.

Renaming (and Obsolete'ing the old) is not an upgtade case because the package
is being renamed.

What are you trying to do?

73 de Jeff


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