在Requires字段中,CentOS RPM打包是否支持或依赖



我想知道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

最新更新