yum – 如何防止安装不兼容的rpm包

前端之家收集整理的这篇文章主要介绍了yum – 如何防止安装不兼容的rpm包前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有两个rpm软件包,不应该一起安装.

在谷歌搜索后我假设没有RequiresNot标签或类似的东西在specfile中指定不兼容的包.

什么是防止将它们安装在一起的最佳解决方案?

目前我正在使用rhel,但我更喜欢与rhel / yum无关的解决方案(eq使用:repo.conf中的exclude = packageA).

有一个标签可以在spec文件中用于显式 disallow two conflicting packages to be installed

The conflicts Tag

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.

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.

原文链接:https://www.f2er.com/bash/385764.html

猜你在找的Bash相关文章