Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
已生成带有 spec 文件的 rpm 包,其中使用 Requires(post) 指定安装后部分所需的工具。
那么如何从 rpm 包中获取 Requires(post) 工具列表呢?rpm -qp --whatrequires .rpm - 不列出任何工具
你正在混合--requires和--whatrequires。第一个将列出指定包所需的包,而第二个将告诉您哪些包需要给定包(或其他提供的元数据/文件)。
--requires
--whatrequires
你应该使用--requires