Difference between rpm -ivh and rpm -Uvh

zaree picture zaree · Jan 6, 2015 · Viewed 30.9k times · Source

Hi i am newbie in linux can anyone explains me the difference between

rpm -ivh

and

rpm -Uvh

Answer

Chankey Pathak picture Chankey Pathak · Jan 6, 2015

Check out documentation (man page) of rpm.

i - install (This installs a new package)
v - verbose (using or expressed in more words than are needed)
h - hash (Print 50 hash marks as the package archive is unpacked)
U - upgrade (This upgrades or installs the package currently installed to a newer version. This is the same as install, except all other version(s) of the package are removed after the new package is installed)