Discussion:
handling removal of shared file
(too old to reply)
viki
2008-07-17 05:14:52 UTC
Permalink
I have 3 specfiles for 3 packages, A, B, C. These packages are
related, and
all 3 specfiles have same configfile /etc/abc_common.cfg.
When I remove package C, rpm -e removes file /etc/abc_common.cfg,
even though A and B are still installed. This breaks packages A and B.

How to make rpm keep shared file until last package that uses it is
removed ?

Thanks
Viki
Nico Kadel-Garcia
2008-07-19 00:18:28 UTC
Permalink
Post by viki
I have 3 specfiles for 3 packages, A, B, C. These packages are
related, and
all 3 specfiles have same configfile /etc/abc_common.cfg.
When I remove package C, rpm -e removes file /etc/abc_common.cfg,
even though A and B are still installed. This breaks packages A and B.
How to make rpm keep shared file until last package that uses it is
removed ?
Thanks
Viki
Explain in the spec file that it is a '%config' file.

Loading...