Bug 50550

Summary: rpm -i --prefix <path> <xxx.rpm> error! (ver 4.0.2)
Product: [Retired] Red Hat Linux Reporter: Xuan Li <xuan.li>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: high    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-08-01 03:34:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Xuan Li 2001-08-01 03:34:20 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)

Description of problem:
Install a relocatable package with command:
    'rpm -i --prefix /home/lix abcde.rpm' on Red Hat 7.1
Got an error message:
    'Error: can't unlink homelix-RPMDELETE: Is a directory.'
Install failed.  RPM version on rh7.1 is 4.0.2.
Use the same command on Red Hat 7.0.  Install successfully. RPM version on 
rh7.0 is 4.0.

How reproducible:
Always

Steps to Reproduce:
1.Find a relocatable package, for example: abcde.rpm
2.Create directory '/home/lix' and give properly priviledge.
3.run 'rpm -i --prefix /home/lix abcde.rpm' on Red Hat 7.1.
4.Error occurs.
	

Actual Results:  Error messages:
    'Error: can't unlink homelix-RPMDELETE: Is a directory.'

Expected Results:  Install successfully to directory /home/lix.

Additional info:

Comment 1 Jeff Johnson 2001-08-01 12:32:41 UTC
Yup, relocations were broken in rpm-4.0.2.

Try rpm-4.0.3 from Raw Hide, or ftp://ftp.rpm.org/pub/rpm/test-4.0.3