aria2c.1.txt 37 KB

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