README 7.2 KB

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