README 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. aria2 - The ultra fast 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. * Limits download/upload speed.
  25. * Chunk checksum validation in Metalink.
  26. * netrc support.
  27. * Configuration file support.
  28. * Downloads URIs found in a text file or stdin.
  29. * Integrates HTTP/FTP/BitTorrent downloads; downloading a file from several
  30. different sources.
  31. 3. Dependency
  32. -------------
  33. In order to enable HTTPS support, you need GNU TLS or OpenSSL.
  34. In order to enable BitTorrent support, you need GNU TLS+libgcrypt or OpenSSL.
  35. In order to enable Metalink support, you need libxml2 or Expat. Optionally
  36. GNU TLS+libgcrypt or OpenSSL are required for checksum checking support(MD5,
  37. SHA1, SHA256).
  38. Note;;
  39. GNU TLS has precedence over OpenSSL if both libraries are installed.
  40. If you prefer OpenSSL, run configure with "--without-gnutls".
  41. Note;;
  42. libxml2 has precedence over Expat if both libraries are installed.
  43. If you prefer Expat, run configure with "--without-libxml2".
  44. You can disable BitTorrent, Metalink support by providing --disable-bittorrent,
  45. --disable-metalink respectively to configure script.
  46. In order to enable async DNS support, you need c-ares or ares.
  47. c-ares: http://daniel.haxx.se/projects/c-ares/
  48. ares: ftp://athena-dist.mit.edu/pub/ATHENA/ares
  49. 4. How to build
  50. ---------------
  51. In order to build aria2 from the source package, you need following development
  52. packages(package name may vary depending on the distribution you use):
  53. * libgnutls-dev (Required for HTTPS, BitTorrent support)
  54. * libgpg-error-dev (Required for BitTorrent support)
  55. * libgcrypt-dev (Required for BitTorrent support)
  56. * libares-dev (Required for async DNS support)
  57. * libxml2-dev (Required for Metalink support)
  58. You can use libssl-dev instead of libgnutls-dev,libgpg-error-dev,libgcrypt-dev:
  59. * libssl-dev (Required for HTTPS, BitTorrent support)
  60. You can use libexpat1-dev instead of libxml2-dev:
  61. * libexpat1-dev (Required for Metalink support)
  62. The build process is fairly standard way for *nix programs:
  63. $ ./configure
  64. $ make
  65. The executable is aria2c in src directory.
  66. 5. BitTorrrent
  67. --------------
  68. The filename of the downloaded file is determined as follows:
  69. single-file mode:
  70. If "name" key is present in .torrent file, filename is the value of "name"
  71. key. Otherwise, filename is the basename of .torrent file appended by
  72. ".file". For example, .torrent file is "test.torrrent", then filename is
  73. "test.torrent.file".
  74. The directory to store the downloaded file can be specified by -d option.
  75. multi-file mode:
  76. The complete directory/file structure mentioned in .torrent file is
  77. created.
  78. The directory to store the top directory of downloaded files can be
  79. specified by -d option.
  80. In the default behavior, before download starts, complete directory structure
  81. is created if needed. Then aria2 opens all files mentioned in .torrent file,
  82. directly writes to and reads from these files.
  83. NOTE: Even in selective download, all files are opened.
  84. If "--direct-file-mapping" option set to be false, aria2 creates temporary
  85. file in the store directory. The length of this file is the sum of length of
  86. the files in .torrent file, so at least 2 times more disk space than the file
  87. size itself is required. Writing and reading is done against this file.
  88. After download completes, aria2 creates complete directory structure if needed,
  89. and copies whole file or a part of it to the destination.
  90. Note:
  91. * -o option is used to change the filename of downloaded .torrent file.
  92. * The ports aria2c uses are 6881-6999.
  93. * The maximum number of peers is 55. This limit may be exceeded when download
  94. rate is low.
  95. * As of release 0.10.0, aria2 stops sending request message after selective
  96. download completes,
  97. 6. Metalink
  98. -----------
  99. The current implementation supports HTTP/FTP/BitTorrent.
  100. The other P2P protocols are ignored.
  101. For checksum checking, MD5, SHA1, SHA256 are supported. If multiple hash
  102. algorithms are provided, aria2 uses SHA1. If checksum checking is failed, aria2
  103. doesn't retry the download and just exits with non-zero return code.
  104. The supported user preferences are version, language, location, protocol and
  105. os.
  106. If chunk checksums are provided in Metalink file, aria2 automatically validate
  107. a chunk of file while downloading it. This behavior can be turned off by
  108. a command-line option.
  109. 7. netrc
  110. --------
  111. netrc support is enabled by default in ftp.
  112. To disable netrc support, specify -n command-line option.
  113. Your .netrc file should have correct permissions(600).
  114. 8. Configuration file
  115. ---------------------
  116. Configuration file must be placed under ~/.aria2 and must be named as aria2.conf.
  117. In each line, there is 1 parameter whose syntax is name=value pair,
  118. where name is the long command-line option name without '--' prefix.
  119. The lines beginning '#' are treated as comments.
  120. Example:
  121. # sample configuration file for aria2c
  122. file-allocation=prealloc
  123. listen-port=60000
  124. seed-ratio=1.0
  125. max-upload-limit=40K
  126. ftp-pasv=true