15.2.3. Uninstalling

Uninstalling a package is just as simple as installing one. Type the following command at a shell prompt:
rpm -e foo

Note

Notice that we used the package namefoo, not the name of the original package filefoo-1.0-1.i386.rpm. To uninstall a package, replace foo with the actual package name of the original package.
You can encounter a dependency error when uninstalling a package if another installed package depends on the one you are trying to remove. For example:
error: Failed dependencies:
        foo is needed by (installed) bar-2.0.20-3.i386.rpm
To cause RPM to ignore this error and uninstall the package anyway, which may break the package depending on it, use the --nodeps option.