title: Yum install command not executing from system command in perl
body: <p>I am trying to install a Linux RPM using <code>system("yum -y install MyRPM.rpm");</code> in a Perl script.</p>
  
  <p>The problem I am facing is:</p>
  
  <ul>
  <li>The system command gets executed.</li>
  <li>It starts installing the RPM</li>
  <li>Then, just after the line "running transaction". The script hangs. </li>
  </ul>
  
  <p>Output:</p>
  
  <pre><code>Running Transaction Test
  Transaction Test Succeeded
  Running Transaction
  </code></pre>
  
  <p>No output after this line and script hangs.</p>
  
  <p>Usually after this line, if I run <code>yum install</code> from the terminal it displays:</p>
  
  <pre><code>Installing : myRPM [#################################]
  </code></pre>
  
  <p>But my Perl script hangs at this line.</p>
  
  <p>To solve this, I wrote a bash script to perform the RPM installation  and in turn calling it in my perl script. But at the point where the bash script is called and starts executing the yum install command, the script hangs. On the other hand, if I execute the bash script as a standalone script it does the installation smoothly. I have no idea why the perl script  gets stuck in between the yum install.</p>
  
  <p>I would really appreciate some help on this.</p>