rpm -U 和 rpm -F 之间有什么区别

rpm -U 和 rpm -F 之间有什么区别

有点困惑。

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.

相关内容