aria2c.1.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. ARIA2C(1)
  2. =========
  3. Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4. NAME
  5. ----
  6. aria2c - The high speed download utility
  7. SYNOPSIS
  8. --------
  9. -----------------------------------------
  10. aria2c [OPTIONS] URL ...
  11. aria2c [OPTIONS] -T TORRENT_FILE FILE ...
  12. aria2c [OPTIONS] -M METALINK_FILE
  13. -----------------------------------------
  14. DESCRIPTION
  15. -----------
  16. aria2 is a utility for downloading files. It has completely new design
  17. concept from its predecessor, Aria, and is written from scratch.
  18. aria2 has a segmented downloading engine in its core.
  19. It can download one file from multiple URLs or multiple connections from one
  20. URL. This results in very high speed downloading, much faster than ordinary
  21. browsers. This engine in was implemented in a single-thread model.
  22. The architecture is clean and easy to extend. aria2 currently supports HTTP,
  23. FTP, and BitTorrent. It also supports Metalink version 3.0.
  24. Please visit the project web site at http://aria2.sourceforge.net
  25. OPTIONS
  26. -------
  27. -d, --dir=DIR::
  28. The directory to store downloaded file.
  29. -o, --out=FILE::
  30. The file name for downloaded file.
  31. -l, --log=LOG::
  32. The file path to store log. If '-' is specified, log is written to
  33. stdout.
  34. -D, --daemon::
  35. Run as daemon.
  36. -s, --split=N::
  37. Download a file using 'N' connections. 'N' must be between '1' and '5'.
  38. This option affects all URLs. Thus, aria2 connects to each URL with 'N'
  39. connections.
  40. Default: '1'
  41. --retry-wait=SEC::
  42. Set amount of time in second between requests for errors. Specify a
  43. value between '0' and '60'.
  44. Default: '5'
  45. -t, --timeout=SEC::
  46. Set timeout in second.
  47. Default: '60'
  48. -m, --max-tries=N::
  49. Set number of tries. '0' means unlimited.
  50. Default: '5'
  51. --http-proxy=HOST:PORT::
  52. Use HTTP proxy server. This affects to all URLs.
  53. --http-user=USER::
  54. Set HTTP user. This affects to all URLs.
  55. --http-passwd=PASSWD::
  56. Set HTTP password. This affects to all URLs.
  57. --http-proxy-user=USER::
  58. Set HTTP proxy user. This affects to all URLs
  59. --http-proxy-passwd=PASSWD::
  60. Set HTTP proxy password. This affects to all URLs.
  61. --http-proxy-method=METHOD::
  62. Set the method to use in proxy request.
  63. 'METHOD' is either 'get' or 'tunnel'.
  64. Default: 'tunnel'
  65. --http-auth-scheme=SCHEME::
  66. Set HTTP authentication scheme. Currently, 'basic'
  67. is the only supported scheme.
  68. Default: 'basic'
  69. --referer=REFERER::
  70. Set Referer. This affects to all URLs.
  71. --ftp-user=USER::
  72. Set FTP user. This affects to all URLs.
  73. Default: 'anonymous'
  74. --ftp-passwd=PASSWD::
  75. Set FTP password. This affects to all URLs.
  76. Default: 'ARIA2USER@'
  77. --ftp-type=TYPE::
  78. Set FTP transfer type. TYPE is either 'binary'
  79. or 'ascii'.
  80. Default: 'binary'
  81. -p, --ftp-pasv::
  82. Use passive mode in FTP.
  83. --ftp-via-http-proxy=METHOD::
  84. Use HTTP proxy in 'FTP'. 'METHOD' is either 'get' or
  85. 'tunnel'.
  86. Default: 'tunnel'
  87. --lowest-speed-limit=SPEED::
  88. Close connection if download speed is lower than
  89. or equal to this value(bytes per sec).
  90. 0 means aria2 does not care lowest speed limit.
  91. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  92. This option does not affect BitTorrent download.
  93. Default: '0'
  94. --max-download-limit=SPEED::
  95. Set max download speed in bytes per sec.
  96. '0' means unrestricted.
  97. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  98. Default: '0'
  99. --file-allocation=METHOD::
  100. Specify file allocation method. 'METHOD' is either
  101. 'none' or 'prealloc'.
  102. 'none' doesn't pre-allocate file space. 'prealloc'
  103. pre-allocates file space before download begins.
  104. This may take some time depending on the size of
  105. file.
  106. Default: 'none'
  107. --allow-overwrite=true|false::
  108. If this option set to 'false', aria2 doesn't
  109. download a file which already exists in the file
  110. system but its corresponding .aria2 file doesn't
  111. exist.
  112. Default: 'false'
  113. --check-integrity=true|false::
  114. Check file integrity by validating piece hash.
  115. This option makes effect in BitTorrent download
  116. and Metalink with chunk checksums.
  117. Use this option to redownload a damaged portion of
  118. file.
  119. You may need to specify '--allow-overwrite=true'
  120. option if .aria2 file doesn't exist.
  121. Default: 'false'
  122. --realtime-chunk-checksum=true|false::
  123. Validate chunk checksum while downloading
  124. a file in Metalink mode. This option makes effect
  125. in Metalink with chunk checksums.
  126. Default: 'true'
  127. -c, --continue::
  128. Continue downloading a partially downloaded
  129. file. Use this option to resume a download started by web browsers or another programs
  130. which download files sequentially from the beginning.
  131. Currently this option is applicable to http(s)/
  132. ftp downloads.
  133. -U, --user-agent=USER_AGENT::
  134. Set user agent for http(s) downloads.
  135. -n, --no-netrc::
  136. Disables netrc support.
  137. -i, --input-file=FILE::
  138. Downloads URIs found in 'FILE'. You can specify
  139. multiple URIs for a single entity: deliminate
  140. URIs by Tab in a single line.
  141. -j, --max-concurrent-downloads=N::
  142. Set maximum number of concurrent downloads.
  143. Default: '5'
  144. --load-cookies=FILE::
  145. Load cookies from 'FILE'. The format of 'FILE' is
  146. one used by Netscape and Mozilla.
  147. -T, --torrent-file=TORRENT_FILE::
  148. The file path to .torrent file.
  149. --follow-torrent=true|false::
  150. Setting this option to 'false' prevents aria2 to
  151. enter BitTorrent mode even if the filename of
  152. downloaded file ends with .torrent.
  153. Default: 'true'
  154. -S, --show-files::
  155. Print file listing of .torrent file and exit.
  156. --direct-file-mapping=true|false::
  157. Directly read from and write to each file
  158. mentioned in .torrent file.
  159. Default: 'true'
  160. --listen-port=PORT::
  161. Set port number to listen to for peer connection.
  162. Default: 6881-6999
  163. --max-upload-limit=SPEED::
  164. Set max upload speed in bytes per sec.
  165. '0' means unrestricted.
  166. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  167. Default: '0'
  168. --select-file=INDEX...::
  169. Set file to download by specifing its index.
  170. You can know file index through '--show-files'
  171. option. Multiple indexes can be specified by using
  172. ',' like "3,6".
  173. You can also use '-' to specify rangelike "1-5".
  174. ',' and '-' can be used together.
  175. --seed-time=MINUTES::
  176. Specify seeding time in minutes. See also
  177. '--seed-ratio' option.
  178. --seed-ratio=RATIO::
  179. Specify share ratio. Seed completed torrents until
  180. share ratio reaches 'RATIO'. '1.0' is encouraged.
  181. If '--seed-time' option is specified along with
  182. this option, seeding ends when at least one of
  183. the conditions is satisfied.
  184. -M, --metalink-file=METALINK_FILE::
  185. The file path to .metalink file.
  186. -C, --metalink-servers=NUM_SERVERS::
  187. The number of servers to connect to
  188. simultaneously.
  189. Default: '5'
  190. --metalink-version=VERSION::
  191. The version of file to download.
  192. --metalink-language=LANGUAGE::
  193. The language of file to download.
  194. --metalink-os=OS::
  195. The operating system the file is targeted.
  196. --metalink-location=LOCATION::
  197. The location of the prefered server.
  198. --follow-metalink=true|false::
  199. Setting this option to 'false' prevents aria2 to
  200. enter Metalink mode even if the filename of
  201. downloaded file ends with .metalink.
  202. Default: 'true'
  203. -v, --version::
  204. Print the version number and exit.
  205. -h, --help::
  206. Print this message and exit.
  207. URL::
  208. You can specify multiple URLs. All URLs must point to the same file
  209. or downloading fails.
  210. FILE::
  211. Specify files in multi-file torrent to download. Use conjunction with
  212. '-T' option. This arguments are ignored if you specify '--select-file' option.
  213. EXAMPLES
  214. --------
  215. Download a file by 1 connection::
  216. aria2c http://AAA.BBB.CCC/file.zip
  217. Download a file by 2 connections::
  218. aria2c -s 2 http://AAA.BBB.CCC/file.zip
  219. Download a file by 2 connections, each connects to a different server::
  220. aria2c http://AAA.BBB.CCC/file.zip http://DDD.EEE.FFF/GGG/file.zip
  221. You can mix up different protocols::
  222. aria2c http://AAA.BBB.CCC/file.zip ftp://DDD.EEE.FFF/GGG/file.zip
  223. Download a torrent::
  224. aria2c -o test.torrent http://AAA.BBB.CCC/file.torrent
  225. Download a torrent using local .torrent file::
  226. aria2c -T test.torrent
  227. Download only selected files::
  228. aria2c -T test.torrent dir/file1.zip dir/file2.zip
  229. Print file listing of .torrent file::
  230. aria2c -T test.torrent -S
  231. Metalink downloading::
  232. aria2c --lowest-speed-limit 10K http://AAA.BBB.CCC/file.metalink
  233. Download a file using local .metalink file::
  234. aria2c -M test.metalink
  235. Metalink downloading with preferences::
  236. aria2c -M test.metalink --metalink-version=1.1.1 --metalink-language=en-US
  237. FILES
  238. -----
  239. aria2.conf::
  240. User configuration file.
  241. It must be placed under ~/.aria2 and must be named as aria2.conf.
  242. In each line, there is 1 parameter whose syntax is name=value pair,
  243. where name is the long command-line option name without '--' prefix.
  244. The lines beginning '#' are treated as comments.
  245. Example:
  246. # sample configuration file for aria2c
  247. file-allocation=prealloc
  248. listen-port=60000
  249. seed-ratio=1.0
  250. max-upload-limit=40K
  251. ftp-pasv=true
  252. REPORTING BUGS
  253. --------------
  254. Report bugs to Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. AUTHOR
  256. ------
  257. Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  258. COPYRIGHT
  259. ---------
  260. Copyright (C) 2006, 2007 Tatsuhiro Tsujikawa