aria2c.1.txt 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045
  1. ARIA2C(1)
  2. =========
  3. Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4. NAME
  5. ----
  6. aria2c - The ultra fast download utility
  7. SYNOPSIS
  8. --------
  9. aria2c ['OPTIONS'] ['URL' | 'TORRENT_FILE' | 'METALINK_FILE']...
  10. DESCRIPTION
  11. -----------
  12. aria2 is a utility for downloading files. The supported protocols are HTTP(S), FTP, BitTorrent, and Metalink. aria2 can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth. It supports downloading a file from HTTP(S)/FTP and BitTorrent at the same time, while the data downloaded from HTTP(S)/FTP is uploaded to the BitTorrent swarm. Using Metalink's chunk checksums, aria2 automatically validates chunks of data while downloading a file like BitTorrent.
  13. OPTIONS
  14. -------
  15. Basic Options
  16. ~~~~~~~~~~~~~
  17. *-d*, *--dir*=DIR::
  18. The directory to store the downloaded file.
  19. *-i*, *--input-file*=FILE::
  20. Downloads URIs found in FILE. You can specify multiple URIs for a single
  21. entity: separate URIs on a single line using the TAB character.
  22. Reads input from stdin when '-' is specified.
  23. The additional *out* and *dir* options can be specified after each line of
  24. URIs. This optional line must start with white space(s).
  25. See INPUT FILE section for details.
  26. *-l*, *--log*=LOG::
  27. The file name of the log file. If '-' is specified, log is written to
  28. stdout.
  29. *-j*, *--max-concurrent-downloads*=N::
  30. Set maximum number of parallel downloads for every static (HTTP/FTP) URL,
  31. torrent and metalink. See also *-s* and *-C* option.
  32. Default: '5'
  33. *-V*, *--check-integrity*[='true'|'false']::
  34. Check file integrity by validating piece hashes.
  35. This option has effect only in BitTorrent and Metalink downloads with
  36. chunk checksums.
  37. Use this option to re-download a damaged portion of a file.
  38. Default: 'false'
  39. *-c*, *--continue*::
  40. Continue downloading a partially downloaded file.
  41. Use this option to resume a download started by a web browser or another
  42. program which downloads files sequentially from the beginning.
  43. Currently this option is only applicable to HTTP(S)/FTP downloads.
  44. *-h*, *--help*[=CATEGORY]::
  45. Print usage and exit.
  46. The help messages are classified in several categories.
  47. For example, type "*--help*=http" for detailed explanation for the options
  48. related to HTTP. If no matching category is found, search option name using
  49. a given word in middle match and print the result.
  50. Available Values: 'basic', 'advanced', 'http', 'https', 'ftp', 'metalink',
  51. 'bittorrent', 'all'
  52. Default: 'basic'
  53. HTTP/FTP Options
  54. ~~~~~~~~~~~~~~~~
  55. *--all-proxy*=PROXY::
  56. Use this proxy server for all protocols.
  57. You can override this setting and specify a proxy server for a particular
  58. protocol using *--http-proxy*, *--https-proxy* and *--ftp-proxy* options.
  59. This affects all URLs.
  60. The format of PROXY is [\\http://][USER:PASSWORD@]HOST[:PORT]
  61. *--connect-timeout*=SEC::
  62. Set the connect timeout in seconds to establish connection to
  63. HTTP/FTP/proxy server. After the connection is established, this
  64. option makes no effect and *--timeout* option is used instead.
  65. Default: '60'
  66. *--lowest-speed-limit*=SPEED::
  67. Close connection if download speed is lower than or equal to this
  68. value(bytes per sec).
  69. '0' means aria2 does not have a lowest speed limit.
  70. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  71. This option does not affect BitTorrent downloads.
  72. Default: '0'
  73. *--max-file-not-found*=NUM::
  74. If aria2 receives `file not found' status from the remote HTTP/FTP
  75. servers NUM times without getting a single byte, then force the
  76. download to fail. Specify '0' to disable this option. This options is
  77. effective only when using HTTP/FTP servers.
  78. Default: '0'
  79. *-m*, *--max-tries*=N::
  80. Set number of tries. '0' means unlimited.
  81. Default: '5'
  82. *--no-proxy*=DOMAINS::
  83. Specify comma separated hostnames or domains where proxy should not be
  84. used.
  85. *-o*, *--out*=FILE::
  86. The file name of the downloaded file.
  87. [NOTE]
  88. In Metalink or BitTorrent download you cannot specify file name.
  89. The file name specified here is only used when the URLs fed to aria2
  90. are done by command line without *-i*, *-Z* option. For example:
  91. aria2c -o myfile.zip \http://mirror1/file.zip \http://mirror2/file.zip
  92. *--proxy-method*=METHOD::
  93. Set the method to use in proxy request.
  94. 'METHOD' is either 'get' or 'tunnel'.
  95. Default: 'tunnel'
  96. *-R*, *--remote-time*[='true'|'false']::
  97. Retrieve timestamp of the remote file from the remote HTTP/FTP
  98. server and if it is available, apply it to the local file.
  99. Default: 'false'
  100. *--retry-wait*=SEC::
  101. Set the seconds to wait to retry after an error has occured.
  102. Specify a value between '0' and '60'.
  103. Default: '5'
  104. *--server-stat-of*=FILE::
  105. Specify the filename to which performance profile of the servers is
  106. saved. You can load saved data using *--server-stat-if* option. See
  107. SERVER PERFORMANCE PROFILE section below for file format.
  108. *--server-stat-if*=FILE::
  109. Specify the filename to load performance profile of the servers. The
  110. loaded data will be used in some URI selector such as 'feedback'.
  111. See also *--uri-selector* option. See SERVER PERFORMANCE PROFILE
  112. section below for file format.
  113. *--server-stat-timeout*=SEC::
  114. Specifies timeout in seconds to invalidate performance profile of
  115. the servers since the last contact to them.
  116. Default: '86400' (24hours)
  117. *-s*, *--split*=N::
  118. Download a file using N connections.
  119. If more than N URLs are given, first N URLs are used and remaining URLs are
  120. used for backup.
  121. If less than N URLs are given, those URLs are used more than once so that N
  122. connections total are made simultaneously.
  123. N must be between '1' and '16'. Please see *-j* option too.
  124. Please note that in Metalink download, this option has no effect and use
  125. *-C* option instead.
  126. Default: '5'
  127. *-t*, *--timeout*=SEC::
  128. Set timeout in seconds.
  129. Default: '60'
  130. *--uri-selector*=SELECTOR::
  131. Specify URI selection algorithm. Possible values are 'inorder' and
  132. 'feedback'. If 'inorder' is given, URI is tried in the order
  133. appeared in the URI list. If 'feedback' is given, aria2 uses
  134. download speed observed in the previous downloads and choose fastest
  135. server in the URI list. This also effectively skips dead
  136. mirrors. The observed download speed is a part of performance
  137. profile of servers mentioned in *--server-stat-of* and
  138. *--server-stat-if* options.
  139. Default: 'inorder'
  140. HTTP Specific Options
  141. ~~~~~~~~~~~~~~~~~~~~~
  142. *--ca-certificate*=FILE::
  143. Use the certificate authorities in FILE to verify the peers.
  144. The certificate file must be in PEM format and can contain multiple CA
  145. certificates.
  146. Use *--check-certificate* option to enable verification.
  147. *--certificate*=FILE::
  148. Use the client certificate in FILE.
  149. The certificate must be in PEM format.
  150. You may use *--private-key* option to specify the private key.
  151. *--check-certificate*[='true'|'false']::
  152. Verify the peer using certificates specified in *--ca-certificate* option.
  153. Default: 'true'
  154. *--http-auth-scheme*=SCHEME::
  155. Set HTTP authentication scheme.
  156. Currently, 'basic' is the only supported scheme.
  157. Default: 'basic'
  158. *--http-user*=USER::
  159. Set HTTP user. This affects all URLs.
  160. *--http-passwd*=PASSWD::
  161. Set HTTP password. This affects all URLs.
  162. *--http-proxy*=PROXY::
  163. Use this proxy server for HTTP. See also *--all-proxy* option.
  164. This affects all URLs.
  165. The format of PROXY is [\\http://][USER:PASSWORD@]HOST[:PORT]
  166. *--https-proxy*=PROXY::
  167. Use this proxy server for HTTPS. See also *--all-proxy* option.
  168. This affects all URLs.
  169. The format of PROXY is [\\http://][USER:PASSWORD@]HOST[:PORT]
  170. *--private-key*=FILE::
  171. Use the private key in FILE.
  172. The private key must be decrypted and in PEM format.
  173. The behavior when encrypted one is given is undefined.
  174. See also *--certificate* option.
  175. *--referer*=REFERER::
  176. Set Referer. This affects all URLs.
  177. *--enable-http-keep-alive*[='true'|'false']::
  178. Enable HTTP/1.1 persistent connection.
  179. Default: 'true'
  180. *--enable-http-pipelining*[='true'|'false']::
  181. Enable HTTP/1.1 pipelining.
  182. Default: 'false'
  183. *--header*=HEADER::
  184. Append HEADER to HTTP request header.
  185. You can use this option repeatedly to specify more than one header:
  186. aria2c *--header*="X-A: b78" *--header*="X-B: 9J1" \http://host/file
  187. *--load-cookies*=FILE::
  188. Load Cookies from FILE using the Firefox3 format (SQLite3) and the
  189. Mozilla/Firefox(1.x/2.x)/Netscape format.
  190. [NOTE]
  191. If aria2 is built without libsqlite3, then it doesn't support Firefox3 cookie format.
  192. *-U*, *--user-agent*=USER_AGENT::
  193. Set user agent for HTTP(S) downloads.
  194. FTP Specific Options
  195. ~~~~~~~~~~~~~~~~~~~~
  196. *--ftp-user*=USER::
  197. Set FTP user. This affects all URLs.
  198. Default: 'anonymous'
  199. *--ftp-passwd*=PASSWD::
  200. Set FTP password. This affects all URLs.
  201. Default: 'ARIA2USER@'
  202. *-p*, *--ftp-pasv*[='true'|'false']::
  203. Use the passive mode in FTP.
  204. If 'false' is given, the active mode will be used.
  205. Default: 'true'
  206. *--ftp-proxy*=PROXY::
  207. Use this proxy server for FTP. See also *--all-proxy* option.
  208. This affects all URLs.
  209. The format of PROXY is [\\http://][USER:PASSWORD@]HOST[:PORT]
  210. *--ftp-type*=TYPE::
  211. Set FTP transfer type. TYPE is either 'binary' or 'ascii'.
  212. Default: 'binary'
  213. *--ftp-reuse-connection*[='true'|'false']::
  214. Reuse connection in FTP.
  215. Default: 'true'
  216. *-n*, *--no-netrc*::
  217. Disables netrc support. netrc support is enabled by default.
  218. BitTorrent/Metalink Options
  219. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  220. *--select-file*=INDEX...::
  221. Set file to download by specifying its index.
  222. You can find the file index using the *--show-files* option.
  223. Multiple indexes can be specified by using ",", for example: '3,6'.
  224. You can also use "-" to specify a range: '1-5'.
  225. "," and "-" can be used together: '1-5,8,9'.
  226. When used with the -M option, index may vary depending on the query
  227. (see *--metalink-** options).
  228. [NOTE]
  229. In multi file torrent, the adjacent files specified by this option may
  230. also be downloaded. This is by design, not a bug.
  231. A single piece may include several files or part of files, and aria2
  232. writes the piece to the appropriate files.
  233. *-S*, *--show-files*::
  234. Print file listing of .torrent or .metalink file and exit.
  235. In case of .torrent file, additional information
  236. (infohash, piece length, etc) is also printed.
  237. BitTorrent Specific Options
  238. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  239. *--bt-max-open-files*=NUM::
  240. Specify maximum number of files to open in each BitTorrent download.
  241. Default: '100'
  242. *--bt-min-crypto-level*='plain'|'arc4'::
  243. Set minimum level of encryption method.
  244. If several encryption methods are provided by a peer, aria2 chooses the lowest
  245. one which satisfies the given level.
  246. Default: 'plain'
  247. *--bt-require-crypto*='true'|'false'::
  248. If true is given, aria2 doesn't accept and establish connection with legacy
  249. BitTorrent handshake(\19BitTorrent protocol).
  250. Thus aria2 always uses Obfuscation handshake.
  251. Default: 'false'
  252. *--bt-request-peer-speed-limit*=SPEED::
  253. In BitTorrent downloads, if the download speed is lower than SPEED,
  254. aria2 initiates and accepts connections ignoring max peer cap.
  255. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  256. Default: '51200'
  257. *--bt-seed-unverified*[='true'|'false']::
  258. Seed previously downloaded files without verifying piece hashes.
  259. Default: 'false'
  260. *--dht-entry-point*=HOST:PORT::
  261. Set host and port as an entry point to DHT network.
  262. *--dht-file-path*=PATH::
  263. Change the DHT routing table file to PATH.
  264. Default: '$HOME/.aria2/dht.dat'
  265. *--dht-listen-port*=PORT...::
  266. Set UDP listening port for DHT.
  267. Multiple ports can be specified by using ",", for example: '6881,6885'.
  268. You can also use "-" to specify a range: '6881-6999'. "," and "-" can be used
  269. together.
  270. Default: '6881-6999'
  271. *--direct-file-mapping*='true'|'false'::
  272. Directly read from and write to each file mentioned in .torrent file.
  273. Use this option if lots of files are listed in .torrent file and aria2
  274. complains it cannot open files anymore.
  275. Default: 'true'
  276. *--enable-dht*[='true'|'false']::
  277. Enable DHT functionality. If a private flag is set in a torrent, aria2
  278. doesn't use DHT for that download even if 'true' is given.
  279. Default: 'false'
  280. *--enable-peer-exchange*[='true'|'false']::
  281. Enable Peer Exchange extension. If a private flag is set in a torrent, this
  282. feature is disabled for that download even if 'true' is given.
  283. Default: 'true'
  284. *--follow-torrent*='true'|'false'|'mem'::
  285. If 'true' or 'mem' is specified, when a file whose suffix is ".torrent" or content
  286. type is "application/x-bittorrent" is downloaded, aria2 parses it as a torrent
  287. file and downloads files mentioned in it.
  288. If 'mem' is specified, a torrent file is not written to the disk, but is just
  289. kept in memory.
  290. If 'false' is specified, the action mentioned above is not taken.
  291. Default: 'true'
  292. *--listen-port*=PORT...::
  293. Set TCP port number for BitTorrent downloads.
  294. Multiple ports can be specified by using ",", for example: '6881,6885'.
  295. You can also use "-" to specify a range: '6881-6999'.
  296. "," and "-" can be used together: '6881-6889,6999'.
  297. Default: '6881-6999'
  298. [NOTE]
  299. Make sure that the specified ports are open for incoming TCP traffic.
  300. *-u*, *--max-upload-limit*=SPEED::
  301. Set max upload speed in bytes per sec. '0' means unrestricted.
  302. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  303. Default: '0'
  304. *--peer-id-prefix*=PEERI_ID_PREFIX::
  305. Specify the prefix of peer ID. The peer ID in BitTorrent is 20 byte length.
  306. If more than 20 bytes are specified, only first 20 bytes are used.
  307. If less than 20 bytes are specified, the random alphabet characters are
  308. added to make it's length 20 bytes.
  309. Default: '-aria2-'
  310. *--seed-ratio*=RATIO::
  311. Specify share ratio. Seed completed torrents until share ratio reaches
  312. RATIO.
  313. You are strongly encouraged to specify equals or more than '1.0' here.
  314. Specify '0.0' if you intend to do seeding regardless of share ratio.
  315. If *--seed-time* option is specified along with this option, seeding ends when
  316. at least one of the conditions is satisfied.
  317. Default: '1.0'
  318. *--seed-time*=MINUTES::
  319. Specify seeding time in minutes. Also see the *--seed-ratio* option.
  320. *-T*, *--torrent-file*=TORRENT_FILE::
  321. The path to the .torrent file.
  322. You are not required to use this option because you can specify a torrent file without -T.
  323. Metalink Specific Options
  324. ~~~~~~~~~~~~~~~~~~~~~~~~~
  325. *--follow-metalink*='true'|'false'|'mem'::
  326. If 'true' or 'mem' is specified, when a file whose suffix is ".metaink" or content
  327. type of "application/metalink+xml" is downloaded, aria2 parses it as a metalink
  328. file and downloads files mentioned in it.
  329. If 'mem' is specified, a metalink file is not written to the disk, but is just
  330. kept in memory.
  331. If 'false' is specified, the action mentioned above is not taken.
  332. Default: 'true'
  333. *-M*, *--metalink-file*=METALINK_FILE::
  334. The file path to .metalink file. You are not required to use this option because you can
  335. specify a metalink file without -M.
  336. *-C*, *--metalink-servers*=NUM_SERVERS::
  337. The number of servers to connect to simultaneously.
  338. Some Metalinks regulate the number of servers to connect.
  339. aria2 strictly respects them.
  340. This means that if Metalink defines the maxconnections attribute lower
  341. than NUM_SERVERS, then aria2 uses the value of maxconnections attribute
  342. instead of NUM_SERVERS.
  343. See also *-s* and *-j* options.
  344. Default: '5'
  345. *--metalink-language*=LANGUAGE::
  346. The language of the file to download.
  347. *--metalink-location*=LOCATION[,...]::
  348. The location of the preferred server.
  349. A comma-delimited list of locations is acceptable, for example, 'JP,US'.
  350. *--metalink-os*=OS::
  351. The operating system of the file to download.
  352. *--metalink-version*=VERSION::
  353. The version of the file to download.
  354. *--metalink-preferred-protocol*=PROTO::
  355. Specify preferred protocol.
  356. The possible values are 'http', 'https', 'ftp' and 'none'.
  357. Specify 'none' to disable this feature.
  358. Default: 'none'
  359. *--metalink-enable-unique-protocol*='true'|'false'::
  360. If 'true' is given and several protocols are available for a mirror in a
  361. metalink file, aria2 uses one of them.
  362. Use *--metalink-preferred-protocol* option to specify the preference of
  363. protocol.
  364. Default: 'true'
  365. Advanced Options
  366. ~~~~~~~~~~~~~~~~
  367. *--allow-overwrite*='true'|'false'::
  368. If 'false' is given, aria2 doesn't download a file which already exists but
  369. the corresponding .aria2 file doesn't exist.
  370. In HTTP(S)/FTP download, if *--auto-file-renaming*='true' then,
  371. file name will be renamed. See *--auto-file-renaming* for details.
  372. Default: 'false'
  373. *--allow-piece-length-change*='true'|'false'::
  374. If false is given, aria2 aborts download when a piece length is different
  375. from one in a control file.
  376. If true is given, you can proceed but some download progress will be lost.
  377. Default: 'false'
  378. *--async-dns*[='true'|'false']::
  379. Enable asynchronous DNS.
  380. Default: 'true'
  381. *--auto-file-renaming*[='true'|'false']::
  382. Rename file name if the same file already exists.
  383. This option works only in HTTP(S)/FTP download.
  384. The new file name has a dot and a number(1..9999) appended.
  385. Default: 'true'
  386. *--auto-save-interval*=SEC::
  387. Save a control file(*.aria2) every SEC seconds.
  388. If '0' is given, a control file is not saved during download. aria2 saves a
  389. control file when it stops regardless of the value.
  390. The possible values are between '0' to '600'.
  391. Default: '60'
  392. *--conf-path*=PATH::
  393. Change the configuration file path to PATH.
  394. Default: '$HOME/.aria2/aria2.conf'
  395. *-D*, *--daemon*::
  396. Run as daemon.
  397. *--enable-direct-io*[='true'|'false']::
  398. Enable directI/O, which lowers cpu usage while allocating/checking files.
  399. Turn off if you encounter any error.
  400. Default: 'true'
  401. *--file-allocation*=METHOD::
  402. Specify file allocation method. METHOD is either 'none' or 'prealloc'.
  403. 'none' doesn't pre-allocate file space. 'prealloc' pre-allocates file space
  404. before download begins. This may take some time depending on the size of the
  405. file.
  406. Default: 'prealloc'
  407. *--log-level*=LEVEL::
  408. Set log level to output.
  409. LEVEL is either 'debug', 'info', 'notice', 'warn' or 'error'.
  410. Default: 'debug'
  411. *--summary-interval*=SEC::
  412. Set interval in seconds to output download progress summary.
  413. Setting '0' suppresses the output.
  414. Default: '60'
  415. [NOTE]
  416. In multi file torrent downloads, the files adjacent forward to the specified files
  417. are also allocated if they share the same piece.
  418. *-Z*, *--force-sequential*[='true'|'false']::
  419. Fetch URIs in the command-line sequentially and download each URI in a
  420. separate session, like the usual command-line download utilities.
  421. Default: 'false'
  422. *--max-download-limit*=SPEED::
  423. Set max download speed in bytes per sec. '0' means unrestricted.
  424. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  425. Default: '0'
  426. *--no-conf*::
  427. Disable loading aria2.conf file.
  428. *--no-file-allocation-limit*=SIZE::
  429. No file allocation is made for files whose size is smaller than SIZE.
  430. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  431. Default: '5M'
  432. *-P*, *--parameterized-uri*[='true'|'false']::
  433. Enable parameterized URI support.
  434. You can specify set of parts: 'http://{sv1,sv2,sv3}/foo.iso'.
  435. Also you can specify numeric sequences with step counter:
  436. '\\http://host/image[000-100:2].img'.
  437. A step counter can be omitted.
  438. If all URIs do not point to the same file, such as the second example above,
  439. -Z option is required.
  440. Default: 'false'
  441. *-q*, *--quiet*[='true'|'false']::
  442. Make aria2 quiet (no console output).
  443. Default: 'false'
  444. *--realtime-chunk-checksum*='true'|'false'::
  445. Validate chunk of data by calculating checksum while downloading a file if
  446. chunk checksums are provided. Currently Metalink is the only way to
  447. provide chunk checksums.
  448. Default: 'true'
  449. *--stop*=SEC::
  450. Stop application after SEC seconds has passed.
  451. If '0' is given, this feature is disabled.
  452. Default: '0'
  453. *-v*, *--version*::
  454. Print the version number, copyright and the configuration information and
  455. exit.
  456. OPTIONS THAT TAKE AN OPTIONAL ARGUMENT
  457. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458. The options that have its argument surrounded by square brackets([])
  459. take an optional argument. Usually omiting the argument is evaluated to 'true'.
  460. If you use short form of these options(such as '-V') and give
  461. an argument, then the option name and its argument should be concatenated(e.g.
  462. '-Vfalse'). If any spaces are inserted between the option name and the argument,
  463. the argument will be treated as URI and usually this is not what you expect.
  464. URL, TORRENT_FILE, METALINK_FILE
  465. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466. You can specify multiple URLs in command-line.
  467. Unless you specify *-Z* option, all URLs must point to the same file or downloading will fail.
  468. You can also specify arbitrary number of torrent files and metalink files
  469. stored on a local drive. Please note that they are always treated as a
  470. separate download.
  471. You can specify both torrent file with -T option and URLs. By doing this,
  472. you can download a file from both torrent swarm and HTTP(S)/FTP server at the same time,
  473. while the data from HTTP(S)/FTP are uploaded to the torrent swarm. Note that
  474. only single file torrent can be integrated with HTTP(S)/FTP.
  475. [NOTE]
  476. Make sure that URL is quoted with single(\') or double(") quotation if it
  477. contains "&" or any characters that have special meaning in shell.
  478. EXAMPLES
  479. --------
  480. HTTP/FTP Segmented Download
  481. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482. Download a file
  483. ^^^^^^^^^^^^^^^
  484. --------------------------------
  485. aria2c http://host/file.zip
  486. --------------------------------
  487. [NOTE]
  488. aria2 uses 5 connections to download 1 file by default.
  489. Download a file using 1 connection
  490. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  491. ----------------------------------
  492. aria2c -s1 http://host/file.zip
  493. ----------------------------------
  494. [NOTE]
  495. aria2 uses 5 connections to download 1 file by default.
  496. -s1 limits the number of connections to just 1.
  497. [NOTE]
  498. To pause a download, press Ctrl-C. You can resume the transfer by running aria2c with the same argument in the same directory. You can change URLs as long as they are pointing to the same file.
  499. Download a file from 2 different HTTP servers
  500. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  501. --------------------------------------------------
  502. aria2c http://host/file.zip http://mirror/file.zip
  503. --------------------------------------------------
  504. Download a file from HTTP and FTP servers
  505. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  506. -------------------------------------------------
  507. aria2c http://host1/file.zip ftp://host2/file.zip
  508. -------------------------------------------------
  509. Download files listed in a text file concurrently
  510. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  511. ------------------------
  512. aria2c -ifiles.txt -j2
  513. ------------------------
  514. [NOTE]
  515. -j option specifies the number of parallel downloads.
  516. Using proxy
  517. ^^^^^^^^^^^
  518. For HTTP:
  519. ------------------------------------------------------
  520. aria2c --http-proxy=http://proxy:8080 http://host/file
  521. ------------------------------------------------------
  522. For FTP:
  523. ------------------------------------------------------
  524. aria2c --ftp-proxy=http://proxy:8080 ftp://host/file
  525. ------------------------------------------------------
  526. [NOTE]
  527. See *--http-proxy*, *--https-proxy*, *--ftp-proxy* and *--all-proxy* for
  528. details.
  529. You can specify proxy in the environment variables. See ENVIRONMENT section.
  530. Proxy with authorization
  531. ^^^^^^^^^^^^^^^^^^^^^^^^
  532. ------------------------------------------------------
  533. aria2c --http-proxy=http://username:password@proxy:8080 http://host/file
  534. ------------------------------------------------------
  535. Metalink Download
  536. ~~~~~~~~~~~~~~~~~
  537. Download files with remote Metalink
  538. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  539. ------------------------------------------------------
  540. aria2c --follow-metalink=mem http://host/file.metalink
  541. ------------------------------------------------------
  542. Download using a local metalink file
  543. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  544. ----------------------------------------------------------
  545. aria2c -p --lowest-speed-limit=4000 file.metalink
  546. ----------------------------------------------------------
  547. [NOTE]
  548. To pause a download, press Ctrl-C.
  549. You can resume the transfer by running aria2c with the same argument in the same
  550. directory.
  551. Download several local metalink files
  552. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  553. ----------------------------------------
  554. aria2c -j2 file1.metalink file2.metalink
  555. ----------------------------------------
  556. Download only selected files using index
  557. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  558. -------------------------------------------
  559. aria2c --select-file=1-4,8 file.metalink
  560. -------------------------------------------
  561. [NOTE]
  562. The index is printed to the console using -S option.
  563. Download a file using a local .metalink file with user preference
  564. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  565. ------------------------------------------------------------------------------
  566. aria2c --metalink-location=JP,US --metalink-version=1.1 --metalink-language=en-US file.metalink
  567. ------------------------------------------------------------------------------
  568. BitTorrent Download
  569. ~~~~~~~~~~~~~~~~~~~
  570. Download files from remote BitTorrent file
  571. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  572. -------------------------------------------------------
  573. aria2c --follow-torrent=mem http://host/file.torrent
  574. -------------------------------------------------------
  575. Download using a local torrent file
  576. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  577. ---------------------------------------------
  578. aria2c --max-upload-limit=40K file.torrent
  579. ---------------------------------------------
  580. [NOTE]
  581. --max-upload-limit specifies the max of upload rate.
  582. [NOTE]
  583. To pause a download, press Ctrl-C. You can resume the transfer by run aria2c with the same argument in the same directory.
  584. Download 2 torrents
  585. ^^^^^^^^^^^^^^^^^^^
  586. --------------------------------------
  587. aria2c -j2 file1.torrent file2.torrent
  588. --------------------------------------
  589. Download a file using torrent and HTTP/FTP server
  590. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  591. -----------------------------------------------------------
  592. aria2c -Ttest.torrent http://host1/file ftp://host2/file
  593. -----------------------------------------------------------
  594. [NOTE]
  595. Downloading multi file torrent with HTTP/FTP is not supported.
  596. Download only selected files using index(usually called "selectable download")
  597. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  598. ---------------------------------------
  599. aria2c --select-file=1-4,8 file.torrent
  600. ---------------------------------------
  601. [NOTE]
  602. The index is printed to the console using -S option.
  603. Change the listening port for incoming peer
  604. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  605. ---------------------------------------------------
  606. aria2c --listen-port=7000-7001,8000 file.torrent
  607. ---------------------------------------------------
  608. [NOTE]
  609. Since aria2 doesn't configure firewall or router for port forwarding, it's up
  610. to you to do it manually.
  611. Specify the condition to stop program after torrent download finished
  612. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  613. -------------------------------------------------------
  614. aria2c --seed-time=120 --seed-ratio=1.0 file.torrent
  615. -------------------------------------------------------
  616. [NOTE]
  617. In the above example, the program exits when the 120 minutes has elapsed since download completed or seed ratio reaches 1.0.
  618. Throttle upload speed
  619. ^^^^^^^^^^^^^^^^^^^^^
  620. ----------------------------------------------
  621. aria2c --max-upload-limit=100K file.torrent
  622. ----------------------------------------------
  623. Enable DHT
  624. ^^^^^^^^^^
  625. ---------------------------------------------------------
  626. aria2c --enable-dht --dht-listen-port=6881 file.torrent
  627. ---------------------------------------------------------
  628. [NOTE]
  629. DHT uses udp port. Since aria2 doesn't configure firewall or router for port
  630. forwarding, it's up to you to do it manually.
  631. More advanced HTTP features
  632. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  633. Load cookies
  634. ^^^^^^^^^^^^
  635. ------------------------------------------------------
  636. aria2c --load-cookies=cookies.txt http://host/file.zip
  637. ------------------------------------------------------
  638. [NOTE]
  639. You can use Firefox/Mozilla's cookie file without modification.
  640. Resume download started by web browsers or another programs
  641. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  642. ---------------------------------------------------
  643. aria2c -c -s2 http://host/partiallydownloadedfile.zip
  644. ---------------------------------------------------
  645. Client certificate authorization for SSL/TLS
  646. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  647. ------------------------------------------------------------------------------------------
  648. aria2c --certificate=/path/to/mycert.pem --private-key=/path/to/mykey.pem https://host/file
  649. ------------------------------------------------------------------------------------------
  650. [NOTE]
  651. The file specified in *--private-key* must be decrypted. The behavior when
  652. encrypted one is given is undefined.
  653. Verify peer in SSL/TLS using given CA certificates
  654. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  655. ------------------------------------------------------------------------------------------
  656. aria2c --ca-certificate=/path/to/ca-certificates.crt --check-certificate https://host/file
  657. ------------------------------------------------------------------------------------------
  658. And more advanced features
  659. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  660. Throttle download speed
  661. ^^^^^^^^^^^^^^^^^^^^^^^
  662. -------------------------------------------------
  663. aria2c --max-download-limit=100K file.metalink
  664. -------------------------------------------------
  665. Repair a damaged download using -V option
  666. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  667. -----------------------
  668. aria2c -V file.metalink
  669. -----------------------
  670. [NOTE]
  671. This option is only available used with BitTorrent or metalink with chunk
  672. checksums.
  673. Drop connection if download speed is lower than specified value
  674. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  675. ------------------------------------------------
  676. aria2c --lowest-speed-limit=10K file.metalink
  677. ------------------------------------------------
  678. Parameterized URI support
  679. ^^^^^^^^^^^^^^^^^^^^^^^^^
  680. You can specify set of parts:
  681. ---------------------------------------------
  682. aria2c -P http://{host1,host2,host3}/file.iso
  683. ---------------------------------------------
  684. You can specify numeric sequence:
  685. -------------------------------------------
  686. aria2c -Z -P http://host/image[000-100].png
  687. -------------------------------------------
  688. [NOTE]
  689. -Z option is required if the all URIs don't point to the same file, such as the above example.
  690. You can specify step counter:
  691. -----------------------------------------
  692. aria2c -Z -P http://host/image[A-Z:2].png
  693. -----------------------------------------
  694. Parallel downloads of arbitrary number of URL,metalink,torrent
  695. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  696. ------------------------------------------------------------
  697. aria2c -j3 -Z http://host/file1 file2.torrent file3.metalink
  698. ------------------------------------------------------------
  699. BitTorrent Encryption
  700. ^^^^^^^^^^^^^^^^^^^^^
  701. Encrypt whole payload using ARC4:
  702. -------------------------------------------------------------------------
  703. aria2c --bt-min-crypto-level=arc4 --bt-require-crypto=true file.torrent
  704. -------------------------------------------------------------------------
  705. RESUME DOWNLOAD
  706. ---------------
  707. Usually, you can resume transfer by just issuing same command(aria2c URL)
  708. if the previous transfer is made by aria2.
  709. If the previous transfer is made by a browser or wget like sequential
  710. download manager, then use -c option to continue the transfer(aria2c -c URL).
  711. CONTROL FILE
  712. ------------
  713. aria2 uses a control file to track the progress of a download.
  714. A control file is placed in the same directory as the downloading file and
  715. its filename is the filename of downloading file with ".aria2" appended.
  716. For example, if you are downloading file.zip, then the control file should be
  717. file.zip.aria2.
  718. (There is a exception for this naming convention.
  719. If you are downloading a multi torrent, its control file is the "top directory"
  720. name of the torrent with ".aria2" appended.
  721. The "top directory" name is a value of "name" key in "info" directory in a torrent file.)
  722. Usually a control file is deleted once download completed.
  723. If aria2 decides that download cannot be resumed(for example, when downloading
  724. a file from a HTTP server which doesn't support resume), a control file is
  725. not created.
  726. Normally if you lose a control file, you cannot resume download.
  727. But if you have a torrent or metalink with chunk checksums for the file,
  728. you can resume the download without a control file by giving
  729. -V option to aria2c in command-line.
  730. SEEDING DOWNLOADED FILE IN BITTORRENT
  731. -------------------------------------
  732. You can seed downloaded file using -V option.
  733. ----------------------
  734. aria2c -V file.torrent
  735. ----------------------
  736. INPUT FILE
  737. ----------
  738. The input file can contain a list of URIs for aria2 to download.
  739. You can specify multiple URIs for a single entity:
  740. separate URIs on a single line using the TAB character.
  741. Each line is treated as if it is provided in command-line argument.
  742. Therefore they are affected by *-Z* and *-P* options.
  743. The additional *out* and *dir* options can be specified after each line of
  744. URIs. This optional line must start with white space(s).
  745. For example, the content of uri.txt is
  746. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  747. http://server/file.iso http://mirror/file.iso
  748. dir=/iso_images
  749. out=file.img
  750. http://foo/bar
  751. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  752. If aria2 is executed with *-i* uri.txt *-d* /tmp options,
  753. then 'file.iso' is saved as '/iso_images/file.img' and it is downloaded from
  754. \http://server/file.iso and \http://mirror/file.iso.
  755. The file 'bar' is downloaded from \http://foo/bar and saved as '/tmp/bar'.
  756. In some cases, *out* parameter has no effect.
  757. See note of *--out* option for the restrictions.
  758. SERVER PERFORMANCE PROFILE
  759. --------------------------
  760. This section describes the format of server performance profile.
  761. The file is plain text and each line has several NAME=VALUE pair, delimited by
  762. comma.
  763. Currently following NAMEs are recognized:
  764. host::
  765. Hostname of the server. Required.
  766. protocol::
  767. Protocol for this profile, such as ftp, http. Required.
  768. dl_speed::
  769. The average download speed observed in the previous download in bytes per sec.
  770. Required.
  771. last_updated::
  772. Last contact time in GMT with this server, specified in the seconds from the
  773. Epoch. Required.
  774. status::
  775. ERROR is set when server cannot be reached or out-of-service or timeout
  776. occurred. Otherwise, OK is set.
  777. Those fields must exist in one line. The order of the fields is not significant. You can put pairs other than the above; they are simply ignored.
  778. An example follows:
  779. --------------------------------------------------------------------------------
  780. host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  781. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR
  782. --------------------------------------------------------------------------------
  783. FILES
  784. -----
  785. aria2.conf
  786. ~~~~~~~~~~
  787. User configuration file.
  788. It must be placed under $HOME/.aria2 and must be named aria2.conf.
  789. In each line, there is 1 parameter whose syntax is name=value pair,
  790. where name is the long command-line option name without '--' prefix.
  791. The lines beginning '#' are treated as comments.
  792. --------------------------------------
  793. # sample configuration file for aria2c
  794. listen-port=60000
  795. dht-listen-port=60000
  796. seed-ratio=1.0
  797. max-upload-limit=50K
  798. ftp-pasv=true
  799. --------------------------------------
  800. dht.dat
  801. ~~~~~~~~
  802. By default, the routing table of DHT is saved to the path $HOME/.aria2/dht.dat.
  803. ENVIRONMENT
  804. -----------
  805. aria2 recognizes the following environment variables.
  806. http_proxy [\\http://][USER:PASSWORD@]HOST[:PORT]::
  807. Specify proxy server for use in HTTP.
  808. Overrides http-proxy value in configuration file.
  809. The command-line option *--http-proxy* overrides this value.
  810. https_proxy [\\http://][USER:PASSWORD@]HOST[:PORT]::
  811. Specify proxy server for use in HTTPS.
  812. Overrides https-proxy value in configuration file.
  813. The command-line option *--https-proxy* overrides this value.
  814. ftp_proxy [\\http://][USER:PASSWORD@]HOST[:PORT]::
  815. Specify proxy server for use in FTP.
  816. Overrides ftp-proxy value in configuration file.
  817. The command-line option *--ftp-proxy* overrides this value.
  818. all_proxy [\\http://][USER:PASSWORD@]HOST[:PORT]::
  819. Specify proxy server for use if no protocol-specific proxy is specified.
  820. Overrides all-proxy value in configuration file.
  821. The command-line option *--all-proxy* overrides this value.
  822. no_proxy [DOMAIN,...]::
  823. Specify comma-separated hostname or domains to which proxy should not be used.
  824. Overrides no-proxy value in configuration file.
  825. The command-line option *--no-proxy* overrides this value.
  826. RESOURCES
  827. ---------
  828. Project web site: http://aria2.sourceforge.net/[]
  829. metalink: http://www.metalinker.org/[]
  830. REPORTING BUGS
  831. --------------
  832. Report bugs to Tatsuhiro Tsujikawa <t-tujikawa at users.sourceforge.net>
  833. AUTHOR
  834. ------
  835. Tatsuhiro Tsujikawa <t-tujikawa at users.sourceforge.net>
  836. COPYRIGHT
  837. ---------
  838. Copyright (C) 2006, 2008 Tatsuhiro Tsujikawa
  839. This program is free software; you can redistribute it and/or modify
  840. it under the terms of the GNU General Public License as published by
  841. the Free Software Foundation; either version 2 of the License, or
  842. (at your option) any later version.
  843. This program is distributed in the hope that it will be useful,
  844. but WITHOUT ANY WARRANTY; without even the implied warranty of
  845. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  846. GNU General Public License for more details.
  847. You should have received a copy of the GNU General Public License
  848. along with this program; if not, write to the Free Software
  849. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  850. In addition, as a special exception, the copyright holders give
  851. permission to link the code of portions of this program with the
  852. OpenSSL library under certain conditions as described in each
  853. individual source file, and distribute linked combinations
  854. including the two.
  855. You must obey the GNU General Public License in all respects
  856. for all of the code used other than OpenSSL. If you modify
  857. file(s) with this exception, you may extend this exception to your
  858. version of the file(s), but you are not obligated to do so. If you
  859. do not wish to do so, delete this exception statement from your
  860. version. If you delete this exception statement from all source
  861. files in the program, then also delete it here.