Rpm redhat package manager

From thelinuxwiki
Revision as of 19:01, 25 February 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To install a package (i=install v=verbose h=show hash marks)

rpm -ivh <package_name>

To uninstall (erase) a package

rpm -e <package_name>

To upgrade a package rpm -Uvh <package_name>

To test a package to see how it would install (without installing, also checks dependencies) rpm -Uvh --test package

Verify commands

To verify a package (extra verbose output)

rpm -Vvv <package_name>

To list ALL installed packages on the system

rpm -qa

To verify ALL installed packages on the system

rpm -Va <package_name>

To verify the cryptographic signature of a package

rpm -K <package_name>

Check dependencies for an RPM

rpm -qpR <package_name>