2

I am getting following error while installing rpm created by netflix nebula:

yum localinstall demo-daemon-0:0.0.1-1.noarch

Transaction check error:

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

OS details:

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
muru
  • 4,723
  • 1
  • 34
  • 78
Amit
  • 155
  • 2
  • 8
  • you can edit existing rpm using rpmrebuild utility. using rpmrebuild -pe . then delete the %dir conflicting entries. – Amit Mar 17 '17 at 10:42

1 Answers1

1

You don't own /etc/rc.d/, /etc/rc.d/init.d/, etc. Take them out of the %files listing in the specfile and only list the files you actually provided.

Aaron D. Marasco
  • 6,506
  • 3
  • 26
  • 39