fedora - RPM 安装期间 Chkconfig 冲突

标签 fedora rpm

我使用 .rpm。我已经为 glassfish 制作了 rpm

我的模板文件是

Summary: GlassFish
Name: redsky-glassfish
Version: @VERSION@
Release: @RELEASE@
License: Proprietary
Group: Applications/System
Buildroot: %{_topdir}/%{name}-%{version}-root
BuildArch: x86_64

Requires: jdk
Conflicts: java-1.7.0-openjdk

%description

%preun

%install
rm -fr ${RPM_BUILD_ROOT}
mkdir ${RPM_BUILD_ROOT}
cp -r ${RPM_BUILD_DIR}/* ${RPM_BUILD_ROOT}

%post

%postun
#0 = uninstall, 1 = upgrade
if [ "$1" == "0" ]; then
    rm -fr /opt/glassfish/
fi

%files
/*

安装过程中出现错误

glassfish-development-1095.x86_64 安装中的文件/etc/init.d 与包 chkconfig-1.3.49.3-2.el6.x86_64 中的文件冲突

最佳答案

您的 %files 部分只需列出您的文件。您不拥有 /etc/init.dchkconfig 拥有。

关于fedora - RPM 安装期间 Chkconfig 冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17700135/

相关文章:

linux - Rpm 安装错误,libstdc++-4.4.4-13.el6

fedora - Fedora 21下如何设置默认窗口管理器?

linux - google-earth-stable-7.1.2.2041-0.x86_64 与包 filesystem-3.2-13.fc19.x86_64 中的文件冲突

git - 致命 : Interactive git shell is not enabled. 收到致命消息:交互式 git shell 未启用

c++ - 无法在 Fedora 上连接冰淇淋 (icecc)

swift - 在 Linux 上的文件中声明的模块 Swift 项目

linux - 创建二进制包以在 Linux 中分发所需的步骤

linux - 需要在没有互联网连接的情况下在 docker 容器中安装 rpm 包

linux - 由于 librpmio.so 导致 Lua API 符号冲突

centos - Vagrant - 缓存 RPM 以加快配置速度