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

Re: -Upgrading RPMs



On Tue, 4 Nov 2003, puneet puri wrote:

> a) Can the -U option be used to upgrade a installed
> package when dependencies( pre-requisite ) exist on it
> ?
> 
Yes, but you want to include the the prerequisite in the same transaction.
For instance if rpm A-1-1 is installed, and A-1-2 needs B-1-2, you would 
do:

	rpm -Uvh A-1-2.noarch.rpm B-1-2.noarch.rpm

> b) Does the Upgrade of an RPM remove the already
> existing files if they are not a part of the new RPM ?
> ( or its has to be handled manually using the
> preinstall section of the spec file)
>
Its automatically handled.  An upgrade is an implicit install followed by 
an implicit erase.  The trick is that it only erases files not belonging 
to the new package.

Cheers...james 
> -Thanks
> Puneet
> 
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
> 
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://www.redhat.com/mailman/listinfo/rpm-list
> 




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