RPM (RPM Package Manager):
RPM is the RPM Package Manager. It is used to build, install, query, verify, update, and erase individual software packages in Linux. RPM is quite flexible and easy to use.
Packages come in two varieties: binary packages, used to encapsulate software to be installed, and source packages, containing the source code and recipe necessary to produce binary packages.
Followings are few parameters and there discription used with rpm command
Note : Replace packagemname.rpm with rpm package accordingly.
1.To install package use following command :
rpm -ivh packagemname.rpm
2. To erase (uninstall) package:
rpm -e packagemname.rpm
3. To upgrade the package :
This upgrades or installs the package currently installed to a newer version. This is the same as install, except all other version(s) of the package are removed after the new package is installed.
rpm -Uvh packagemname.rpm
4. To freshen the package by
This will upgrade packages, but only if an earlier version currently exists. The PACKAGE_FILE may be specified as an ftp or http URL, in which case the package will be downloaded before being installed. See FTP/HTTP OPTIONS for information on rpmās internal ftp and http client support.
rpm -Fvh packagemname.rpm
6. To install package without dependencies. Do not do a dependency check before installing or upgrading a package.
rpm -ivh --nodeps packagemname.rpm
7. To install package forcefully. Same as using --replacepkgs, --replacefiles, and --oldpackage
rpm -ivh --force packagemname.rpm
8. To add suggested packages to the transaction set when needed.
rpm -ivh --aid packagemname.rpm
9. To see the installed packages on server.
rpm -qa
10. To check the query package owning FILE.
rpm -qf packagemname.rpm
11. List capabilities this package provides.
rpm --provides packagemname.rpm
12. List packages on which this package depends.
rpm --requires packagemname.rpm![]()


Reply With Quote