aria2c.1.txt 32 KB

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