I'm trying to install libvirt to /opt/libvirt, in order to test a patch I've worked into the current release, but it seems RPM is ignoring the --prefix command.<div><br></div><div>The RPM I built has "Prefix: /opt/libvirt" in the spec, and correctly shows as relocatable by RPM...</div>
<div><br></div><div><div># rpm -qpi libvirt-0.8.1-27.el6.6.x86_64.rpm </div><div>Name        : libvirt                      Relocations: /opt/libvirt </div><div>Version     : 0.8.1                             Vendor: (none)</div>
<div>Release     : 27.el6.6                      Build Date: Fri 09 Sep 2011 07:30:28 PM CDT</div><div>Install Date: (not installed)               Build Host: <a href="http://itsclinuxdev.tamu.edu">itsclinuxdev.tamu.edu</a></div>
<div>Group       : Development/Libraries         Source RPM: libvirt-0.8.1-27.el6.6.src.rpm</div><div>Size        : 2538412                          License: LGPLv2+</div><div>Signature   : (none)</div><div>URL         : <a href="http://libvirt.org/">http://libvirt.org/</a></div>
<div>Summary     : Library providing a simple API virtualization</div><div>Description :</div><div>Libvirt is a C toolkit to interact with the virtualization capabilities</div><div>of recent versions of Linux (and other OSes). The main package includes</div>
<div>the libvirtd server exporting the virtualization support.</div></div><div><br></div><div><br></div><div>However when I issue the RPM command it will throw errors about conflicting with the current install of libvirt.</div>
<div><br></div><div><div># rpm -ivh --prefix /opt/libvirt libvirt-client-0.8.1-27.el6.6.x86_64.rpm Preparing...                ########################################### [100%]</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>file /usr/lib64/libvirt.so.0.8.1 from install of libvirt-client-0.8.1-27.el6.6.x86_64 conflicts with file from package libvirt-client-0.8.1-27.el6_0.6.x86_64</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>file /usr/share/man/man1/virsh.1.gz from install of libvirt-client-0.8.1-27.el6.6.x86_64 conflicts with file from package libvirt-client-0.8.1-27.el6_0.6.x86_64</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>file /usr/share/man/man1/virt-pki-validate.1.gz from install of libvirt-client-0.8.1-27.el6.6.x86_64 conflicts with file from package libvirt-client-0.8.1-27.el6_0.6.x86_64</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>file /usr/share/man/man1/virt-xml-validate.1.gz from install of libvirt-client-0.8.1-27.el6.6.x86_64 conflicts with file from package libvirt-client-0.8.1-27.el6_0.6.x86_64</div>
</div><div><br></div><div>The patch I worked into libvirt is here, <a href="http://www.redhat.com/archives/libvir-list/2010-July/msg00480.html">http://www.redhat.com/archives/libvir-list/2010-July/msg00480.html</a> (not my posting), to add ESXi and ESX 4.1 support , in my case to virt-v2v.  I'd like to install it without possibly breaking my current install of libvirt and just use the patched virt-v2v binary.</div>
<div><br></div><div>As a side note, where should I direct my patch to possibly have it put into the official centos release?  I had to slightly modify what was posted in the above link to make it work with 0.8.1.</div><div>
<br></div><div>Thanks</div><div>- Trey</div><div><br></div><div><br></div>