【发布时间】:2017-07-28 23:34:21
【问题描述】:
安装由 netflix nebula 创建的 rpm 时出现以下错误:
yum localinstall demo-daemon-0:0.0.1-1.noarch
交易检查错误:
file /etc/rc.d from install of demo-daemon-0:0.0.1-1.noarch conflicts with file from package chkconfig-1.7.2-1.el7.x86_64
file /etc/rc.d/init.d from install of demo-daemon-0:0.0.1-1.noarch conflicts with file from package chkconfig-1.7.2-1.el7.x86_64
file /etc/rc.d from install of demo-daemon-0:0.0.1-1.noarch conflicts with file from package initscripts-9.49.37-1.el7.x86_64
file /etc/rc.d/init.d from install of demo-daemon-0:0.0.1-1.noarch conflicts with file from package initscripts-9.49.37-1.el7.x86_64
操作系统详情:
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-229.14.1.el7.x86_64
Architecture: x86-64
【问题讨论】:
-
您可以使用 rpmrebuild 实用程序编辑现有的 rpm。使用 rpmrebuild -pe 。然后删除 %dir 冲突条目。