How to install,upgrade, and uninstall a Linux RPM package

This article will show you to how install,upgrade, and uninstall a RPM package on Linux. For additional RPM commands such as listing all installed RPMs on the box and detailed package information such as version, date created, file listing, etc. check out How to Find All Installed RPMs in Linux.

To install a RPM

rpm -ivh [package name]

To upgrade a RPM

rpm -Uvh [package name]

To uninstall a RPM

First find the exact package name by issuing the following command:
rpm -qa | grep -i [search string]

Then begin the uninstall process by running:
rpm -Uvh [package name]


{ 1 Comments }
  1. [...] This article will show you to how show a list of all RPMs installed on a Linux machine, view detailed package information and all files installed by the package. To learn how to install/uninstall/upgrade an RPM, check out: How to install, upgrade, and uninstall a Linux RPM package. [...]

Tell us what you think about this article!