–i
or --install
option tells the rpm
command to run an installation operation, which, as you’d suspect, installs packages. The basic syntax is:
rpm –i filename.rpm
rpm –i jikes-1.16-1.i386.rpm
Use Upgrade, Rather Than Install
rpm
-U
, not rpm
-i
. One of the main reasons is that rpm
-i
allows you to install multiple instances of the same (identical) package. This is usually not what you want.
rpm –i
command works with the installation options discussed previously. The –U
, -F
and –i
options all accept mostly the same options, except as discussed previously.