Allowing files to be overwritten by different packages
Fabricio Cannini
fcannini at gmail.com
Mon Nov 9 17:35:00 UTC 2015
On 06-11-2015 21:55, Florian Festi wrote:
> On 11/06/2015 11:19 PM, Fabricio Cannini wrote:
>> Hi there
>>
>> I'm having a problem making this work, when installing different
>> packages that write the same file at the same directory.
>> I've tried '%config' , '%config(noreplace)', but none worked.
>>
>> Is there anyway to make this work, or am I simply going against the
>> whole idea of rpm ?
>>
>> I'm using centos 6.5, rpm 4.8.0.
>
> There are ways to make this work, depending on what you want. One way is
> to make sure the file content and attributes are the same. This is how
> multilib packages work.
The file I'd like to overwrite changes exactly one line from version to
version.
> Another way is to declare the file %ghost and make it's content appear
> magically (e.g. by scriptlet).
Generate the whole file from e.g. '%post' is too much of work, but you
gave me an idea of another approach with '%ghost' that I don't need to
change the file contents. Thank you very much!
[ ]'s
More information about the Rpm-list
mailing list