title: how to ensure yum install was successful in a shell script?
body: <p>I have a shell script which checks if there is an internet connection (by pinging google), and then calls </p>
  
  <pre><code>yum install packageA packageB --assumeyes
  </code></pre>
  
  <p>How would I confirm that the packages were installed (or were already installed)?  Do I make another yum call and parse the output (I presume this gets very complicated if the system is in another language)?</p>