README 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. aria2 - The ultra fast download utility
  2. =======================================
  3. :Author: Tatsuhiro Tsujikawa
  4. :Email: tujikawa_at_users_dot_sourceforge_dot_net
  5. Disclaimer
  6. ----------
  7. This program comes with no warranty.
  8. You must use this program at your own risk.
  9. Introduction
  10. ------------
  11. aria2 is a utility for downloading files. The supported protocols are HTTP(S),
  12. FTP, BitTorrent, and Metalink.
  13. It can download a file from multiple sources/protocols and tries to utilize
  14. your maximum download bandwidth.
  15. It supports downloading a file from HTTP(S)/FTP and BitTorrent at the same time,
  16. while the data downloaded from HTTP(S)/FTP is uploaded to the BitTorrent swarm.
  17. Using Metalink's chunk checksums, aria2 automatically validates chunks of data
  18. while downloading a file like BitTorrent.
  19. Here is a list of features.
  20. * Command-line interface
  21. * Download files through HTTP(S)/FTP/BitTorrent
  22. * Segmented downloading
  23. * Metalink version 3.0 support(HTTP/FTP/BitTorrent)
  24. * HTTP/1.1 implementation
  25. * HTTP Proxy support
  26. * HTTP BASIC authentication support
  27. * HTTP Proxy authentication support
  28. * HTTP gzip, deflate content encoding support
  29. * Chunked transfer encoding support
  30. * Load Cookies from file using the Firefox3 format and the Mozilla/Firefox
  31. (1.x/2.x)/Netscape format.
  32. * Custom HTTP Header support
  33. * Persistent Connections support
  34. * FTP through HTTP Proxy
  35. * Download/Upload speed throttling
  36. * BitTorrent extensions: Fast extension, DHT, PEX, MSE/PSE, Multi-Tracker
  37. * Run as a daemon process.
  38. * Selective download in multi-file torrent/Metalink
  39. * Chunk checksum validation in Metalink
  40. * Can disable segmented downloading in Metalink
  41. * Netrc support
  42. * Configuration file support
  43. * Download URIs found in a text file or stdin
  44. * Parameterized URI support
  45. Dependency
  46. ----------
  47. .External Library Dependency
  48. [frame="all", grid="all"]
  49. `--------------------`---------------------------
  50. features dependency
  51. -------------------------------------------------
  52. HTTPS GnuTLS or OpenSSL
  53. BitTorrent GnuTLS+Libgcrypt or OpenSSL
  54. Metalink libxml2 or Expat.
  55. Checksum GnuTLS+Libgcrypt or OpenSSL
  56. gzip, deflate in HTTP zlib
  57. Firefox3 cookie libsqlite3
  58. -------------------------------------------------
  59. Note;;
  60. GNU TLS has precedence over OpenSSL if both libraries are installed.
  61. If you prefer OpenSSL, run configure with "--without-gnutls".
  62. Note;;
  63. libxml2 has precedence over Expat if both libraries are installed.
  64. If you prefer Expat, run configure with "--without-libxml2".
  65. You can disable BitTorrent, Metalink support by providing --disable-bittorrent,
  66. --disable-metalink respectively to configure script.
  67. In order to enable async DNS support, you need c-ares or ares.
  68. * c-ares: http://daniel.haxx.se/projects/c-ares/
  69. * ares: ftp://athena-dist.mit.edu/pub/ATHENA/ares
  70. How to build
  71. ------------
  72. In order to build aria2 from the source package, you need following development
  73. packages(package name may vary depending on the distribution you use):
  74. * libgnutls-dev (Required for HTTPS, BitTorrent, Checksum support)
  75. * libgpg-error-dev (Required for BitTorrent, Checksum support)
  76. * libgcrypt-dev (Required for BitTorrent, Checksum support)
  77. * libares-dev (Required for async DNS support)
  78. * libxml2-dev (Required for Metalink support)
  79. * libz1g-dev (Required for gzip, deflate decoding support in HTTP)
  80. * libsqlite3-dev (Required for Firefox3 cookie support)
  81. You can use libssl-dev instead of libgnutls-dev,libgpg-error-dev,libgcrypt-dev:
  82. * libssl-dev (Required for HTTPS, BitTorrent, Checksum support)
  83. You can use libexpat1-dev instead of libxml2-dev:
  84. * libexpat1-dev (Required for Metalink support)
  85. The build process is fairly standard way for *nix programs:
  86. -------------
  87. $ ./configure
  88. $ make
  89. -------------
  90. The executable is aria2c in src directory.
  91. aria2 uses CppUnit for automated unit testing. To run run the unit test:
  92. ------------
  93. $ make check
  94. ------------
  95. BitTorrrent
  96. -----------
  97. About filename
  98. ~~~~~~~~~~~~~~
  99. The filename of the downloaded file is determined as follows:
  100. single-file mode::
  101. If "name" key is present in .torrent file, filename is the value of "name"
  102. key. Otherwise, filename is the basename of .torrent file appended by
  103. ".file". For example, .torrent file is "test.torrrent", then filename is
  104. "test.torrent.file".
  105. The directory to store the downloaded file can be specified by -d option.
  106. multi-file mode::
  107. The complete directory/file structure mentioned in .torrent file is
  108. created.
  109. The directory to store the top directory of downloaded files can be
  110. specified by -d option.
  111. In the default behavior, before download starts, complete directory structure
  112. is created if needed. By default, aria2 opens at most 100 files mentioned in
  113. .torrent file, directly writes to and reads from these files. The number of
  114. files to open can be controlled by "--bt-max-open-files" option.
  115. If "--direct-file-mapping" option set to be false, aria2 creates temporary
  116. file in the store directory. The length of this file is the sum of length of
  117. the files in .torrent file, so at least 2 times more disk space than the file
  118. size itself is required. Writing and reading is done against this file.
  119. After download completes, aria2 creates complete directory structure if needed,
  120. and copies whole file or a part of it to the destination.
  121. DHT
  122. ~~~
  123. As of release 0.13.0, aria2 supports DHT. The routing table is saved to $HOME/.aria2/dht.dat.
  124. Note;;
  125. * -o option is used to change the filename of .torrent file itself, not a
  126. filename of a file in .torrent file.
  127. * The port numbers that aria2 uses by default are 6881-6999 for TCP and UDP.
  128. * aria2 doesn't configure port-forwarding automatically. Please configure your
  129. router or firewall manually.
  130. * The maximum number of peers is 55. This limit may be exceeded when download
  131. rate is low.
  132. * As of release 0.10.0, aria2 stops sending request message after selective
  133. download completes,
  134. Metalink
  135. --------
  136. The current implementation supports HTTP/FTP/BitTorrent.
  137. The other P2P protocols are ignored.
  138. For checksum checking, MD5, SHA1, SHA256 are supported. If multiple hash
  139. algorithms are provided, aria2 uses SHA1. If checksum checking is failed, aria2
  140. doesn't retry the download and just exits with non-zero return code.
  141. The supported user preferences are version, language, location, protocol and
  142. os.
  143. If chunk checksums are provided in Metalink file, aria2 automatically validate
  144. a chunk of file while downloading it. This behavior can be turned off by
  145. a command-line option.
  146. If signature is included in a Metalink file, aria2 saves it as a file after the
  147. download completed.
  148. The filename is download filename + ".sig". If same file already exists, the
  149. signature file is not saved.
  150. netrc
  151. -----
  152. netrc support is enabled by default in ftp.
  153. To disable netrc support, specify -n command-line option.
  154. Your .netrc file should have correct permissions(600).
  155. Configuration file
  156. ------------------
  157. Configuration file must be placed under $HOME/.aria2 and must be named as
  158. aria2.conf.
  159. In each line, there is 1 parameter whose syntax is name=value pair,
  160. where name is the long command-line option name without '--' prefix.
  161. The lines beginning '#' are treated as comments.
  162. Example:
  163. --------------------------------------
  164. # sample configuration file for aria2c
  165. file-allocation=prealloc
  166. listen-port=60000
  167. seed-ratio=1.0
  168. max-upload-limit=40K
  169. ftp-pasv=true
  170. ---------------------------------------