title: File conflict error during rpm install
body: <p>I have two rpms xinstrument.rpm and xlog.rpm.
  First the xinstrument.rpm should be installed followed by the xlog.rpm.</p>
  
  <p>Both these rpms create and copy data into /opt/xinstrument-control/ directory.</p>
  
  <p>But problem is when we install the second rpm xlog.rpm then we get conflict errors</p>
  
  <pre><code>Preparing...                          ################################# [100%]
          file /opt/xinstrument-control from install of xlog_x86_64 conflicts with file from package xinstrument.x86_64
      .
      .
      .
      .
  </code></pre>
  
  <p>xinstrument.rpm when installed gives the following permission to the xinstrument-control directory</p>
  
  <pre><code># ls -l /opt/
  total 0
  drwxr-xr-x 1 root users 38 May 24 14:34 xinstrument-control
  </code></pre>
  
  <p>while xlog.rpm when installed gives the following permission to the xinstrument-control directory</p>
  
  <pre><code># ls -l /opt/
  total 16
  drwxr-xr-x 6 root sys  4096 May 16 05:43 xinstrument-control
  </code></pre>
  
  <p>Seeing the permissions and ownership of the directory is there any problem in it which is leading to conflict?
  What else might be the cause of the conflict and how to resolve it?</p>