rpm Command-line Tool Frequently Used Options

rpm frequently used options
rpm -U *.rpm Install or update some rpm packages.  Add -v and/or -h for verbose and/or progress bar.
rpm -e package-name Delete an installed rpm package.
rpm --import gpg-key-file You must import the GPG key for any digitally signed package you wish to verify.  These keys can beinported from files or from the Internet.  (Example: /usr/share/doc/rpm-version/RPM-GPG-KEY)

Query   Options:
(Use "-qp file.rpm" to query a downloaded but not installed package file)
rpm -q package-name Provides the full name for an installed package (which includes a version number).
rpm -qa List all installed RPM packages.  Add "--last" option to list in the order installed, most recent first.  This is useful to combine with either grep or head.
rpm -qa |grep -i kernel | sort
rpm -qa --last | head
rpm -qc package-name Lists the configuration files from a package.
rpm -qf pathname Tells you which package some file belongs to.
rpm -qi package-name Shows general package description and other information.
rpm -ql package-name Lists files in a package.