Redhat Package Manager
rpm -Uvh packages...
Install/upgrade packages, and let me know what happens
rpm -qi packagename
Tell me all about packagename, which is already installed.
rpm -qpi packagename-1.0mdk.i586.rpm
Tell me all about the package contained in packagename-1.0mdk.i586.rpm, which doesn't have to be installed.
rpm -q --changelog packagename
Display the changelog for the installed package packagename.
List ALL packages installed on my system.
(--erase is equivalent) removes, or erases, one or more packages from the system.
rpm -qf /usr/bin/pdftex
get the information from which rpm packet this file was installed