aria2c.1.txt 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  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 the downloaded file.
  29. -o, --out=FILE::
  30. The file name of the downloaded file.
  31. -l, --log=LOG::
  32. The file name of the log file. If '-' is specified, log is written to stdout.
  33. -D, --daemon::
  34. Run as daemon.
  35. -s, --split=N::
  36. Download a file using 'N' connections. 'N' must be between '1' and '5'.
  37. This option affects all URLs. Thus, aria2 connects to each URL with 'N'
  38. connections.
  39. Default: '1'
  40. --retry-wait=SEC::
  41. Set the seconds to wait to retry after an error
  42. has occured. Specify a value between 0 and 60.
  43. Default: 5
  44. -t, --timeout=SEC::
  45. Set timeout in seconds. Default: 60
  46. -m, --max-tries=N::
  47. Set number of tries. '0' means unlimited.
  48. Default: '5'
  49. --http-proxy=HOST:PORT::
  50. Use HTTP proxy server. This affects all URLs.
  51. --http-user=USER::
  52. Set HTTP user. This affects all URLs.
  53. --http-passwd=PASSWD::
  54. Set HTTP password. This affects all URLs.
  55. --http-proxy-user=USER::
  56. Set HTTP proxy user. This affects all URLs.
  57. --http-proxy-passwd=PASSWD::
  58. Set HTTP proxy password. This affects all URLs.
  59. --http-proxy-method=METHOD::
  60. Set the method to use in proxy request.
  61. 'METHOD' is either 'get' or 'tunnel'.
  62. Default: 'tunnel'
  63. --http-auth-scheme=SCHEME::
  64. Set HTTP authentication scheme. Currently, 'basic'
  65. is the only supported scheme.
  66. Default: 'basic'
  67. --referer=REFERER::
  68. Set Referer. This affects all URLs.
  69. --ftp-user=USER::
  70. Set FTP user. This affects all URLs.
  71. Default: anonymous
  72. --ftp-passwd=PASSWD::
  73. Set FTP password. This affects all URLs.
  74. Default: ARIA2USER@
  75. --ftp-type=TYPE::
  76. Set FTP transfer type. TYPE is either 'binary'
  77. or 'ascii'.
  78. Default: 'binary'
  79. -p, --ftp-pasv::
  80. Use passive mode in FTP.
  81. --ftp-via-http-proxy=METHOD::
  82. Use HTTP proxy in 'FTP'. 'METHOD' is either 'get' or
  83. 'tunnel'.
  84. Default: 'tunnel'
  85. --lowest-speed-limit=SPEED::
  86. Close connection if download speed is lower than
  87. or equal to this value(bytes per sec).
  88. 0 means aria2 does not have a lowest speed limit.
  89. You can append K or M(1K = 1024, 1M = 1024K).
  90. This option does not affect BitTorrent downloads.
  91. Default: 0
  92. --max-download-limit=SPEED::
  93. Set max download speed in bytes per sec.
  94. '0' means unrestricted.
  95. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  96. Default: '0'
  97. --file-allocation=METHOD::
  98. Specify file allocation method. METHOD is either
  99. 'none' or 'prealloc'. 'none' doesn't pre-allocate
  100. file space. 'prealloc' pre-allocates file space
  101. before download begins. This may take some time
  102. depending on the size of the file.
  103. Default: prealloc
  104. --no-file-allocation-limit=SIZE::
  105. No file allocation is made for files whose
  106. size is smaller than SIZE.
  107. You can append K or M(1K = 1024, 1M = 1024K).
  108. BitTorrent downloads ignore this option.
  109. Default: 5M
  110. --allow-overwrite=true|false::
  111. If false, aria2 doesn't download a file which
  112. already exists but the corresponding .aria2 file
  113. doesn't exist.
  114. Default: false
  115. -Z, --force-sequential[=true|false]::
  116. Fetch URIs in the command-line sequentially
  117. and download each URI in a separate session, like
  118. the usual command-line download utilities.
  119. Default: false
  120. --auto-file-renaming[=true|false]::
  121. Rename file name if the same file already
  122. exists. This option works only in http(s)/ftp
  123. download.
  124. The new file name has a dot and a number(1..9999)
  125. appended.
  126. Default: true
  127. -P, --parameterized-uri[=true|false]::
  128. Enable parameterized URI support.
  129. You can specify set of parts:
  130. ----------------------------
  131. http://{sv1,sv2,sv3}/foo.iso
  132. ----------------------------
  133. Also you can specify numeric sequences with step
  134. counter:
  135. --------------------------------
  136. http://host/image[000-100:2].img
  137. --------------------------------
  138. A step counter can be omitted.
  139. If all URIs do not point to the same file, such
  140. as the second example above, -Z option is
  141. required.
  142. Default: false
  143. --check-integrity=true|false::
  144. Check file integrity by validating piece hash.
  145. This option only affects in BitTorrent downloads
  146. and Metalink downloads with chunk checksums.
  147. Use this option to re-download a damaged portion
  148. of a file.
  149. You may need to specify --allow-overwrite=true
  150. if the .aria2 file doesn't exist.
  151. Default: false
  152. --realtime-chunk-checksum=true|false::
  153. Validate chunk checksum while
  154. downloading a file in Metalink mode. This option
  155. on affects Metalink mode with chunk checksums.
  156. Default: true
  157. -c, --continue::
  158. Continue downloading a partially downloaded
  159. file. Use this option to resume a download
  160. started by a web browser or another program
  161. which downloads files sequentially from the
  162. beginning. Currently this option is only
  163. applicable to http(s)/ftp downloads.
  164. -U, --user-agent=USER_AGENT::
  165. Set user agent for http(s) downloads.
  166. -n, --no-netrc::
  167. Disables netrc support.
  168. -i, --input-file=FILE::
  169. Downloads URIs found in FILE. You can specify
  170. multiple URIs for a single entity: separate
  171. URIs on a single line using the TAB character.
  172. Reads input from stdin when '-' is specified.
  173. -j, --max-concurrent-downloads=N::
  174. Set maximum number of concurrent downloads.
  175. It should be used with the -i option.
  176. Default: 5
  177. --load-cookies=FILE::
  178. Load cookies from FILE. The format of FILE is
  179. the same used by Netscape and Mozilla.
  180. -S, --show-files::
  181. Print file listing of .torrent or .metalink file
  182. and exit.
  183. --select-file=INDEX...::
  184. Set file to download by specifing its index.
  185. You can find the file index using the
  186. --show-files option. Multiple indexes can be
  187. specified by using ',', for example: "3,6".
  188. You can also use '-' to specify a range: "1-5".
  189. ',' and '-' can be used together.
  190. When used with the -M option, index may vary
  191. depending on the query(see --metalink-* options).
  192. -T, --torrent-file=TORRENT_FILE::
  193. The path to the .torrent file.
  194. --follow-torrent=true|false::
  195. Set to false to prevent aria2 from
  196. entering BitTorrent mode even if the filename of
  197. the downloaded file ends with .torrent.
  198. Default: true
  199. --direct-file-mapping=true|false::
  200. Directly read from and write to each file
  201. mentioned in .torrent file.
  202. Default: 'true'
  203. --listen-port=PORT::
  204. Set TCP port number for BitTorrent downloads.
  205. Default: 6881-6999
  206. --max-upload-limit=SPEED::
  207. Set max upload speed in bytes per sec.
  208. '0' means unrestricted.
  209. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  210. Default: '0'
  211. --seed-time=MINUTES::
  212. Specify seeding time in minutes. Also see the
  213. --seed-ratio option.
  214. --seed-ratio=RATIO::
  215. Specify share ratio. Seed completed torrents
  216. until share ratio reaches RATIO. 1.0 is
  217. encouraged. If --seed-time option is specified
  218. along with this option, seeding ends when at
  219. least one of the conditions is satisfied.
  220. --peer-id-prefix=PEERI_ID_PREFIX::
  221. Specify the prefix of peer ID. The peer ID in
  222. in BitTorrent is 20 byte length. If more than 20
  223. bytes are specified, only first 20
  224. bytes are used. If less than 20 bytes are
  225. specified, the random alphabet characters are
  226. added to make it's length 20 bytes.
  227. Default: -aria2-
  228. -M, --metalink-file=METALINK_FILE::
  229. The file path to .metalink file.
  230. -C, --metalink-servers=NUM_SERVERS::
  231. The number of servers to connect to
  232. simultaneously.
  233. Default: '5'
  234. --metalink-version=VERSION::
  235. The version of the file to download.
  236. --metalink-language=LANGUAGE::
  237. The language of the file to download.
  238. --metalink-os=OS::
  239. The operating system of the file to download.
  240. --metalink-location=LOCATION::
  241. The location of the prefered server.
  242. --follow-metalink=true|false::
  243. Set to false to prevent aria2 from
  244. entering Metalink mode even if the filename of
  245. the downloaded file ends with .metalink.
  246. Default: true
  247. -v, --version::
  248. Print the version number and exit.
  249. -h, --help::
  250. Print this message and exit.
  251. URL::
  252. You can specify multiple URLs. All URLs must point to the same file
  253. or downloading will fail.
  254. FILE::
  255. Specify files in multi-file torrent to download. Use in conjunction with the
  256. -T option. This argument is ignored if you specify the --select-file option.
  257. EXAMPLES
  258. --------
  259. Download a file using 1 connection::
  260. aria2c http://AAA.BBB.CCC/file.zip
  261. Download a file using 2 connections::
  262. aria2c -s 2 http://AAA.BBB.CCC/file.zip
  263. Download a file using 2 connections, each connects to a different server::
  264. aria2c http://AAA.BBB.CCC/file.zip http://DDD.EEE.FFF/GGG/file.zip
  265. You can mix up different protocols::
  266. aria2c http://AAA.BBB.CCC/file.zip ftp://DDD.EEE.FFF/GGG/file.zip
  267. Download files listed in a text file. 5 files are downloaded concurrently::
  268. aria2c -i uris.txt -j 5
  269. Download files passed through stdin::
  270. cat uris.txt | aria2c -i -
  271. Download a file using local cookies::
  272. aria2c --load-cookies cookies.txt http://AAA.BBB.CCC/file.zip
  273. Parameterized URI::
  274. aria2c -P http://{server1,server2,server3}/file.iso
  275. Parameterized URI. -Z option is required in this case::
  276. aria2c -P -Z \http://host/file[001-100:2].img
  277. Download a torrent::
  278. aria2c -o test.torrent http://AAA.BBB.CCC/file.torrent
  279. Download a torrent using a local .torrent file::
  280. aria2c -T test.torrent
  281. Download only selected files::
  282. aria2c -T test.torrent dir/file1.zip dir/file2.zip
  283. Download only selected files using index::
  284. aria2c -T test.torrent --select-file 1,3-5
  285. Print file listing of .torrent file::
  286. aria2c -T test.torrent -S
  287. Metalink downloading::
  288. aria2c --lowest-speed-limit 10K http://AAA.BBB.CCC/file.metalink
  289. Download a file using a local .metalink file::
  290. aria2c -M test.metalink
  291. Metalink downloading with preferences::
  292. aria2c -M test.metalink --metalink-version=1.1.1 --metalink-language=en-US
  293. Download only selected files::
  294. aria2c -M test.metalink --metalink-language=en-US dir/file1.zip dir/file2.zip
  295. Download only selected files using index::
  296. aria2c -M test.metalink --metalink-language=en-US --select-file 1,3-5
  297. Print file listing of .metalink file::
  298. aria2c -M test.metalink -S --metalink-language=en-US
  299. FILES
  300. -----
  301. aria2.conf::
  302. User configuration file.
  303. It must be placed under ~/.aria2 and must be named as aria2.conf.
  304. In each line, there is 1 parameter whose syntax is name=value pair,
  305. where name is the long command-line option name without '--' prefix.
  306. The lines beginning '#' are treated as comments.
  307. Example:
  308. # sample configuration file for aria2c
  309. file-allocation=prealloc
  310. listen-port=60000
  311. seed-ratio=1.0
  312. max-upload-limit=40K
  313. ftp-pasv=true
  314. REPORTING BUGS
  315. --------------
  316. Report bugs to Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  317. AUTHOR
  318. ------
  319. Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  320. COPYRIGHT
  321. ---------
  322. Copyright (C) 2006, 2007 Tatsuhiro Tsujikawa