Discussion:
file conflicts.
Nadav Hashimshony
2008-07-31 14:11:58 UTC
Permalink
i have two different rpm's that install the same file to a the same location
(i.e /etc/conf/somthing)
if one of the rpm is installed and i install the other (via yum install...)
i get the message:
Transaction Check Error: file /etc/somefile from install of
some_rpm-1.01.0002-1 conflicts with file from package other_rpm-1.00.0000-1

somefile is the same file in both of them (i may choose to install one or
both rpm's so i need it in both).

how can i avoid installing it again if it is already exists?
or have rpm "force" the installation (i dont want to use rpm --force)
because i use yum install ( i have my own repository).


Regards,
Nadav.
devzero2000
2008-08-01 07:48:07 UTC
Permalink
Post by Nadav Hashimshony
i have two different rpm's that install the same file to a the same
location (i.e /etc/conf/somthing)
if one of the rpm is installed and i install the other (via yum install...)
Transaction Check Error: file /etc/somefile from install of
some_rpm-1.01.0002-1 conflicts with file from package other_rpm-1.00.0000-1
somefile is the same file in both of them (i may choose to install one or
both rpm's so i need it in both).
how can i avoid installing it again if it is already exists?
or have rpm "force" the installation (i dont want to use rpm --force)
because i use yum install ( i have my own repository).
In rpm world is not possible to have two different rpm install the same
config file: it is likely that you have defined in both rpms SPEC file
%config /etc/conf/somthing. Think if the you rpm provide alternative
function o conflicting function and package it accordly, for example via
Provides: and Obsoletes: and so.

hth
Post by Nadav Hashimshony
Regards,
Nadav.
_______________________________________________
Rpm-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
Continue reading on narkive:
Loading...