Bug 64909

Summary: rpm ignores --nodeps option, cannot remove a package
Product: [Retired] Red Hat Linux Reporter: Vlado Potisk <reg.bugs>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: 7.3   
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: 2002-05-14 13:59:50 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 Vlado Potisk 2002-05-14 10:57:59 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510

Description of problem:
rpm does not let me delete a package:

#rpm --nodeps -e lm_sensors
error: removing these packages would break dependencies:
        lm_sensors is needed by kdebase-3.0.0-12
        libsensors.so.1   is needed by kdebase-3.0.0-12

Version-Release number of selected component (if applicable):
RPM version 4.0.4

How reproducible:
Always

Steps to Reproduce:
1.run rpm as shown above

Actual Results:
error message about broken dependencies

Expected Results:
package should be deleted

Comment 1 Michael Schwendt 2002-05-14 13:59:45 UTC
Put --nodeps behind the -e. That is where it belongs, and it will work.

Comment 2 Jeff Johnson 2002-05-14 14:22:16 UTC
Yup, rpm needs the mode specified first.

Comment 3 Vlado Potisk 2002-05-14 16:40:27 UTC
You're right. However, RPM version 3 accepted --nodeps before -e and
RPM version 4 still accepts --test before -e. This behavior is inconsistent
and confusing. A warning message from the option parser would be nice.