Re: Allowing files to be overwritten by different packages

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

 



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
_______________________________________________
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