Discussion:
handling removal of shared file
Victoria Muntean
2008-07-17 05:43:18 UTC
Permalink
[cross post rpm-***@redhat.com, usenet group linux.redhat.rpm ]

I have 3 specfiles for 3 [somehow related] packages, A, B, C.
All 3 specfiles include 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
<rpm-***@redhat.co>
devzero2000
2008-07-21 08:01:53 UTC
Permalink
Post by Victoria Muntean
I have 3 specfiles for 3 [somehow related] packages, A, B, C.
All 3 specfiles include 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.
I my humble opinion it is a bad RPM practice to have +1 package with the
same config file. In effect i am pretty sure you haven't marked them in the
SPEC as %config,
because the RPM rule will not permit the installation of the second RPM. So
the beaviour you describe
it is not due to RPM.

JMHO, YMMV
Post by Victoria Muntean
Viki
_______________________________________________
Rpm-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
Carter Sanders
2008-07-21 20:37:08 UTC
Permalink
_______________________________________________
Rpm-list mailing list
Rpm-***@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list

Loading...