![rpm -U 和 rpm -F 之间有什么区别](https://linux22.com/image/674210/rpm%20-U%20%E5%92%8C%20rpm%20-F%20%E4%B9%8B%E9%97%B4%E6%9C%89%E4%BB%80%E4%B9%88%E5%8C%BA%E5%88%AB.png)
有点困惑。
rpm -U
和有什么区别rpm -F
手册页说 -U 升级包
-F, --freshen=+ 如果已安装,则升级包
答案1
比较
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.