How to install rpm package

In this article let’s discuss about How to install rpm package. Let’s go through the following methods without any delay.

Method 1:

rpm -i file_name.rpm

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar by have a try!

Method 2 :

sudo rpm –i sample_file.rpm
1
To install or upgrade a package, use the -U command-line option:
rpm -U filename.rpm. For example, to install the mlocate RPM used as an example in this chapter, run the following command:
rpm -U mlocate-0.22.2-2.i686.rpm. ...
rpm -Uhv mlocate-0.22.2-2.i686.rpm. ...
rpm –e package_name. ...
rpm –qa. ...
rpm –qa | more.

Hope the above solution works.

Realted Posts : How to uninstall vmware workstation