【问题标题】:RPM failing to install on RHEL [closed]RPM 无法在 RHEL 上安装 [关闭]
【发布时间】:2019-08-30 09:54:09
【问题描述】:

我正在尝试在 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.dchkconfig-1.7.4-1.el7.x86_64 进行任何更改是冲突包?

【问题讨论】:

    标签: rpm rhel rhel7


    【解决方案1】:

    两个rpm 包不能提供相同的文件或目录。因此:

    不要

    这会递归地打包/etc/rc.d 目录和内容。

    %files
    /etc/rc.d
    

    只打包真正属于你的包的文件。

    %files
    /etc/rc.d/init.d/*
    

    【讨论】:

      猜你喜欢
      • 2012-01-04
      • 2012-01-05
      • 2021-06-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-04
      • 2018-05-04
      • 1970-01-01
      相关资源
      最近更新 更多