rpm -F 和 rpm -U 有什么区别?

What is difference between rpm -F and rpm -U?

我正在浏览 rpm 的手册页,但可以得到 rpm -Frpm -U 之间的确切区别。
谁能帮我解决这个问题?

-F|--freshen 仅为系统上已安装的软件包安装更新。所以

rpm -U already-installed-package.2.0.rpm
rpm -F already-installed-package.2.0.rpm

是等价的,但是

rpm -U not-installed-package.2.0.rpm # will install
rpm -F not-installed-package.2.0.rpm # won't install

不是。

来自手册页:

rpm {-U|--upgrade} [install-options] PACKAGE_FILE ...

   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.

   rpm {-F|--freshen} [install-options] PACKAGE_FILE ...

   This will upgrade packages, but only ones for which an earlier version is installed.