我想知道CentOS是否支持任何或包依赖项或Virtual Providers。在Ubuntu上,很容易在Depends字段中添加或依赖项,但这可以在CentOS中完成吗?
Ubuntu或依赖项:
TestPackage
Depends: packageA | packageB
Ubuntu也可以使用虚拟提供:
packageA
Provides: packageAB
packageB
Provides: packageAB
TestPackage
Requires: packageAB
这两者都可以在CentOS上使用吗?
AFAIKrpm
不支持依赖项中的或。它确实支持虚拟包。在规范文件中,这看起来与您展示的一模一样:
包装A.规格:
Provides: packageAB
包装B.规格:
Provides: packageAB
TestPackage.spec:
Requires: packageAB