Chapter 2. Using RPM to Install Packages

Table 2-1. rpm -i Command Syntax

rpm -i (or --install) options file1.rpmfileN.rpm
Parameters
file1.rpmfileN.rpm One or more RPM package files (URLs OK)
Install-specific Options Page
-h (or --hash) Print hash marks ("#") during install Section 2.3.2
--test Perform installation tests only Section 2.4.2
--percent Print percentages during install Section 2.4.11
--excludedocs Do not install documentation Section 2.4.7
--includedocs Install documentation Section 2.4.8
--replacepkgs Replace a package with a new copy of itself Section 2.4.3
--replacefiles Replace files owned by another package Section 2.4.4
--force Ignore package and file conflicts Section 2.4.6
--noscripts Do not execute pre- and post-install scripts Section 2.4.10
--prefix <path> Relocate package to <path> if possible Section 2.4.9
--ignorearch Do not verify package architecture Section 2.4.17
--ignoreos Do not verify package operating system Section 2.4.18
--nodeps Do not check dependencies Section 2.4.5
--ftpproxy <host> Use <host> as the FTP proxy Section 2.4.16
--ftpport <port> Use <port> as the FTP port Section 2.4.15
General Options Page
-v Display additional information Section 2.3.1
-vv Display debugging information Section 2.4.1
--root <path> Set alternate root to <path> Section 2.4.13
--rcfile <rcfile> Set alternate rpmrc file to <rcfile> Section 2.4.12
--dbpath <path> Use <path> to find the RPM database Section 2.4.14

2.1. rpm -i — What does it do?

Of the many things RPM can do, probably the one that people think of first is the installation of software. As mentioned earlier, installing new software is a complex, error-prone job. RPM turns that process into a single command.

rpm -i (--install is equivalent) installs software that's been packaged into an RPM package file. It does this by:

Let's go through each of these steps in a bit more detail.

Notes

[1]

Are you interested in what exactly "the right thing" means? Section 4.1.1 has all the details.