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.
我可以生成一个 RPM 包,其中几个依赖项以一种选择的方式列出吗?我问的原因是,我的应用程序需要可扩展的 Mincho 风格的日文字体,而且看起来不同风格的基于 RPM 的 Linux 提供了不同的风格,没有共同点。我不想为不同的发行版创建不同的 RPM。
这就是虚拟提供的目的。例如,sendmail 包有一个“ Provides: smtp-daemon”,postfix 包也有。cron 包反过来只需要一个“ Requires: smtp-daemon”。这就是 OR 的实现方式。
Provides: smtp-daemon
Requires: smtp-daemon