1

My understanding from everything I read about spec files is that the Requires(post) statement would make it so any library following it would not be required until after the installation has finished. It doesn't seem to be the case. Am I misunderstanding this command?

My main objective is to download another rpm in the %pre section and then require it later so that it will install it from the local copy. If there is another way to go about this than what I am doing, I would greatly appreciate the help?

4

2 回答 2

2

Requires(post)标签告诉 rpm 您的软件包需要在您的 RPM 脚本可以运行之前安装%post该软件包(可能是因为您以某种方式在脚本中依赖该软件包中的文件%post)。

这用于在事务中订购包安装。

据我所知(并且我相信 yum 的详细调试输出将证实这一点)在交易开始之前组装所需的全套信息包,而不是在安装包时随意组装。

因此,正如我在评论中指出的那样,除了这里的所有其他内容,我不相信您可以交易为交易提供包。

于 2014-10-31T18:53:39.463 回答
0

您不能从 RPM 安装另一个 RPM。数据库将被锁定。将它们放在同一个 yum 存储库中,然后yum确保它们都已安装(如果您有它们相互需要)。

于 2014-11-22T15:27:36.540 回答