How to Uninstall a RPM


RPM stands for Red Hat Package Manager. A package manager is software that automates the discovery, installation and configuration of software packages. RPM was originally used on the commercial Red Hat Linux distribution, but it is now used in many other distributions derived from Red Hat. The "rpm" command is used to install and uninstall .rpm packages from the command line. With a package manager, uninstalling a package is a simple process, even from the command line.

Things You'll Need

  • Root privileges
  • Log in as root, or otherwise obtain root privileges on your system. This will vary depending on the Linux distribution you are using.

  • Determine the name of the package you wish to uninstall. You must use the correct name or RPM will fail to find the package to uninstall. Enter the following command at the terminal, replacing "your_package" with the part of the package name that you already know:

    rpm -qa | grep -i your_package

    The first half of the command, "rpm -qa", returns a list of all of the currently installed packages. The second half, "grep -i your_package", prints only the parts of the list that contain the text you inserted for "your_package", ignoring the case.

  • Select the full official name of the desired package from the returned list. You must enter this name exactly as it is returned in Step 2 for RPM to find and remove the package.

  • Enter the following command to uninstall the package, replacing "your_package" with the full name you determined above:

    rpm -ev your_package

    The "e" means erase, and the "v" means verbose, which will print more information about the uninstallation process.

Related Searches


  • Photo Credit Jupiterimages/ Images
Promoted By Zergnet


You May Also Like

  • How to Uninstall Software in Linux

    Linux is an open source, multi-user operating system based on the Unix operating system. There are many different Linux distributions available. Each...

  • How to Uninstall VNC Service

    VNC, or Virtual Network Computing, applications allow a remote user to take over and manipulate your computer. This can be very helpful...

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!