Discussion:
Rpm-list Digest, Vol 53, Issue 5
jijun gao
2008-07-18 00:58:20 UTC
Permalink
you just place a copy of the shared file at other place
after you remove package C, you mv the copy to the orginal place
try it , I have no idea if it will work
1. handling removal of shared file (Victoria Muntean)
---------- ÒÑת·¢ÓÊŒþ ----------
Date: Thu, 17 Jul 2008 08:43:18 +0300
Subject: handling removal of shared file
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-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
Brian Reichert
2008-07-18 03:44:18 UTC
Permalink
Post by jijun gao
you just place a copy of the shared file at other place
after you remove package C, you mv the copy to the orginal place
try it , I have no idea if it will work
Review triggers.

http://www.rpm.org/support/RPM-Changes-6.html

Manage file with trigger scriptlets.
--
Brian Reichert <***@numachi.com>
55 Crystal Ave. #286 Daytime number: (603) 434-6842
Derry NH 03038-1725 USA BSD admin/developer at large
Loading...