next up previous contents index
Next: 7.2.3 Upgrading Up: 7.2 Using RPM Previous: Unresolved Dependency

7.2.2 Uninstalling

 

Uninstalling a package is just as simple as installing:

$ rpm -e foo

Notice that we used the package name ``foo'', not the name of the original package file ``foo-1.0-1.i386.rpm''.

You can encounter a dependency error when uninstalling a package if some other installed package depends on the one you are trying to remove. For example:

$ rpm -e foo
removing these packages would break dependencies:
        foo is needed by bar-1.0-1

To cause RPM to ignore that error and uninstall the package anyway (which is a bad idea since the package that depend on it will probably fail to work properly), use -nodeps on the command line.



Red Hat Software