Bug 64909 - rpm ignores --nodeps option, cannot remove a package
rpm ignores --nodeps option, cannot remove a package
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
high Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2002-05-14 06:57 EDT by Vlado Potisk
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-05-14 09:59:50 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 Vlado Potisk 2002-05-14 06:57:59 EDT
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:

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 09:59:45 EDT
Put --nodeps behind the -e. That is where it belongs, and it will work.
Comment 2 Jeff Johnson 2002-05-14 10:22:16 EDT
Yup, rpm needs the mode specified first.
Comment 3 Vlado Potisk 2002-05-14 12:40:27 EDT
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.

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