You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.7 KiB

3 years ago
  1. <h1 id="verify">Verify the integrity of the files<a class="headerlink" href="#verify" title="Permanent link">&para;</a></h1>
  2. <p>It is essential that you verify the integrity of the downloaded file using
  3. the PGP signature (<code>.asc</code> file) or a hash (<code>.md5</code> or <code>.sha*</code> file). Please read <a href="/info/verification.html">Verifying Apache Software
  4. Foundation Releases</a> for more information on why
  5. you should verify our releases.</p>
  6. <p>The PGP signature can be verified using PGP or GPG. First download the
  7. <code>KEYS</code> as well as the <code>asc</code> signature file for the relevant distribution.
  8. Make sure you get these files from the main distribution site, rather than
  9. from a mirror. Then verify the signatures using</p>
  10. <div class="codehilite"><pre><span class="c">% gpg --import KEYS</span>
  11. <span class="c">% gpg --verify downloaded_file.asc downloaded_file</span>
  12. </pre></div>
  13. <p><em>or</em></p>
  14. <div class="codehilite"><pre><span class="c">% pgpk -a KEYS</span>
  15. <span class="c">% pgpv downloaded_file.asc</span>
  16. </pre></div>
  17. <p><em>or</em></p>
  18. <div class="codehilite"><pre><span class="c">% pgp -ka KEYS</span>
  19. <span class="c">% pgp downloaded_file.asc</span>
  20. </pre></div>
  21. <p>Alternatively, you can verify the MD5 hash on the file. A unix
  22. program called <code>md5</code> or <code>md5sum</code> is included in many unix distributions. It
  23. is also available as part of
  24. <a href="http://www.gnu.org/software/textutils/textutils.html">GNU Textutils</a>.
  25. Windows users can get binary md5 programs from
  26. <a href="http://www.fourmilab.ch/md5/">here</a>,
  27. <a href="http://www.pc-tools.net/win32/freeware/console/">here</a> , or
  28. <a href="http://www.slavasoft.com/fsum/">here</a>.</p>