作为软件包安装和删除的一部分,RPM 软件包可能包含 rpm 命令应该运行的脚本。
其中包括安装前和安装后脚本,以及卸载前和卸载后脚本。
这些脚本可以执行选项,例如根据目标环境自动配置应用程序。
下表总结了这些选项。
选项 | 用法 |
---|---|
-nopre | 跳过预安装脚本。 |
-nopost | 跳过安装后脚本。 |
-nopreun | 跳过预卸载脚本。 |
-nopostun | 跳过卸载后脚本。 |
-noscripts | 跳过所有脚本;与 -nopre, -nopost, -nopreun 和 -nopostun 相同。 |
在安装过程中,我们可以告诉 rpm 命令不执行所有触发器或者不执行某些触发器。
-notriggers 选项告诉 rpm 命令跳过所有触发器。
选项 | 用法 |
---|---|
-notriggerin | 跳过安装触发器。 |
-notriggerun | 跳过卸载触发器。 |
-notriggerpostun | 跳过卸载后触发器。 |
-notriggers | 跳过所有触发器;同 -notriggerin, %26#8212;不触发,和 %26#8212;不触发。 |
日期:2020-09-17 00:14:53 来源:oir作者:oir