我正在尝试在 RHEL7 上安装 RPM 包。我收到以下错误;
Fri Aug 30 05:36:55 UTC 2019--> Start Installing downloaded package...
file /etc/rc.d from install of abc.x86_64 conflicts with file from package chkconfig-1.7.4-1.el7.x86_64
file /etc/rc.d/init.d from install of abc.x86_64 conflicts with file from package chkconfig-1.7.4-1.el7.x86_64
file /etc/rc.d from install of abc.x86_64 conflicts with file from package initscripts-9.49.47-1.el7.x86_64
file /etc/rc.d/init.d from install of abc.x86_64 conflicts with file from package initscripts-9.49.47-1.el7.x86_64
file /usr/lib/systemd/system from install of abc.x86_64 conflicts with file from package systemd-219-67.el7_7.1.x86_64
file /usr/lib/systemd from install of abc.x86_64 conflicts with file from package systemd-219-67.el7_7.1.x86_64
这个错误到底是什么意思?这是否意味着 RPM abc 不允许进行任何更改/etc/rc.d
或者chkconfig-1.7.4-1.el7.x86_64
是一个有冲突的软件包?
答案1
两个rpm
包不能提供相同的文件或目录。因此:
不
这/etc/rc.d
将以递归方式打包目录和内容。
%files
/etc/rc.d
做
仅打包真正属于您的包的文件。
%files
/etc/rc.d/init.d/*