rpm
–e
command removes packages. The rpm
–U
command upgrades packages by installing new packages and removing old versions of all the packages upgraded. RPM upgrades also work for installing new packages. The rpm
–F
command freshens packages. This command only upgrades a package if an older version of the package has already been installed. The rpm
–i
command installs packages.
rpm
command-line options for installing, removing, and upgrading packages.
Table 3.3. Installing, Removing, and Upgrading with the rpm
command
Command | Usage |
---|---|
rpm –i install_options package_files
|
Install packages.
|
rpm –e remove_options packages
|
Erase, remove, packages.
|
rpm –U install_options package_files
|
Upgrade or install packages. Use this option for installations.
|
rpm –Uvh install_options package_files
|
Upgrade or install packages with extra output. This is the recommended command to install packages.
|
rpm –F install_options package_files
|
Freshen packages.
|