Confused about %config file section directive
russell cecala
russell_cecala at yahoo.com
Tue Jun 1 23:01:14 UTC 2010
Hi,
I want to create two RPMs. The first RPM install apache and I call it my-apache.rpm and a second my-apache-config.rpm. my-apache.rpm installs apache and my-apache-config.rpm adds some files like /usr/local/apache/conf/extra/my.conf but I also want it to overwrite my-apache.rpm's /usr/local/apache/conf/httpd.conf with a custom httpd.conf
In my-apache.spec I used these lines:
%files
...
%config /apps/SD/apache/conf/httpd.conf
but when I attempt to install the RPM via YUM I get an error
Transaction Check Error:
file /usr/local/apache/conf/httpd.conf from install of my-apache-config conflicts with file from package my-apache
I tried not using the %config directive and had the same result. How can I specify in my spec file that it is OK to overwrite a file?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20100601/b8317d2d/attachment-0001.html>
More information about the Rpm-list
mailing list