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.

67 lines
3.6 KiB

2 years ago
  1. <p>[if-any logo] <a href="[link]"><img alt="[logo]" src="[logo]" /></a> [end] We suggest the following mirror
  2. site for your download:</p>
  3. <p><a href="[preferred][path_info]"><strong>[preferred][path_info]</strong></a> </p>
  4. <p>Other mirror sites are suggested below.</p>
  5. <p>It is essential that you <a href="#verify">verify the integrity</a> of the downloaded file using
  6. the PGP signature (<code>.asc</code> file) or a hash (<code>.md5</code> or <code>.sha*</code> file).</p>
  7. <p>Please only use the backup mirrors to download KEYS, PGP signatures and hashes (SHA* etc)
  8. -- or if no other mirrors are working.</p>
  9. <p>[if-any http]</p>
  10. <h1 id="http">HTTP<a class="headerlink" href="#http" title="Permanent link">&para;</a></h1>
  11. <p>[for http] <a href="[http][path_info]"><strong>[http][path_info]</strong></a> <br></br>[end]</p>
  12. <p>[end]</p>
  13. <p>[if-any ftp]</p>
  14. <h1 id="ftp">FTP<a class="headerlink" href="#ftp" title="Permanent link">&para;</a></h1>
  15. <p>[for ftp] <a href="[ftp][path_info]"><strong>[ftp][path_info]</strong></a> <br></br>[end]</p>
  16. <p>[end]</p>
  17. <h1 id="backup">Backup Sites<a class="headerlink" href="#backup" title="Permanent link">&para;</a></h1>
  18. <p>Please only use the backup mirrors to download KEYS, PGP signatures and hashes (SHA* etc)
  19. -- or if no other mirrors are working.</p>
  20. <p>[if-any backup] [for backup] <a href="[backup][path_info]"><strong>[backup][path_info]</strong></a> <br></br>[end] [end]</p>
  21. <p>The <a href="http://www.apache.org/mirrors/">full listing of mirror sites</a> is also
  22. available.</p>
  23. <h1 id="become">Becoming a mirror<a class="headerlink" href="#become" title="Permanent link">&para;</a></h1>
  24. <p>The procedure for setting up new mirrors is described in <a href="http://www.apache.org/info/how-to-mirror.html">How to become a
  25. mirror</a>.</p>
  26. <h1 id="verify">Verify the integrity of the files<a class="headerlink" href="#verify" title="Permanent link">&para;</a></h1>
  27. <p>It is essential that you verify the integrity of the downloaded file using
  28. 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
  29. Foundation Releases</a> for more information on why
  30. you should verify our releases.</p>
  31. <p>The PGP signature can be verified using PGP or GPG. First download the
  32. <code>KEYS</code> as well as the <code>asc</code> signature file for the relevant distribution.
  33. Make sure you get these files from the main distribution site, rather than
  34. from a mirror. Then verify the signatures using</p>
  35. <div class="codehilite"><pre><span class="c">% gpg --import KEYS</span>
  36. <span class="c">% gpg --verify downloaded_file.asc downloaded_file</span>
  37. </pre></div>
  38. <p><em>or</em></p>
  39. <div class="codehilite"><pre><span class="c">% pgpk -a KEYS</span>
  40. <span class="c">% pgpv downloaded_file.asc</span>
  41. </pre></div>
  42. <p><em>or</em></p>
  43. <div class="codehilite"><pre><span class="c">% pgp -ka KEYS</span>
  44. <span class="c">% pgp downloaded_file.asc</span>
  45. </pre></div>
  46. <p>Alternatively, you can verify the hash on the file.</p>
  47. <p>Hashes can be calculated using GPG:</p>
  48. <div class="codehilite"><pre><span class="c">% gpg --print-md SHA256 downloaded_file</span>
  49. </pre></div>
  50. <p>The output should be compared with the contents of the SHA256 file.
  51. Similarly for other hashes (SHA512, SHA1, MD5 etc) which may be provided.</p>
  52. <p>Windows 7 and later systems should all now have certUtil:</p>
  53. <div class="codehilite"><pre><span class="c">% certUtil -hashfile pathToFileToCheck [HashAlgorithm]</span>
  54. </pre></div>
  55. <p>HashAlgorithm choices: MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512</p>
  56. <p>Unix-like systems (and macOS) will have a utility called
  57. md5, md5sum or shasum</p>