title: Linux : rpm -Uvh /rpms/* command not working as expected
body: <p>I wanted to upgrade some rpms in my Redhat/Linux based system. Some rpms might be already exist , some rpms are new to be installed and some rpms need to be upgrade to higher version using RPM upgrade command.</p>
  
  <p>For example :</p>
  
  <pre><code> I have placed rpms to be installed in folder &lt;rpms&gt;
        /rpms/X-1.rpm (This is already installed in system)
        /rpms/Y-1.rpm (This is NOT present in system. This is NEW)
        /rpms/Z-2.rpm (This is need to be upgraded to higher version available, 
                       Z-1.rpm is installed in system)
        /rpms/Q-1.rpm (This is already installed in system)
  </code></pre>
  
  <p>I am running below command in shell (.sh) file </p>
  
  <pre><code>$rpm -Uvh /rpms/*
  </code></pre>
  
  <p>It is showing below after execution</p>
  
  <pre><code>Preparing...            ################################### [100%]
      package X-1 is already installed
      package Q-1 is already installed
  </code></pre>
  
  <p>But it is not installing Y-1 and not able to upgrade to Z-2.</p>
  
  <p>Please let me know what is needed to be done with <code>-Uvh</code> command to make it work? What would be best possible solution for above scenario?</p>