home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Previous SectionNext Section

8.6 Uninstalling a Package

To uninstall a package, type:

rpm -e  package 

In this command, package is the name of the package, not the name of the package file. The name should omit the architecture; it can also omit the package version or package version and release number. For example, you can erase the pine package by issuing either of the following commands:

rpm -e pine-4.44-13
rpm -e pine

If you attempt to uninstall a package on which another package depends, RPM will report a dependency error and terminate without uninstalling the package. You can force RPM to uninstall the package by using the -- nodeps option:

rpm -e --nodeps  package 

However, doing so will probably cause the dependent package to cease working properly. Therefore, you shouldn't use the -- nodeps option very often.

    Previous SectionNext Section