加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-15 18:36:42 所属栏目:安全 来源:网络整理
导读:我有两个rpm软件包,不应该一起安装. 在谷歌搜索后我假设没有RequiresNot标签或类似的东西在specfile中指定不兼容的包. 什么是防止将它们安装在一起的最佳解决方案? 目前我正在使用rhel,但我更喜欢与rhel / yum无关的解决方案(eq使用:repo.conf中的exclude
我有两个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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读