How to Install and Uninstall packages using RPM Command?

0
327
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. RPM is an open source and most popular packet manager utility.The RPM command used for installing and uninstalling packages in Unix/Linux operating system. Here you will see, how to install and uninstall package using RPM command.

RPM Command used to Install and Uninstall:

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

The parameters:

-i =  This parameter used to installs the package,

-v = verbose for a nice display,

-h = This command is used to prints hash marks as the package archive is unpacked.

For example, you will need to install a package named as pidgin-2.7.9-5.el6.2.i686.rpm.

So, use the below command to install package.

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

2. To uninstall a package using 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.

LEAVE A REPLY

Please enter your comment!
Please enter your name here