Re: file conflicts.
devzero2000 <[email protected]> Fri, 1 Aug 2008 09:48:07 +0200
| Newsgroups | gmane.linux.redhat.rpm.general |
|---|---|
| Message-ID | <[email protected]> |
--===============0662906257== Content-Type: multipart/alternative; boundary="----=_Part_2447_2088907.1217576887025" ------=_Part_2447_2088907.1217576887025 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/7/31 Nadav Hashimshony <[email protected]> > 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). > 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 > > Regards, > Nadav. > > _______________________________________________ > Rpm-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/rpm-list > ------=_Part_2447_2088907.1217576887025 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <div dir="ltr"><br><div class="gmail_quote">2008/7/31 Nadav Hashimshony <span dir="ltr"><<a href="mailto:[email protected]">[email protected]</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div dir="ltr">i have two different rpm's that install the same file to a the same location (i.e /etc/conf/somthing)<br>if one of the rpm is installed and i install the other (via yum install...)<br>i get the message:<br> 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<br><br>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).<br> <br>how can i avoid installing it again if it is already exists?<br>or have rpm "force" the installation (i dont want to use rpm --force) because i use yum install ( i have my own repository).</div></blockquote> <div><br>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.<br> <br>hth<br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><br><br>Regards,<br> Nadav.<br></div> <br>_______________________________________________<br> Rpm-list mailing list<br> <a href="mailto:[email protected]">[email protected]</a><br> <a href="https://www.redhat.com/mailman/listinfo/rpm-list" target="_blank">https://www.redhat.com/mailman/listinfo/rpm-list</a><br></blockquote></div><br></div> ------=_Part_2447_2088907.1217576887025-- --===============0662906257== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Rpm-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rpm-list --===============0662906257==--