rpm -ivh 和 rpm -Uvh 的区别

Difference between rpm -ivh and rpm -Uvh

嗨,我是 linux 的新手,谁能给我解释一下

之间的区别

rpm -ivh

rpm -Uvh

查看 rpm 的 documentation(手册页)。

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)