Name
rpm [options] [files] — rpm
Synopsis
/bin stdin stdout - file -- opt --help --versionIf you prefer to install RPM packages by hand, use rpm, the same package-management program that up2date runs behind the scenes. rpm not only installs the software, but also makes sure your system has all prerequisites. For example, if package superstuff requires package otherstuff that you haven’t installed, rpm will not install superstuff. If your system passes the test, however, rpm completely installs the software.
RPM filenames typically have the form name-version.architecture.rpm. For example, emacs-20.7-17.i386.rpm indicates the emacs package, Version 20.7-17, for i386 (Intel 80386 and higher) machines. Be aware that rpm sometimes requires a filename argument (like emacs-20.7-17.i386.rpm) and other times just the package name (like emacs).
Common commands for manipulating RPM packages are:
rpm -qpackage_nameFind out if
package_nameis installed on your system, and what version. Example:rpm -q textutils. If you don’t know the name of the package (a chicken-and-egg problem), list all packages and usegrepto search for likely names:$ rpm -qa | grep -i
likely_namerpm -qlpackage_nameList the files included in the given, installed package. Try
rpm -ql emacs.rpm -qipackage_nameGet general information about the package.
rpm -qlppackage.rpmList the contents of an RPM file, not necessarily installed yet. Use
-qipfor general information about the RPM file.rpm -qaList all installed RPM packages. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access