Red Hat Bugzilla – Bug 42873
rpm --prefix/--relocate failure
Last modified: 2007-04-18 12:33:29 EDT
Description of Problem:
Any use of rpm --prefix (or --relocate) with relocatable packages fail
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
I've tried this with at least 4 relocatable rpms with the same result.
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
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.
Sorry, I forgot to check for resolved/closed bugs before posting this. My
report dups previous bug #39943
I can verify that the --prefix and --relocate options work as advertised with
the rpm-4.0.3-0.6 packages you referrenced.