Install RPM

$ rpm -Uvh packagename.rpm

Uninstall RPM

$ rpm -e packagename

List all installed packages

$ rpm -qa

Get more info about a package

$ rpm -q packagename -i

Get more info about a RPM file

$ rpm -q -p package.rpm -i

List files associate with a package

$ rpm -q packagename -l

List files included in a RPM file

$ rpm -q -p package.rpm -l

Reset permissions on installed files
rpm —setperms package_name

Extract RPM file using rpm2cpio and cpio command:

$ rpm2cpio blah.rpm | cpio -idmv

Force reinstallation of a package with yum

rpm -e --justdb --nodeps packagename
yum install packagename
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License