RPM安装期间Chkconfig冲突

时间:2013-07-17 12:45:56

标签: 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中的文件冲突

1 个答案:

答案 0 :(得分:2)

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