Re: How to use RPM for config file mainenance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, May 28, 2012 at 09:44:31AM +0200, Fred van Zwieten wrote:

> I have seen various "solutions" to this
> config-file-is-owned-by-two-packages problem, but I don't like them,
> so far. The most popular seem to be to install your own config files
> in a separate location and copy them to the correct location in the
> %post. This is no good.

This is not good no, as it is the wrong place to do it and it depends
on package install order and interferes with other packages updates.
The right thing to do this (IMHO) is to copy your files (or, better,
run edit scripts or apply pacthes to the config files) in RPM trigger
scripts.  These will always be executed at the right moment.

I have give presentations about using RPM for this purpose at a few
conferences in the past.  If you contact me off-list, I will mail you 
a PDF with the slides.

-- 
--    Jos Vos <jos@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux