18

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

rpm -ivh

and

rpm -Uvh

Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
zaree
  • 641
  • 2
  • 6
  • 15

1 Answers1

39

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)

Chankey Pathak
  • 21,187
  • 12
  • 85
  • 133