README 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. aria2 - The high speed download utility
  2. 1. Disclaimer
  3. -------------
  4. This program comes with no warranty.
  5. You must use this program at your own risk.
  6. 2. About aria2
  7. --------------
  8. aria2 has segmented downloading engine in its core. By segmented downloading,
  9. it can download files very much faster than ordinary browsers.
  10. aria2 is in very early development stage. Currently it has following features:
  11. * HTTP/HTTPS GET support
  12. * HTTP Proxy support
  13. * HTTP BASIC authentication support
  14. * HTTP Proxy authentication support
  15. * FTP support(active, passive mode)
  16. * FTP through HTTP proxy(GET command or tunneling)
  17. * Segmented download
  18. * Cookie support
  19. * It can load cookies from file whose format is used by Netscape and Mozilla.
  20. * It can run as a daemon process.
  21. * BitTorrent protocol support with fast extension.
  22. * Selective download in multi-file torrent/metalink.
  23. * Metalink version 3.0 support(HTTP/FTP/BitTorrent).
  24. * Limiting download/upload speed.
  25. * Chunk checksum validation in Metalink.
  26. * netrc support.
  27. * Configuration file support.
  28. * Download URIs found in a text file or stdin.
  29. 3. How to build
  30. ---------------
  31. $ ./configure
  32. $ make
  33. The executable is aria2c in src directory.
  34. 4. Dependency
  35. -------------
  36. In order to enable HTTPS support, you need GNU TLS or OpenSSL.
  37. In order to enable BitTorrent support, you need GNU TLS+libgcrypt or OpenSSL.
  38. In order to enable Metalink support, you need libxml2. Optionally GNU TLS+
  39. libgcrypt or OpenSSL are required for checksum checking support(MD5, SHA1).
  40. GNU TLS has precedence over OpenSSL if both libraries are installed.
  41. If you prefer OpenSSL, run configure with "--without-gnutls".
  42. You can disable BitTorrent, Metalink support by providing --disable-bittorrent,
  43. --disable-metalink respectively to configure script.
  44. In order to enable async DNS support, you need c-ares or ares.
  45. c-ares: http://daniel.haxx.se/projects/c-ares/
  46. ares: ftp://athena-dist.mit.edu/pub/ATHENA/ares
  47. 5. BitTorrrent
  48. --------------
  49. The filename of the downloaded file is determined as follows:
  50. single-file mode:
  51. If "name" key is present in .torrent file, filename is the value of "name"
  52. key. Otherwise, filename is the basename of .torrent file appended by
  53. ".file". For example, .torrent file is "test.torrrent", then filename is
  54. "test.torrent.file".
  55. The directory to store the downloaded file can be specified by -d option.
  56. multi-file mode:
  57. The complete directory/file structure mentioned in .torrent file is
  58. created.
  59. The directory to store the top directory of downloaded files can be
  60. specified by -d option.
  61. In the default behavior, before download starts, complete directory structure
  62. is created if needed. Then aria2 opens all files mentioned in .torrent file,
  63. directly writes to and reads from these files.
  64. NOTE: Even in selective download, all files are opened.
  65. If "--direct-file-mapping" option set to be false, aria2 creates temporary
  66. file in the store directory. The length of this file is the sum of length of
  67. the files in .torrent file, so at least 2 times more disk space than the file
  68. size itself is required. Writing and reading is done against this file.
  69. After download completes, aria2 creates complete directory structure if needed,
  70. and copies whole file or a part of it to the destination.
  71. Note:
  72. * -o option is used to change the filename of downloaded .torrent file.
  73. * This version only supports compact peers list format.
  74. * The ports aria2c uses are 6881-6999.
  75. * The maximum number of peers is 55. This limit may be exceeded when download
  76. rate is low.
  77. * As of release 0.10.0, aria2 stops sending request message after selective
  78. download completes,
  79. 6. Metalink
  80. -----------
  81. The current implementation supports HTTP/FTP/BitTorrent.
  82. BitTorrent always has precedence over HTTP/FTP.
  83. The other P2P protocols are ignored.
  84. For checksum checking, both MD5 and SHA1 are supported. If both values are
  85. provided, then aria2 uses SHA1. If checksum checking is failed, aria2 doesn't
  86. retry the download and just exits with non-zero return code.
  87. The supported user preferences are version, language and os.
  88. If chunk checksums are provided in Metalink file, aria2 automatically validate
  89. a chunk of file while downloading it. This behavior can be turned off by
  90. a command-line option.
  91. 7. netrc
  92. --------
  93. netrc support is enabled by default in ftp.
  94. To disable netrc support, specify -n command-line option.
  95. Your .netrc file should have correct permissions(600).
  96. 8. Configuration file
  97. ---------------------
  98. Configuration file must be placed under ~/.aria2 and must be named as aria2.conf.
  99. In each line, there is 1 parameter whose syntax is name=value pair,
  100. where name is the long command-line option name without '--' prefix.
  101. The lines beginning '#' are treated as comments.
  102. Example:
  103. # sample configuration file for aria2c
  104. file-allocation=prealloc
  105. listen-port=60000
  106. seed-ratio=1.0
  107. max-upload-limit=40K
  108. ftp-pasv=true