Rpm redhat package manager

From thelinuxwiki
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>