gpt4 book ai didi

linux - CentOS RPM 打包是否支持或依赖 Requires 字段?

转载 作者:太空宇宙 更新时间:2023-11-03 17:18:21 25 4
gpt4 key购买 nike

我想知道 CentOS 是否支持任何 组件依赖或虚拟提供。在 Ubuntu 上,很容易将 依赖项添加到 Depends 字段中,但在 CentOS 中可以这样做吗?

Ubuntu 或依赖:

TestPackage
Depends: packageA | packageB

Ubuntu 也可以使用 Virtual Provides:

packageA 
Provides: packageAB

packageB
Provides: packageAB

TestPackage
Requires: packageAB

这两个都可以在 CentOS 上使用吗?

最佳答案

AFAIK rpm 确实 支持依赖项中的。它确实支持虚拟包。在规范文件中,这看起来与您展示的完全一样:

packageA.spec:

Provides: packageAB

packageB.spec:

Provides: packageAB

测试包.spec:

Requires: packageAB

关于linux - CentOS RPM 打包是否支持或依赖 Requires 字段?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58526538/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com