How to Install and Uninstall packages using RPM Command

use RPM command to uninstall
Command to Remove or Uninstall an RPM

What is RPM?

RPM  stands for Red Hat Packet Manager. It is an open source and most popular packet manager utility used in Unix/Linux like operating systems. It deals with the files that have the extension as .rpm which contains the information about the packages. The RPM command used for installing and uninstalling packages in Unix/Linux operating system is below

RPM Command used to Install and Uninstall:

1. To install a package, use the command rpm - ivh

The parameters -i installs the package, -v -verbose for a nice display, -h prints hash marks as the package archive is unpacked.

For example, to install a package named pidgin-2.7.9-5.el6.2.i686.rpm. use the command

# rpm -ivh pidgin-2.7.9-5.el6.2.i686.rpm


2. To uninstall a package use the command rpm -e

The parameter -e is used to remove the package.

For example, the command# rpm -e pidgin is used to remove the package named  pidgin-2.7.9-5.el6.2.i686.rpm.



Please enter your comment!
Please enter your name here