O'Reilly logo

Learning Red Hat Linux by Bill McCarty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Uninstalling a Package

To uninstall a package, type a command like this one:

rpm -e package

In this command, package is the name of the package, not the name of the package file.

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 switch:

rpm -e --nodeps package

However, doing so will probably cause the depending package to cease working properly. Therefore, you’ll not often need to use the --nodeps switch.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required