title: rpm yum install : how to put conflicts on an already installed package?
body: <p>I'm trying to stop installation of an rpm if I have a particular version of a package already installed.</p>
  
  <p>Say I have 2 packages <strong>A-7.1.1.rpm &amp; Main_package-1.0.rpm</strong> to be installed.</p>
  
  <p>And I've A-1.4.0.rpm already installed on the machine. So what I want to achieve is that, if the installed version of A &lt; 7.1.0 then upgrade of Main_package should not happen.  </p>
  
  <p>I tried to put Conflicts tag in the spec file of Main_package as follows.<br>
  <strong>Conflicts : A &lt; 7.1.0</strong><br>
  And executed <code>yum install *.rpm</code></p>
  
  <p>Here yum finds a latest version of package 'A' in the directory (ie, A-7.1.1.rpm), it doesn't conflict. What I want to check is, if the machine has a particular version of package A.</p>
  
  <p>I could not find any other tags that I can use within the spec file.<br>
  Is there any way I can achieve this?</p>
  
  <p>Note: I can't have this check inside a script which then invokes <code>yum install *.rpm</code>  </p>
  
  <p>I can execute only <code>yum install *.rpm</code>, nothing else.</p>