我正在浏览rpm
的手册页,但可以得到rpm -F
和rpm -U
之间的确切差异。
有人可以帮我解决这个问题吗?
答案 0 :(得分:3)
-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
版本 安装。
rpm {-F|--freshen} [install-options] PACKAGE_FILE ... This will upgrade packages, but only ones for which an earlier version is installed.