Thought of putting this up long time ago. You can have a quick reference on the most commonly Linux RPM commands I used daily here: -
Install a RPMrpm -ivh package-name.rpm
Update a RPMrpm -Uvh package-name.rpm
Remove a RPMrpm -e package-name.rpm
List contents of installed RPMrpm -qvl package-name
List contents of a RPMrpm -qlp package-name
Print information about an installed RPMrpm -qi package-name
Print information about a RPMrpm -qpi package-name.rpm
List all installed RPM on your systemrpm -qa
Search for a installed RPMrpm -qa | grep package-name
Print which package a file belongs torpm -qf /path/to/file
Extract files from a RPM into current directoryrpm2cpio package-name.rpm | cpio -idv
List out configuration file(s) for a RPMrpm -qc package-name
List package dependenciesrpm -qpR package-name.rpm
Integrity check for a installed RPMrpm -V package-name
Integrity check for a RPMrpm -Vp package-name.rpm
To compile a rpm
rpmbuild -ba something.spec