# rpm -qa
Query options (with -q or –query):
-a, –all query/verify all packages
# rpm -Uvh subversion-1.5.1-1.i386.rpm
-U, –upgrade=<packagefile>+ upgrade package(s)
-h, –hash print hash marks as package installs (good with -v)
-v, –verbose provide more detailed output
# rpm -e subversion-1.5.1-1.i386.rpm
-e, –erase=<package>+ erase (uninstall) package