Some commonly used parameters of the RPM command:
1. Install a package
# rpm -ivh
Installation parameters:
- Even if the file that is covered with other packages is also forced to install
--Nodeps If the installation of the RPM package rely on other packages, even if other packages are not installed, it is also forced to install.
-H (or --hash) outputs a Hash mark ("# '') when installing
--Test only tests the installation and is not actually installed.
--Percent outputs the scheduled progress in the form of a percentage.
--ExCludedocs Do not install document files in your package
-v display additional information
--Root
2. Upgrade a package
# rpm -uvh
--Prefix
--Nodeps does not check dependency relationship
3. Remove a package
# rpm -e
--Test only executes the deleted test
--Nodeps does not check dependency
5. Query if a package is installed
# rpm -q
-p
-f
-a query all installed packages
-i display package profile
-l Display a list of files in the package
--Provides Display features provided by packages
--Requires (OR -R) Displays the features required for the package
6. Other RPM options
--Rebuilddb rebuild RPM database
--initdb creates a new RPM database
- quiet as much as possible
--help display help file
--Version displays the current version of RPM