Red Hat Bugzilla – Bug 64909
rpm ignores --nodeps option, cannot remove a package
Last modified: 2008-05-01 11:38:02 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
Steps to Reproduce:
1.run rpm as shown above
error message about broken dependencies
package should be deleted
Put --nodeps behind the -e. That is where it belongs, and it will work.
Yup, rpm needs the mode specified first.
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.