How to Install and Uninstall packages using RPM Command

RPM  stands for Red Hat Packet Manager. It is an open source and most popular packet manager utility used in Unix/ 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:

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

To uninstall a package use the command:

rpm -e

The parameter -e is used to remove the package.

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

# rpm -e pidgin
Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *