Skip to content

Instantly share code, notes, and snippets.

@Mouad-BGD
Created May 25, 2012 21:48
Show Gist options
  • Select an option

  • Save Mouad-BGD/2790787 to your computer and use it in GitHub Desktop.

Select an option

Save Mouad-BGD/2790787 to your computer and use it in GitHub Desktop.
rpm commands
Rpm
+++
To install a package (i=install v=verbose h=show hash marks) rpm -ivh package
To uninstall (erase) a package rpm -e package
To upgrade a package rpm -Uvh package
To test a package to see how it would install (without installing, also checks dependencies) rpm -Uvh --test package
To verify a package (extra verbose output) rpm -Vvv package
To verify ALL installed packages on the system rpm -Va
To verify the cryptographic signature of a package rpm -K package
For example, rpm -ql package would become rpm -qpl package.
To find out the package names using wildcards rpm -qa | grep pattern
What files are included in the the package rpm -ql package
To show general info on a package rpm -qi package
What package owns this file? rpm -qf path/to/file
What are the config files in a package? rpm -qc package
What are the documentation files in a package? rpm -qd package
What are the scripts in a package? rpm -q --scripts package
What services does this package provide? rpm -q --provides package
What services does this package require? rpm -q --requires package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment