2

如何检测 rpm 包安装的安装后部分代码是否失败?

我有一堆 rpm 包,想在安装后部分找到失败的包。安装后意味着,spec 文件的 post 部分中的 bash 脚本。

4

1 回答 1

1

The rpm database doesn't store the exit status of the scripts. The only way to know if it failed is at install time, the rpm command exits with the status of the scripts it ran.

于 2011-11-24T01:20:33.643 回答