Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Document a wget command that actually works today.

...

No Format
wget -np -r https://repository.apache.org/content/repositories/orgapachecommons-098/org/apache/commons/commons-foo/1.1/

Here is a specific example (used for commons-io 2.1 on 7 October 2011), where you must turn off robots.txt and accept a self-signed certificate:

No Format

wget -r -l 1 -np -nH -nd -nv -e robots=off --wait 10 --no-check-certificate https://repository.apache.org/content/repositories/orgapachecommons-027/commons-io/commons-io/2.1/

For the curious:

  • -r recursive
  • -l 1 1 level
  • -np no parent
  • -nH don't create host directories
  • -nd don't create directories
  • -nv quiet
  • -e robots=off ignore robots.txt
  • --wait 10 wait between retrievals

Check the MD5/SHA hashes!

...