我正在浏览 rpm
的手册页,但可以获得 rpm -F
和 rpm -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.
关于unix - rpm -F 和 rpm -U 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37699704/