Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

RPM deletes required files if -U -prefix is used together

 
   Soft32 Home -> Linux -> Partner Relationship Management RSS
Next:  Red Hat and PHP standalone  
Author Message
Berni

External


Since: Jul 01, 2005
Posts: 1



(Msg. 1) Posted: Thu Jun 30, 2005 7:30 pm
Post subject: RPM deletes required files if -U -prefix is used together
Archived from groups: linux>redhat>rpm (more info?)

Hello

there seams to be a problem if the Upgrade option is used on
relocatable packages. If i do the following:

rpm -i mypack-1-01.i586.rpm --prefix=/myprefix

and then upgrade to a new version of mypack like this:

rpm -U mypack-2-05.i586.rpm --prefix=/myprefix

Bad things happen. The directory /myprefix only contains the files that
were added to the new version. All files that exist in both versions of
the rpm are missing.

As far as I understand the -U option. It is just a rpm -i followed by a
rpm -e on the old version. But the -e will only delete files that don't
belong to the new version of the package. I guess this check is broken
if used with relocatable packages.

Is there a workaround for this problem. Anybody noticed this ? Could
somebody give me a hint where in the rpm code I should look for the
bug. Is this check done in the rpmlib or in some scripts ? Any hints
are welcome.

I'm using rpm 4.1.1

Thanks
Berni.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
rpm --prefix relocation - Hi, I cannot figure how to use the --prefix option when installing a rpm binary package. I have tried with rpm 4.1 and...

--prefix value in %pre & %post scripts... - Hi, First post, so please excuse if it's been covered or just plain simple. I tried a search but didn't find..

Workaround if rpm --prefix does not work - I know a lot of folks out there are having trouble with the --prefix switch on 8.0 RH Linux systems (and even some 7.2....

Workaround if rpm --prefix does not work - I know a lot of folks out there are having trouble with the --prefix switch on 8.0 RH Linux systems (and even some 7.2....

Howto specifiy alternate requirements (ORing required stat.. - Hi Is there a way to specify alternate requirements when building a rpm package ? What I mean is, is ist possible, tha...

How to include - in the source RPM - all the files listed .. - Hi All, I create RPMs that get the files in %files from ClearCase, which means that I copy the files to a location the...
       Soft32 Home -> Linux -> Partner Relationship Management All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]