next up previous contents
Next: 4.1.6 Querying with RPM Up: 4.1 Red Hat Package Previous: 4.1.4 Unresolved Dependencies   Contents

4.1.5 Removing Packages with RPM

The command line for removing RPMs is:

rpm -e <package_file>
There are options for removing packages.

-allmatches
Remove all versions of the package which match <package_name>. Normally an error is issued if <package_name> matches multiple packages.
-noscripts
Don't execute the preuninstall or postuninstall scripts.
-notriggers
Don't execute scripts which are triggered by the removal of this package.
-nodeps
Don't check dependencies before uninstalling the packages.
-test
Don't really uninstall anything, just go through the motions.
-vv
option.
-nodeps
Don't check for broken dependencies before removing the package.