The rpm Command
RPM packages are installed and queried with the rpm command. RPM package filenames usually
end with a
rpm has a set of modes, each with
its own options. The format of the rpm command is:
With a few exceptions, as noted in the lists of options that follow, the first option specifies the rpm mode (install, query, update, etc.), and any remaining options affect that mode.
Options that refer to packages are sometimes specified as package-name and sometimes as package-file. The package name is the name of the program or application, such as xpdf. The package file is the name of the RPM file, such as xpdf-3.00-10.1.i386.rpm.
RPM provides a configuration file for specifying frequently
used options. The default global configuration file is usually
/usr/lib/rpm/rpmrc, the local
system configuration file is /etc/rpmrc, and users can set up their
own $HOME/.rpmrc files. You can
--showrc option to show the values RPM will
use by default for all the options that may be set in an rpmrc file:
The rpm command includes
FTP and HTTP clients, so you can specify an
http:// URL to install or query a package
across the Internet. You can use an FTP or HTTP URL wherever
package-file is specified in the commands
presented here. Be careful, however, when downloading packages from
the Internet. Always verify package contents by checking MD5
checksums and signatures. Whenever possible, install from trusted
Any user can ...