README 4.7 KB

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