RPM
max rpm

Basic operations

-i
Install package
Common usage:
rpm -ivh package_name.rpm
Installs package_name
  • i install
  • v verbose
  • h progress bar
-U
Update package
Common usage:
rpm -U package_name.rpm
Updates package_name
rpm -U --force package_name.rpm
Forces update of package_name
-e
Uninstall/Erase
Common usage:
rpm -e package_name
Unistalls package_name
rpm --nodeps -e package_name
Uninstalls package_name ignoring errors
--nodeps ignore dependancies
-q
Query package info
Common Usage:
rpm -q package_name
Prints package version
rpm -qi package_name
Prints information about package_name
rpm -qip package_name.rpm
Prints information about the package_name.rpm
rpm -qf file
Prints package containing file
rpm -ql package_name
Prints a long listing, including all files in package
rpm -qa
Prints a list of all packages
-V
Verify installed packages
SM5DLUGT c <file> is output for mismatching files, where: If an attribute is ok then "." is printed.
If the file is missing, then "missing" is printed
Common Usage:
rpm -V package_name
Validates the files in the package
rpm -Va
Validates the files in all packages