Bug 42873 - rpm --prefix/--relocate failure
rpm --prefix/--relocate failure
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-05-30 10:53 EDT by Rex Dieter
Modified: 2007-04-18 12:33 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-05-30 10:53:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Rex Dieter 2001-05-30 10:53:51 EDT
Description of Problem:
Any use of rpm --prefix (or --relocate) with relocatable packages fail 
with error:
error: can't unlink /tmpblah-RPMDELETE: Is a directory
error: can't rename /tmpblah to /tmpblah-RPMDELETE: Is a directory
error: unpacking of archive failed on file /tmpblah: cpio: unlink failed 
- Is a directory

or if installing to a pre-existing system directory:
rpm --prefix /usr package.rpm
file usr from install of package conflicts with file from package 

How Reproducible:
I've tried this with at least 4 relocatable rpms with the same result.

Expected Results:
I would like to be able to relocate some packages is all.  

I'm particularly interesting in relocating IBM's 
IBMJava2-JRE-1.3-6.0.i386.rpm java rpm from it's default of /opt
Comment 1 Jeff Johnson 2001-05-30 11:02:35 EDT
rpm-4.0.2? Yes, relocations are broken there ...

Try rpm-4.0.3-0.6 (or any recent version of rpm-4.0.3) at
Reopen this bug with more info if rpm-4.0.3-0.6 does not work for you.
Comment 2 Rex Dieter 2001-05-30 11:48:47 EDT
Sorry, I forgot to check for resolved/closed bugs before posting this.  My
report dups previous bug #39943
Comment 3 Rex Dieter 2001-05-30 11:55:10 EDT
I can verify that the --prefix and --relocate options work as advertised with
the rpm-4.0.3-0.6 packages you referrenced.

Note You need to log in before you can comment on or make changes to this bug.