title: CentOS yum fails to install rpm - Package does not match intended download [Errno 256]
body: <p><strong>Error message:</strong></p>
  
  <blockquote>
    <p>Downloading Packages:
    <a href="http://myserver/pulp/repos/test/el6/x86_64/dev/mypackage.2.0.0.noarch.rpm" rel="nofollow noreferrer">http://myserver/pulp/repos/test/el6/x86_64/dev/mypackage.2.0.0.noarch.rpm</a>: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=test clean metadata</p>
    
    <p>Trying other mirror.
    Error Downloading Packages:
      mypackage.2.0.0.noarch: failure: mypackage.2.0.0.noarch.rpm from myrepo: [Errno 256] No more mirrors to try.</p>
  </blockquote>
  
  <p><strong>Fixed by removing old package and installing the new one:</strong></p>
  
  <pre><code>yum clean all
  yum remove mypackage.1.0.0.noarch
  wget http://myserver/pulp/repos/test/el6/x86_64/dev/mypackage.2.0.0.noarch.rpm
  yum install mypackage.2.0.0.noarch.rpm
  </code></pre>