Chapter 3. Using RPM to Erase Packages

Table 3-1. rpm -e Command Syntax

rpm -e (or --erase) options pkg1pkgN
Parameters
pkg1pkgN One or more installed packages
Erase-specific Options Page
--test Perform erase tests only Section 3.3.1
--noscripts Do not execute pre- and post-uninstall scripts Section 3.3.3
--nodeps Do not check dependencies Section 3.3.2
General Options Page
-vv Display debugging information Section 3.2.1
--root <path> Set alternate root to <path> Section 3.3.5
--rcfile <rcfile> Set alternate rpmrc file to <rcfile> Section 3.3.4
--dbpath <path> Use <path> to find the RPM database Section 3.3.6

3.1. rpm -e — What Does it Do?

The rpm -e command (--erase is equivalent) removes, or erases, one or more packages from the system. RPM performs a series of steps whenever it erases a package:

That's quite a bit of activity for a single command. No wonder RPM can be such a time-saver!