aria2c.1.txt 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  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: none
  104. --allow-overwrite=true|false::
  105. If false, aria2 doesn't download a file which
  106. already exists but the corresponding .aria2 file
  107. doesn't exist.
  108. Default: false
  109. -Z, --force-sequential[=true|false]::
  110. Fetch URIs in the command-line sequentially
  111. and download each URI in a separate session, like
  112. the usual command-line download utilities.
  113. Default: false
  114. --auto-file-renaming[=true|false]::
  115. Rename file name if the same file already
  116. exists. This option works only in http(s)/ftp
  117. download.
  118. The new file name has a dot and a number(1..9999)
  119. appended.
  120. Default: true
  121. -P, --parameterized-uri[=true|false]::
  122. Enable parameterized URI support.
  123. You can specify set of parts:
  124. 'http://{sv1,sv2,sv3}/foo.iso'
  125. Also you can specify numeric sequences with step
  126. counter:
  127. 'http://host/image[000-100:2].img'
  128. A step counter can be omitted.
  129. If all URIs do not point to the same file, such
  130. as the second example above, -Z option is
  131. required.
  132. Default: false
  133. --check-integrity=true|false::
  134. Check file integrity by validating piece hash.
  135. This option only affects in BitTorrent downloads
  136. and Metalink downloads with chunk checksums.
  137. Use this option to re-download a damaged portion
  138. of a file.
  139. You may need to specify --allow-overwrite=true
  140. if the .aria2 file doesn't exist.
  141. Default: false
  142. --realtime-chunk-checksum=true|false::
  143. Validate chunk checksum while
  144. downloading a file in Metalink mode. This option
  145. on affects Metalink mode with chunk checksums.
  146. Default: true
  147. -c, --continue::
  148. Continue downloading a partially downloaded
  149. file. Use this option to resume a download
  150. started by a web browser or another program
  151. which downloads files sequentially from the
  152. beginning. Currently this option is only
  153. applicable to http(s)/ftp downloads.
  154. -U, --user-agent=USER_AGENT::
  155. Set user agent for http(s) downloads.
  156. -n, --no-netrc::
  157. Disables netrc support.
  158. -i, --input-file=FILE::
  159. Downloads URIs found in FILE. You can specify
  160. multiple URIs for a single entity: separate
  161. URIs on a single line using the TAB character.
  162. Reads input from stdin when '-' is specified.
  163. -j, --max-concurrent-downloads=N::
  164. Set maximum number of concurrent downloads.
  165. It should be used with the -i option.
  166. Default: 5
  167. --load-cookies=FILE::
  168. Load cookies from FILE. The format of FILE is
  169. the same used by Netscape and Mozilla.
  170. -S, --show-files::
  171. Print file listing of .torrent or .metalink file
  172. and exit.
  173. --select-file=INDEX...::
  174. Set file to download by specifing its index.
  175. You can find the file index using the
  176. --show-files option. Multiple indexes can be
  177. specified by using ',', for example: "3,6".
  178. You can also use '-' to specify a range: "1-5".
  179. ',' and '-' can be used together.
  180. When used with the -M option, index may vary
  181. depending on the query(see --metalink-* options).
  182. -T, --torrent-file=TORRENT_FILE::
  183. The path to the .torrent file.
  184. --follow-torrent=true|false::
  185. Set to false to prevent aria2 from
  186. entering BitTorrent mode even if the filename of
  187. the downloaded file ends with .torrent.
  188. Default: true
  189. --direct-file-mapping=true|false::
  190. Directly read from and write to each file
  191. mentioned in .torrent file.
  192. Default: 'true'
  193. --listen-port=PORT::
  194. Set TCP port number for BitTorrent downloads.
  195. Default: 6881-6999
  196. --max-upload-limit=SPEED::
  197. Set max upload speed in bytes per sec.
  198. '0' means unrestricted.
  199. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  200. Default: '0'
  201. --seed-time=MINUTES::
  202. Specify seeding time in minutes. Also see the
  203. --seed-ratio option.
  204. --seed-ratio=RATIO::
  205. Specify share ratio. Seed completed torrents
  206. until share ratio reaches RATIO. 1.0 is
  207. encouraged. If --seed-time option is specified
  208. along with this option, seeding ends when at
  209. least one of the conditions is satisfied.
  210. --peer-id-prefix=PEERI_ID_PREFIX::
  211. Specify the prefix of peer ID. The peer ID in
  212. in BitTorrent is 20 byte length. If more than 20
  213. bytes are specified, only first 20
  214. bytes are used. If less than 20 bytes are
  215. specified, the random alphabet characters are
  216. added to make it's length 20 bytes.
  217. Default: -aria2-
  218. -M, --metalink-file=METALINK_FILE::
  219. The file path to .metalink file.
  220. -C, --metalink-servers=NUM_SERVERS::
  221. The number of servers to connect to
  222. simultaneously.
  223. Default: '5'
  224. --metalink-version=VERSION::
  225. The version of the file to download.
  226. --metalink-language=LANGUAGE::
  227. The language of the file to download.
  228. --metalink-os=OS::
  229. The operating system of the file to download.
  230. --metalink-location=LOCATION::
  231. The location of the prefered server.
  232. --follow-metalink=true|false::
  233. Set to false to prevent aria2 from
  234. entering Metalink mode even if the filename of
  235. the downloaded file ends with .metalink.
  236. Default: true
  237. -v, --version::
  238. Print the version number and exit.
  239. -h, --help::
  240. Print this message and exit.
  241. URL::
  242. You can specify multiple URLs. All URLs must point to the same file
  243. or downloading will fail.
  244. FILE::
  245. Specify files in multi-file torrent to download. Use in conjunction with the
  246. -T option. This argument is ignored if you specify the --select-file option.
  247. EXAMPLES
  248. --------
  249. Download a file using 1 connection::
  250. aria2c http://AAA.BBB.CCC/file.zip
  251. Download a file using 2 connections::
  252. aria2c -s 2 http://AAA.BBB.CCC/file.zip
  253. Download a file using 2 connections, each connects to a different server::
  254. aria2c http://AAA.BBB.CCC/file.zip http://DDD.EEE.FFF/GGG/file.zip
  255. You can mix up different protocols::
  256. aria2c http://AAA.BBB.CCC/file.zip ftp://DDD.EEE.FFF/GGG/file.zip
  257. Download files listed in a text file. 5 files are downloaded concurrently::
  258. aria2c -i uris.txt -j 5
  259. Download files passed through stdin::
  260. cat uris.txt | aria2c -i -
  261. Download a file using local cookies::
  262. aria2c --load-cookies cookies.txt http://AAA.BBB.CCC/file.zip
  263. Parameterized URI::
  264. aria2c -P http://{server1,server2,server3}/file.iso
  265. Parameterized URI. -Z option is required in this case::
  266. aria2c -P -Z http://host/file[001-100:2].img
  267. Download a torrent::
  268. aria2c -o test.torrent http://AAA.BBB.CCC/file.torrent
  269. Download a torrent using a local .torrent file::
  270. aria2c -T test.torrent
  271. Download only selected files::
  272. aria2c -T test.torrent dir/file1.zip dir/file2.zip
  273. Download only selected files using index::
  274. aria2c -T test.torrent --select-file 1,3-5
  275. Print file listing of .torrent file::
  276. aria2c -T test.torrent -S
  277. Metalink downloading::
  278. aria2c --lowest-speed-limit 10K http://AAA.BBB.CCC/file.metalink
  279. Download a file using a local .metalink file::
  280. aria2c -M test.metalink
  281. Metalink downloading with preferences::
  282. aria2c -M test.metalink --metalink-version=1.1.1 --metalink-language=en-US
  283. Download only selected files::
  284. aria2c -M test.metalink --metalink-language=en-US dir/file1.zip dir/file2.zip
  285. Download only selected files using index::
  286. aria2c -M test.metalink --metalink-language=en-US --select-file 1,3-5
  287. Print file listing of .metalink file::
  288. aria2c -M test.metalink -S --metalink-language=en-US
  289. FILES
  290. -----
  291. aria2.conf::
  292. User configuration file.
  293. It must be placed under ~/.aria2 and must be named as aria2.conf.
  294. In each line, there is 1 parameter whose syntax is name=value pair,
  295. where name is the long command-line option name without '--' prefix.
  296. The lines beginning '#' are treated as comments.
  297. Example:
  298. # sample configuration file for aria2c
  299. file-allocation=prealloc
  300. listen-port=60000
  301. seed-ratio=1.0
  302. max-upload-limit=40K
  303. ftp-pasv=true
  304. REPORTING BUGS
  305. --------------
  306. Report bugs to Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  307. AUTHOR
  308. ------
  309. Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. COPYRIGHT
  311. ---------
  312. Copyright (C) 2006, 2007 Tatsuhiro Tsujikawa