我有两个rpm软件包,不应该一起安装.
在谷歌搜索后我假设没有RequiresNot标签或类似的东西在specfile中指定不兼容的包.@H_403_2@
什么是防止将它们安装在一起的最佳解决方案?@H_403_2@
目前我正在使用rhel,但我更喜欢与rhel / yum无关的解决方案(eq使用:repo.conf中的exclude = packageA).@H_403_2@
有一个标签可以在spec文件中用于显式
disallow two conflicting packages to be installed:
原文链接:https://www.f2er.com/bash/385764.htmlThe conflicts Tag@H_403_2@
The conflicts tag is the logical complement to the requires tag. It is used to specify which packages conflict with the current package. RPM will not permit conflicting packages to be installed unless overridden with the –nodeps option.@H_403_2@
The conflicts tag has the same format as requires. It accepts a real or virtual package name and can optionally include version and release specifications or a serial number.@H_403_2@