How to execute rpm's in linux machine ?

Use the following commands to execute rpm files in linux environment.

To install rpm

rpm -ivh <file-name>.rpm

To upgrade rpm

rpm -Uvh <file-name>.rpm

To install rpm without considering dependencies

rpm -ivh --nodeps <file-name>.rpm

To check whether an rpm is installed or not

rpm -qa | grep "<file-name>.rpm"

To uninstall an rpm

rpm -e <file-naeme>.rpm

Search