title: Avoid yum error when a package is already installed
body: <p>I am using AWS Elastic Beanstalk on a Linux machine and need to install some fonts in .ebextensions:</p>
  
  <pre><code>container_commands:
    01_getfont: 
      command: sudo yum -y install http://somesite.com/rpm/webcore-fonts-3.0-1.noarch.rpm
  </code></pre>
  
  <p>That works well the 1st time, with the fonts installed.</p>
  
  <p>The 2nd time when I deploy the EB again, it now gave me this error:</p>
  
  <p>Application update failed at 2019-01-28T23:44:14Z with exit status 1 and error: container_command 01_getfont in .ebextensions/fonts.config failed.</p>
  
  <pre><code>Loaded plugins: priorities, update-motd, upgrade-helper
  Examining /var/tmp/yum-root-0Yx1DY/webcore-fonts-3.0-1.noarch.rpm: webcore-fonts-3.0-1.noarch
  /var/tmp/yum-root-0Yx1DY/webcore-fonts-3.0-1.noarch.rpm: does not update installed package.
  Error: Nothing to do. 
  </code></pre>
  
  <p>How do I avoid getting that errors when that package has been installed on the same EC2 instance the 2nd time?</p>