aria2c.1 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.73.1 <http://docbook.sf.net/>
  4. .\" Date: 05/16/2008
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "05/16/2008" "" ""
  9. .\" disable hyphenation
  10. .nh
  11. .\" disable justification (adjust text to left margin only)
  12. .ad l
  13. .SH "NAME"
  14. aria2c - The ultra fast download utility
  15. .SH "SYNOPSIS"
  16. \fIaria2c\fR [OPTIONS] URL|TORRENT_FILE|METALINK_FILE \&...
  17. .sp
  18. .SH "DESCRIPTION"
  19. aria2 is a utility for downloading files\. The supported protocols are HTTP(S), FTP, BitTorrent, and Metalink\. It has a powerful segmented downloading ability, downloading a file from multiple sources and multiple protocols and utilizing your download bandwidth to the maximum\. 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\.
  20. .sp
  21. .SH "OPTIONS"
  22. .SS "Basic Options"
  23. .PP
  24. \-d, \-\-dir=DIR
  25. .RS 4
  26. The directory to store the downloaded file\.
  27. .RE
  28. .PP
  29. \-i, \-\-input\-file=FILE
  30. .RS 4
  31. Downloads URIs found in FILE\. You can specify multiple URIs for a single entity: separate URIs on a single line using the TAB character\. Reads input from stdin when
  32. \fI\-\fR
  33. is specified\.
  34. .RE
  35. .PP
  36. \-l, \-\-log=LOG
  37. .RS 4
  38. The file name of the log file\. If
  39. \fI\-\fR
  40. is specified, log is written to stdout\.
  41. .RE
  42. .PP
  43. \-j, \-\-max\-concurrent\-downloads=N
  44. .RS 4
  45. Set maximum number of parallel downloads\. Default:
  46. \fI1\fR
  47. .RE
  48. .PP
  49. \-\-check\-integrity=\fItrue\fR|\fIfalse\fR
  50. .RS 4
  51. Check file integrity by validating piece hash\. This option only affects in BitTorrent downloads and Metalink downloads with chunk checksums\. Use this option to re\-download a damaged portion of a file\. Default:
  52. \fIfalse\fR
  53. .RE
  54. .PP
  55. \-c, \-\-continue
  56. .RS 4
  57. Continue downloading a partially downloaded file\. Use this option to resume a download started by a web browser or another program which downloads files sequentially from the beginning\. Currently this option is only applicable to HTTP(S)/FTP downloads\.
  58. .RE
  59. .PP
  60. \-h, \-\-help[=CATEGORY]
  61. .RS 4
  62. Print usage and exit\. The help messages are classified in several categories\. For example, type "\-\-help=http" for detailed explanation for the options related to HTTP\. If no matching category is found, search option name using a given word in forward match and print the result\. Available Values:
  63. \fIbasic\fR,
  64. \fIadvanced\fR,
  65. \fIhttp\fR,
  66. \fIftp\fR,
  67. \fImetalink\fR,
  68. \fIbittorrent\fR,
  69. \fIall\fR
  70. Default:
  71. \fIbasic\fR
  72. .RE
  73. .SS "HTTP/FTP Options"
  74. .PP
  75. \-\-lowest\-speed\-limit=SPEED
  76. .RS 4
  77. Close connection if download speed is lower than or equal to this value(bytes per sec)\.
  78. \fI0\fR
  79. means aria2 does not have a lowest speed limit\. You can append
  80. \fIK\fR
  81. or
  82. \fIM\fR(1K = 1024, 1M = 1024K)\. This option does not affect BitTorrent downloads\. Default:
  83. \fI0\fR
  84. .RE
  85. .PP
  86. \-m, \-\-max\-tries=N
  87. .RS 4
  88. Set number of tries\.
  89. \fI0\fR
  90. means unlimited\. Default:
  91. \fI5\fR
  92. .RE
  93. .PP
  94. \-o, \-\-out=FILE
  95. .RS 4
  96. The file name of the downloaded file\.
  97. .RE
  98. .sp
  99. .it 1 an-trap
  100. .nr an-no-space-flag 1
  101. .nr an-break-flag 1
  102. .br
  103. Note
  104. In Metalink, BitTorrent download you cannot specify file name\. The file name specified here is only used when the URLs fed to aria2 is done by command line without \-i, \-Z option, like this: aria2c \-o myfile\.zip http://mirror1/file\.zip http://mirror2/file\.zip
  105. .PP
  106. \-\-retry\-wait=SEC
  107. .RS 4
  108. Set the seconds to wait to retry after an error has occured\. Specify a value between
  109. \fI0\fR
  110. and
  111. \fI60\fR\. Default:
  112. \fI5\fR
  113. .RE
  114. .PP
  115. \-s, \-\-split=N
  116. .RS 4
  117. Download a file using N connections\. N must be between
  118. \fI1\fR
  119. and
  120. \fI5\fR\. This option affects all URLs\. Thus, aria2 connects to each URL with N connections\. Default:
  121. \fI1\fR
  122. .RE
  123. .PP
  124. \-t, \-\-timeout=SEC
  125. .RS 4
  126. Set timeout in seconds\. Default:
  127. \fI60\fR
  128. .RE
  129. .SS "HTTP Specific Options"
  130. .PP
  131. \-\-http\-auth\-scheme=SCHEME
  132. .RS 4
  133. Set HTTP authentication scheme\. Currently,
  134. \fIbasic\fR
  135. is the only supported scheme\. Default:
  136. \fIbasic\fR
  137. .RE
  138. .PP
  139. \-\-http\-user=USER
  140. .RS 4
  141. Set HTTP user\. This affects all URLs\.
  142. .RE
  143. .PP
  144. \-\-http\-passwd=PASSWD
  145. .RS 4
  146. Set HTTP password\. This affects all URLs\.
  147. .RE
  148. .PP
  149. \-\-http\-proxy=HOST:PORT
  150. .RS 4
  151. Use HTTP proxy server\. This affects all URLs\.
  152. .RE
  153. .PP
  154. \-\-http\-proxy\-user=USER
  155. .RS 4
  156. Set HTTP proxy user\. This affects all URLs\.
  157. .RE
  158. .PP
  159. \-\-http\-proxy\-passwd=PASSWD
  160. .RS 4
  161. Set HTTP proxy password\. This affects all URLs\.
  162. .RE
  163. .PP
  164. \-\-http\-proxy\-method=METHOD
  165. .RS 4
  166. Set the method to use in proxy request\.
  167. \fIMETHOD\fR
  168. is either
  169. \fIget\fR
  170. or
  171. \fItunnel\fR\. Default:
  172. \fItunnel\fR
  173. .RE
  174. .PP
  175. \-\-referer=REFERER
  176. .RS 4
  177. Set Referer\. This affects all URLs\.
  178. .RE
  179. .PP
  180. \-\-enable\-http\-keep\-alive[=\fItrue\fR|\fIfalse\fR]
  181. .RS 4
  182. Enable HTTP/1\.1 persistent connection\. Default:
  183. \fItrue\fR
  184. .RE
  185. .PP
  186. \-\-enable\-http\-pipelining[=\fItrue\fR|\fIfalse\fR]
  187. .RS 4
  188. Enable HTTP/1\.1 pipelining\. Default:
  189. \fIfalse\fR
  190. .RE
  191. .PP
  192. \-\-header=HEADER
  193. .RS 4
  194. Append HEADER to HTTP request header\. You can use this option repeatedly to specify more than one header: aria2c \-\-header="X\-A: b78" \-\-header="X\-B: 9J1" http://host/file
  195. .RE
  196. .PP
  197. \-\-load\-cookies=FILE
  198. .RS 4
  199. Load cookies from FILE\. The format of FILE is the same used by Netscape and Mozilla\.
  200. .RE
  201. .PP
  202. \-U, \-\-user\-agent=USER_AGENT
  203. .RS 4
  204. Set user agent for HTTP(S) downloads\.
  205. .RE
  206. .SS "FTP Specific Options"
  207. .PP
  208. \-\-ftp\-user=USER
  209. .RS 4
  210. Set FTP user\. This affects all URLs\. Default:
  211. \fIanonymous\fR
  212. .RE
  213. .PP
  214. \-\-ftp\-passwd=PASSWD
  215. .RS 4
  216. Set FTP password\. This affects all URLs\. Default:
  217. \fIARIA2USER@\fR
  218. .RE
  219. .PP
  220. \-p, \-\-ftp\-pasv
  221. .RS 4
  222. Use passive mode in FTP\.
  223. .RE
  224. .PP
  225. \-\-ftp\-type=TYPE
  226. .RS 4
  227. Set FTP transfer type\. TYPE is either
  228. \fIbinary\fR
  229. or
  230. \fIascii\fR\. Default:
  231. \fIbinary\fR
  232. .RE
  233. .PP
  234. \-\-ftp\-reuse\-connection[=\fItrue\fR|\fIfalse\fR]
  235. .RS 4
  236. Reuse connection in FTP\. Default:
  237. \fItrue\fR
  238. .RE
  239. .PP
  240. \-\-ftp\-via\-http\-proxy=METHOD
  241. .RS 4
  242. Use HTTP proxy in FTP\. METHOD is either
  243. \fIget\fR
  244. or
  245. \fItunnel\fR\. Default:
  246. \fItunnel\fR
  247. .RE
  248. .PP
  249. \-n, \-\-no\-netrc
  250. .RS 4
  251. Disables netrc support\. netrc support is enabled by default\.
  252. .RE
  253. .SS "BitTorrent/Metalink Options"
  254. .PP
  255. \-\-select\-file=INDEX\&...
  256. .RS 4
  257. Set file to download by specifing its index\. You can find the file index using the \-\-show\-files option\. Multiple indexes can be specified by using ",", for example:
  258. \fI3,6\fR\. You can also use "\-" to specify a range:
  259. \fI1\-5\fR\. "," and "\-" can be used together:
  260. \fI1\-5,8,9\fR\. When used with the \-M option, index may vary depending on the query (see \-\-metalink\-* options)\.
  261. .RE
  262. .sp
  263. .it 1 an-trap
  264. .nr an-no-space-flag 1
  265. .nr an-break-flag 1
  266. .br
  267. Note
  268. In multi file torrent, the adjacent files specified by this option may also be downloaded\. This is by design, not a bug\. A single piece may include several files or part of files, and aria2 writes the piece to the appropriate files\.
  269. .PP
  270. \-S, \-\-show\-files
  271. .RS 4
  272. Print file listing of \.torrent or \.metalink file and exit\. In case of \.torrent file, additional information (infohash, piece length, etc) is also printed\.
  273. .RE
  274. .SS "BitTorrent Specific Options"
  275. .PP
  276. \-\-bt\-min\-crypto\-level=\fIplain\fR|\fIarc4\fR
  277. .RS 4
  278. Set minimum level of encryption method\. If several encryption methods are provided by a peer, aria2 chooses a lowest one which satisfies the given level\. Default:
  279. \fIplain\fR
  280. .RE
  281. .PP
  282. \-\-bt\-require\-crypto=\fItrue\fR|\fIfalse\fR
  283. .RS 4
  284. If true is given, aria2 doesn\'t accept and establish connection with legacy BitTorrent handshake(\e19BitTorrent protocol)\. Thus aria2 always uses Obfuscation handshake\. Default:
  285. \fIfalse\fR
  286. .RE
  287. .PP
  288. \-\-dht\-entry\-point=HOST:PORT
  289. .RS 4
  290. Set host and port as an entry point to DHT network\.
  291. .RE
  292. .PP
  293. \-\-dht\-listen\-port=PORT\&...
  294. .RS 4
  295. Set UDP listening port for DHT\. Multiple ports can be specified by using ",", for example:
  296. \fI6881,6885\fR\. You can also use "\-" to specify a range:
  297. \fI6881\-6999\fR\. "," and "\-" can be used together\. Default:
  298. \fI6881\-6999\fR
  299. .RE
  300. .PP
  301. \-\-direct\-file\-mapping=\fItrue\fR|\fIfalse\fR
  302. .RS 4
  303. Directly read from and write to each file mentioned in \.torrent file\. Use this option if lots of files are listed in \.torrent file and aria2 complains it cannot open files anymore\. Default:
  304. \fItrue\fR
  305. .RE
  306. .PP
  307. \-\-enable\-dht[=\fItrue\fR|\fIfalse\fR]
  308. .RS 4
  309. Enable DHT functionality\. If a private flag is set in a torrent, aria2 doesn\'t use DHT for that download even if
  310. \fItrue\fR
  311. is given\. Default:
  312. \fIfalse\fR
  313. .RE
  314. .PP
  315. \-\-enable\-peer\-exchange[=\fItrue\fR|\fIfalse\fR]
  316. .RS 4
  317. Enable Peer Exchange extension\. If a private flag is set in a torrent, this feature is disabled for that download even if
  318. \fItrue\fR
  319. is given\. Default:
  320. \fItrue\fR
  321. .RE
  322. .PP
  323. \-\-follow\-torrent=\fItrue\fR|\fIfalse\fR|\fImem\fR
  324. .RS 4
  325. If
  326. \fItrue\fR
  327. or
  328. \fImem\fR
  329. is specified, when a file whose suffix is "\.torrent" or content type is "application/x\-bittorrent" is downloaded, aria2 parses it as a torrent file and downloads files mentioned in it\. If
  330. \fImem\fR
  331. is specified, a torrent file is not written to the disk, but is just kept in memory\. If
  332. \fIfalse\fR
  333. is specified, the action mentioned above is not taken\. Default:
  334. \fItrue\fR
  335. .RE
  336. .PP
  337. \-\-listen\-port=PORT\&...
  338. .RS 4
  339. Set TCP port number for BitTorrent downloads\. Multiple ports can be specified by using ",", for example:
  340. \fI6881,6885\fR\. You can also use "\-" to specify a range:
  341. \fI6881\-6999\fR\. "," and "\-" can be used together:
  342. \fI6881\-6889,6999\fR\. Default:
  343. \fI6881\-6999\fR
  344. .RE
  345. .sp
  346. .it 1 an-trap
  347. .nr an-no-space-flag 1
  348. .nr an-break-flag 1
  349. .br
  350. Note
  351. Make sure that the specified ports are open for incoming TCP traffic\.
  352. .PP
  353. \-\-max\-upload\-limit=SPEED
  354. .RS 4
  355. Set max upload speed in bytes per sec\.
  356. \fI0\fR
  357. means unrestricted\. You can append
  358. \fIK\fR
  359. or
  360. \fIM\fR(1K = 1024, 1M = 1024K)\. Default:
  361. \fI0\fR
  362. .RE
  363. .PP
  364. \-\-peer\-id\-prefix=PEERI_ID_PREFIX
  365. .RS 4
  366. Specify the prefix of peer ID\. The peer ID in BitTorrent is 20 byte length\. If more than 20 bytes are specified, only first 20 bytes are used\. If less than 20 bytes are specified, the random alphabet characters are added to make it\'s length 20 bytes\. Default:
  367. \fI\-aria2\-\fR
  368. .RE
  369. .PP
  370. \-\-seed\-ratio=RATIO
  371. .RS 4
  372. Specify share ratio\. Seed completed torrents until share ratio reaches] RATIO\. I strongly encourages you to specify equals or more than
  373. \fI1\.0\fR
  374. here\. Specify
  375. \fI0\.0\fR
  376. if you intend to do seeding regardless of share ratio\. If \-\-seed\-time option is specified along with this option, seeding ends when at least one of the conditions is satisfied\. Default:
  377. \fI1\.0\fR
  378. .RE
  379. .PP
  380. \-\-seed\-time=MINUTES
  381. .RS 4
  382. Specify seeding time in minutes\. Also see the \-\-seed\-ratio option\.
  383. .RE
  384. .PP
  385. \-T, \-\-torrent\-file=TORRENT_FILE
  386. .RS 4
  387. The path to the \.torrent file\. You may not use this option because you can specify torrent file without \-T\.
  388. .RE
  389. .SS "Metalink Specific Options"
  390. .PP
  391. \-\-follow\-metalink=\fItrue\fR|\fIfalse\fR|\fImem\fR
  392. .RS 4
  393. If
  394. \fItrue\fR
  395. or
  396. \fImem\fR
  397. is specified, when a file whose suffix is "\.metaink" or content type is "application/metalink+xml" is downloaded, aria2 parses it as a metalink file and downloads files mentioned in it\. If
  398. \fImem\fR
  399. is specified, a metalink file is not written to the disk, but is just kept in memory\. If
  400. \fIfalse\fR
  401. is specified, the action mentioned above is not taken\. Default:
  402. \fItrue\fR
  403. .RE
  404. .PP
  405. \-M, \-\-metalink\-file=METALINK_FILE
  406. .RS 4
  407. The file path to \.metalink file\. You may not use this option because you can specify metalink file without \-M\.
  408. .RE
  409. .PP
  410. \-C, \-\-metalink\-servers=NUM_SERVERS
  411. .RS 4
  412. The number of servers to connect to simultaneously\. Some metalinks regulates the number of servers to connect\. aria2 respects them\. Default:
  413. \fI1\fR
  414. .RE
  415. .PP
  416. \-\-metalink\-language=LANGUAGE
  417. .RS 4
  418. The language of the file to download\.
  419. .RE
  420. .PP
  421. \-\-metalink\-location=LOCATION[,\&...]
  422. .RS 4
  423. The location of the preferred server\. A comma\-deliminated list of locations is acceptable, for example,
  424. \fIJP,US\fR\.
  425. .RE
  426. .PP
  427. \-\-metalink\-os=OS
  428. .RS 4
  429. The operating system of the file to download\.
  430. .RE
  431. .PP
  432. \-\-metalink\-version=VERSION
  433. .RS 4
  434. The version of the file to download\.
  435. .RE
  436. .PP
  437. \-\-metalink\-preferred\-protocol=PROTO
  438. .RS 4
  439. Specify preferred protocol\. The possible values are
  440. \fIhttp\fR,
  441. \fIhttps\fR,
  442. \fIftp\fR
  443. and
  444. \fInone\fR\. Specifiy
  445. \fInone\fR
  446. to disable this feature\. Default:
  447. \fInone\fR
  448. .RE
  449. .PP
  450. \-\-metalink\-enable\-unique\-protocol=\fItrue\fR|\fIfalse\fR
  451. .RS 4
  452. If
  453. \fItrue\fR
  454. is given and several protocols are available for a mirror in a metalink file, aria2 uses one of them\. Use \-\-metalink\-preferred\-protocol option to specify the preference of protocol\. Default:
  455. \fItrue\fR
  456. .RE
  457. .SS "Advanced Options"
  458. .PP
  459. \-\-allow\-overwrite=\fItrue\fR|\fIfalse\fR
  460. .RS 4
  461. If
  462. \fIfalse\fR
  463. is given, aria2 doesn\'t download a file which already exists but the corresponding \.aria2 file doesn\'t exist\. In HTTP(S)/FTP download, if \-\-auto\-file\-renaming=\fItrue\fR
  464. then, file name will be renamed\. See \-\-auto\-file\-renaming for details\. Default:
  465. \fIfalse\fR
  466. .RE
  467. .PP
  468. \-\-allow\-piece\-length\-change=\fItrue\fR|\fIfalse\fR
  469. .RS 4
  470. If false is given, aria2 aborts download when a piece length is different from one in a control file\. If true is given, you can proceed but some download progress will be lost\. Default:
  471. \fIfalse\fR
  472. .RE
  473. .PP
  474. \-\-async\-dns[=\fItrue\fR|\fIfalse\fR]
  475. .RS 4
  476. Enable asynchronous DNS\. Default:
  477. \fItrue\fR
  478. .RE
  479. .PP
  480. \-\-auto\-file\-renaming[=\fItrue\fR|\fIfalse\fR]
  481. .RS 4
  482. Rename file name if the same file already exists\. This option works only in HTTP(S)/FTP download\. The new file name has a dot and a number(1\.\.9999) appended\. Default:
  483. \fItrue\fR
  484. .RE
  485. .PP
  486. \-\-conf\-path=PATH
  487. .RS 4
  488. Change the configuration file path to PATH\. Default:
  489. \fI$HOME/\.aria2/aria2\.conf\fR
  490. .RE
  491. .PP
  492. \-D, \-\-daemon
  493. .RS 4
  494. Run as daemon\.
  495. .RE
  496. .PP
  497. \-\-enable\-direct\-io[=\fItrue\fR|\fIfalse\fR]
  498. .RS 4
  499. Enable directI/O, which lowers cpu usage while allocating/checking files\. Turn off if you encounter any error\. Default:
  500. \fIfalse\fR
  501. .RE
  502. .PP
  503. \-\-file\-allocation=METHOD
  504. .RS 4
  505. Specify file allocation method\. METHOD is either
  506. \fInone\fR
  507. or
  508. \fIprealloc\fR\.
  509. \fInone\fR
  510. doesn\'t pre\-allocate file space\.
  511. \fIprealloc\fR
  512. pre\-allocates file space before download begins\. This may take some time depending on the size of the file\. Default:
  513. \fIprealloc\fR
  514. .RE
  515. .PP
  516. \-\-log\-level=LEVEL
  517. .RS 4
  518. Set log level to output\. LEVEL is either
  519. \fIdebug\fR,
  520. \fIinfo\fR,
  521. \fInotice\fR,
  522. \fIwarn\fR
  523. or
  524. \fIerror\fR\. Default:
  525. \fIdebug\fR
  526. .RE
  527. .PP
  528. \-\-summary\-interval=SEC
  529. .RS 4
  530. Set interval in seconds to output download progress summary\. Setting
  531. \fI0\fR
  532. suppresses the output\. Default:
  533. \fI60\fR
  534. .RE
  535. .sp
  536. .it 1 an-trap
  537. .nr an-no-space-flag 1
  538. .nr an-break-flag 1
  539. .br
  540. Note
  541. In multi file torrent, the files adjacent forward to the specified files are also allocated if they share a same piece\.
  542. .PP
  543. \-Z, \-\-force\-sequential[=\fItrue\fR|\fIfalse\fR]
  544. .RS 4
  545. Fetch URIs in the command\-line sequentially and download each URI in a separate session, like the usual command\-line download utilities\. Default:
  546. \fIfalse\fR
  547. .RE
  548. .PP
  549. \-\-max\-download\-limit=SPEED
  550. .RS 4
  551. Set max download speed in bytes per sec\.
  552. \fI0\fR
  553. means unrestricted\. You can append
  554. \fIK\fR
  555. or
  556. \fIM\fR(1K = 1024, 1M = 1024K)\. Default:
  557. \fI0\fR
  558. .RE
  559. .PP
  560. \-\-no\-conf
  561. .RS 4
  562. Disable loading aria2\.conf file\.
  563. .RE
  564. .PP
  565. \-\-no\-file\-allocation\-limit=SIZE
  566. .RS 4
  567. No file allocation is made for files whose size is smaller than SIZE\. You can append
  568. \fIK\fR
  569. or
  570. \fIM\fR(1K = 1024, 1M = 1024K)\. Default:
  571. \fI5M\fR
  572. .RE
  573. .PP
  574. \-P, \-\-parameterized\-uri[=\fItrue\fR|\fIfalse\fR]
  575. .RS 4
  576. Enable parameterized URI support\. You can specify set of parts:
  577. \fIhttp://{sv1,sv2,sv3}/foo\.iso\fR\. Also you can specify numeric sequences with step counter:
  578. \fIhttp://host/image[000\-100:2]\.img\fR\. A step counter can be omitted\. If all URIs do not point to the same file, such as the second example above, \-Z option is required\. Default:
  579. \fIfalse\fR
  580. .RE
  581. .PP
  582. \-q, \-\-quiet[=\fItrue\fR|\fIfalse\fR]
  583. .RS 4
  584. Make aria2 quite (no console output)\. Default:
  585. \fIfalse\fR
  586. .RE
  587. .PP
  588. \-\-realtime\-chunk\-checksum=\fItrue\fR|\fIfalse\fR
  589. .RS 4
  590. Validate chunk of data by calculating checkusm while download a file if chunk checksums are provided\. Currently Metalink is the only way to to provide chunk checksums\. Default:
  591. \fItrue\fR
  592. .RE
  593. .PP
  594. \-\-stop=SEC
  595. .RS 4
  596. Stop application after SEC seconds has passed\. If
  597. \fI0\fR
  598. is given, this feature is disabled\. Default:
  599. \fI0\fR
  600. .RE
  601. .PP
  602. \-v, \-\-version
  603. .RS 4
  604. Print the version number, copyright and the configuration information and exit\.
  605. .RE
  606. .SS "URL, TORRENT_FILE, METALINK_FILE"
  607. You can specify multiple URLs in command\-line\. Unless you specify \-Z option, all URLs must point to the same file or downloading will fail\.
  608. .sp
  609. You can also specify arbitrary number of torrent files and metalink files stored in a local drive\. Please note that they are always treated as a separate download\.
  610. .sp
  611. You can specify both torrent file with \-T option and URLs\. By doing this, download a file from both torrent swarm and HTTP(S)/FTP server at the same time, while the data from HTTP(S)/FTP are uploaded to the torrent swarm\. Note that only single file torrent can be integrated with HTTP(S)/FTP\.
  612. .sp
  613. .sp
  614. .it 1 an-trap
  615. .nr an-no-space-flag 1
  616. .nr an-break-flag 1
  617. .br
  618. Note
  619. Make sure that URL is quoted with single(\') or double(") quotation if it contains "&" or any characters that have special meaning in shell\.
  620. .sp
  621. .SH "EXAMPLES"
  622. .SS "HTTP/FTP Segmented Download"
  623. .sp
  624. .it 1 an-trap
  625. .nr an-no-space-flag 1
  626. .nr an-break-flag 1
  627. .br
  628. Download a file using 1 connection
  629. .RS
  630. .sp
  631. .RS 4
  632. .nf
  633. aria2c http://host/file\.zip
  634. .fi
  635. .RE
  636. .sp
  637. .it 1 an-trap
  638. .nr an-no-space-flag 1
  639. .nr an-break-flag 1
  640. .br
  641. Note
  642. 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\.
  643. .sp
  644. .RE
  645. .sp
  646. .it 1 an-trap
  647. .nr an-no-space-flag 1
  648. .nr an-break-flag 1
  649. .br
  650. Download a file using 2 connections
  651. .RS
  652. .sp
  653. .RS 4
  654. .nf
  655. aria2c \-s2 http://host/file\.zip
  656. .fi
  657. .RE
  658. .RE
  659. .sp
  660. .it 1 an-trap
  661. .nr an-no-space-flag 1
  662. .nr an-break-flag 1
  663. .br
  664. Download a file from 2 different HTTP servers
  665. .RS
  666. .sp
  667. .RS 4
  668. .nf
  669. aria2c http://host/file\.zip http://mirror/file\.zip
  670. .fi
  671. .RE
  672. .RE
  673. .sp
  674. .it 1 an-trap
  675. .nr an-no-space-flag 1
  676. .nr an-break-flag 1
  677. .br
  678. Download a file from HTTP and FTP servers
  679. .RS
  680. .sp
  681. .RS 4
  682. .nf
  683. aria2c http://host1/file\.zip ftp://host2/file\.zip
  684. .fi
  685. .RE
  686. .RE
  687. .sp
  688. .it 1 an-trap
  689. .nr an-no-space-flag 1
  690. .nr an-break-flag 1
  691. .br
  692. Download files listed in a file concurrently
  693. .RS
  694. .sp
  695. .RS 4
  696. .nf
  697. aria2c \-ifiles\.txt \-j2
  698. .fi
  699. .RE
  700. .sp
  701. .it 1 an-trap
  702. .nr an-no-space-flag 1
  703. .nr an-break-flag 1
  704. .br
  705. Note
  706. \-j option specifies the number of parallel downloads\.
  707. .sp
  708. .RE
  709. .SS "Metalink Download"
  710. .sp
  711. .it 1 an-trap
  712. .nr an-no-space-flag 1
  713. .nr an-break-flag 1
  714. .br
  715. Download files with remote Metalink
  716. .RS
  717. .sp
  718. .RS 4
  719. .nf
  720. aria2c \-\-follow\-metalink=mem http://host/file\.metalink
  721. .fi
  722. .RE
  723. .RE
  724. .sp
  725. .it 1 an-trap
  726. .nr an-no-space-flag 1
  727. .nr an-break-flag 1
  728. .br
  729. Download using a local metalink file
  730. .RS
  731. .sp
  732. .RS 4
  733. .nf
  734. aria2c \-p \-\-lowest\-speed\-limit=4000 file\.metalink
  735. .fi
  736. .RE
  737. .sp
  738. .it 1 an-trap
  739. .nr an-no-space-flag 1
  740. .nr an-break-flag 1
  741. .br
  742. Note
  743. To pause a download, press Ctrl\-C\. You can resume the transfer by running aria2c with the same argument at the same directory\.
  744. .sp
  745. .RE
  746. .sp
  747. .it 1 an-trap
  748. .nr an-no-space-flag 1
  749. .nr an-break-flag 1
  750. .br
  751. Download several local metalink files
  752. .RS
  753. .sp
  754. .RS 4
  755. .nf
  756. aria2c \-j2 file1\.metalink file2\.metalink
  757. .fi
  758. .RE
  759. .RE
  760. .sp
  761. .it 1 an-trap
  762. .nr an-no-space-flag 1
  763. .nr an-break-flag 1
  764. .br
  765. Download only selected files using index
  766. .RS
  767. .sp
  768. .RS 4
  769. .nf
  770. aria2c \-\-select\-file=1\-4,8 file\.metalink
  771. .fi
  772. .RE
  773. .sp
  774. .it 1 an-trap
  775. .nr an-no-space-flag 1
  776. .nr an-break-flag 1
  777. .br
  778. Note
  779. The index is printed to the console using \-S option\.
  780. .sp
  781. .RE
  782. .sp
  783. .it 1 an-trap
  784. .nr an-no-space-flag 1
  785. .nr an-break-flag 1
  786. .br
  787. Download a file using a local .metalink file with user preference
  788. .RS
  789. .sp
  790. .RS 4
  791. .nf
  792. aria2c \-\-metalink\-location=JP,US \-\-metalink\-version=1\.1 \-\-metalink\-language=en\-US \-C2 file\.metalink
  793. .fi
  794. .RE
  795. .RE
  796. .SS "BitTorrent Download"
  797. .sp
  798. .it 1 an-trap
  799. .nr an-no-space-flag 1
  800. .nr an-break-flag 1
  801. .br
  802. Download files from remote BitTorrent file
  803. .RS
  804. .sp
  805. .RS 4
  806. .nf
  807. aria2c \-\-follow\-bittorrent=mem http://host/file\.torrent
  808. .fi
  809. .RE
  810. .RE
  811. .sp
  812. .it 1 an-trap
  813. .nr an-no-space-flag 1
  814. .nr an-break-flag 1
  815. .br
  816. Download using a local torrent file
  817. .RS
  818. .sp
  819. .RS 4
  820. .nf
  821. aria2c \-\-max\-upload\-limit=40K file\.torrent
  822. .fi
  823. .RE
  824. .sp
  825. .it 1 an-trap
  826. .nr an-no-space-flag 1
  827. .nr an-break-flag 1
  828. .br
  829. Note
  830. \-\-max\-upload\-limit specifies the max of upload rate\.
  831. .sp
  832. .sp
  833. .it 1 an-trap
  834. .nr an-no-space-flag 1
  835. .nr an-break-flag 1
  836. .br
  837. Note
  838. To pause a download, press Ctrl\-C\. You can resume the transfer by run aria2c with the same argument at the same directory\.
  839. .sp
  840. .RE
  841. .sp
  842. .it 1 an-trap
  843. .nr an-no-space-flag 1
  844. .nr an-break-flag 1
  845. .br
  846. Download 2 torrents
  847. .RS
  848. .sp
  849. .RS 4
  850. .nf
  851. aria2c \-j2 file1\.torrent file2\.torrent
  852. .fi
  853. .RE
  854. .RE
  855. .sp
  856. .it 1 an-trap
  857. .nr an-no-space-flag 1
  858. .nr an-break-flag 1
  859. .br
  860. Download a file using torrent and HTTP/FTP server
  861. .RS
  862. .sp
  863. .RS 4
  864. .nf
  865. aria2c \-Ttest\.torrent http://host1/file ftp://host2/file
  866. .fi
  867. .RE
  868. .sp
  869. .it 1 an-trap
  870. .nr an-no-space-flag 1
  871. .nr an-break-flag 1
  872. .br
  873. Note
  874. Downloading multi file torrent with HTTP/FTP is not supported\.
  875. .sp
  876. .RE
  877. .sp
  878. .it 1 an-trap
  879. .nr an-no-space-flag 1
  880. .nr an-break-flag 1
  881. .br
  882. Download only selected files using index(usually called "selectable download")
  883. .RS
  884. .sp
  885. .RS 4
  886. .nf
  887. aria2c \-\-select\-file=1\-4,8 file\.torrent
  888. .fi
  889. .RE
  890. .sp
  891. .it 1 an-trap
  892. .nr an-no-space-flag 1
  893. .nr an-break-flag 1
  894. .br
  895. Note
  896. The index is printed to the console using \-S option\.
  897. .sp
  898. .RE
  899. .sp
  900. .it 1 an-trap
  901. .nr an-no-space-flag 1
  902. .nr an-break-flag 1
  903. .br
  904. Change the listening port for incoming peer
  905. .RS
  906. .sp
  907. .RS 4
  908. .nf
  909. aria2c \-\-listen\-port=7000\-7001,8000 file\.torrent
  910. .fi
  911. .RE
  912. .sp
  913. .it 1 an-trap
  914. .nr an-no-space-flag 1
  915. .nr an-break-flag 1
  916. .br
  917. Note
  918. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\.
  919. .sp
  920. .RE
  921. .sp
  922. .it 1 an-trap
  923. .nr an-no-space-flag 1
  924. .nr an-break-flag 1
  925. .br
  926. Specify the condition to stop program after torrent download finished
  927. .RS
  928. .sp
  929. .RS 4
  930. .nf
  931. aria2c \-\-seed\-time=120 \-\-seed\-ratio=1\.0 file\.torrent
  932. .fi
  933. .RE
  934. .sp
  935. .it 1 an-trap
  936. .nr an-no-space-flag 1
  937. .nr an-break-flag 1
  938. .br
  939. Note
  940. In the above example, the program exists when the 120 minutes has elapsed since download completed or seed ratio reaches 1\.0\.
  941. .sp
  942. .RE
  943. .sp
  944. .it 1 an-trap
  945. .nr an-no-space-flag 1
  946. .nr an-break-flag 1
  947. .br
  948. Throttle upload speed
  949. .RS
  950. .sp
  951. .RS 4
  952. .nf
  953. aria2c \-\-max\-upload\-limit=100K file\.torrent
  954. .fi
  955. .RE
  956. .RE
  957. .sp
  958. .it 1 an-trap
  959. .nr an-no-space-flag 1
  960. .nr an-break-flag 1
  961. .br
  962. Enable DHT
  963. .RS
  964. .sp
  965. .RS 4
  966. .nf
  967. aria2c \-\-enable\-dht \-\-dht\-listen\-port=6881 file\.torrent
  968. .fi
  969. .RE
  970. .sp
  971. .it 1 an-trap
  972. .nr an-no-space-flag 1
  973. .nr an-break-flag 1
  974. .br
  975. Note
  976. DHT uses udp port\. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\.
  977. .sp
  978. .RE
  979. .SS "More advanced HTTP features"
  980. .sp
  981. .it 1 an-trap
  982. .nr an-no-space-flag 1
  983. .nr an-break-flag 1
  984. .br
  985. Load cookies
  986. .RS
  987. .sp
  988. .RS 4
  989. .nf
  990. aria2c \-\-load\-cookies=cookies\.txt http://host/file\.zip
  991. .fi
  992. .RE
  993. .sp
  994. .it 1 an-trap
  995. .nr an-no-space-flag 1
  996. .nr an-break-flag 1
  997. .br
  998. Note
  999. You can use Firefox/Mozilla\'s cookie file without modification\.
  1000. .sp
  1001. .RE
  1002. .sp
  1003. .it 1 an-trap
  1004. .nr an-no-space-flag 1
  1005. .nr an-break-flag 1
  1006. .br
  1007. Resume download started by web browsers or another programs
  1008. .RS
  1009. .sp
  1010. .RS 4
  1011. .nf
  1012. aria2c \-c \-s2 http://host/partiallydownloadedfile\.zip
  1013. .fi
  1014. .RE
  1015. .RE
  1016. .SS "And more advanced features"
  1017. .sp
  1018. .it 1 an-trap
  1019. .nr an-no-space-flag 1
  1020. .nr an-break-flag 1
  1021. .br
  1022. Throttle download speed
  1023. .RS
  1024. .sp
  1025. .RS 4
  1026. .nf
  1027. aria2c \-\-max\-download\-limit=100K file\.metalink
  1028. .fi
  1029. .RE
  1030. .RE
  1031. .sp
  1032. .it 1 an-trap
  1033. .nr an-no-space-flag 1
  1034. .nr an-break-flag 1
  1035. .br
  1036. Repair a damaged download using --check-integrity option
  1037. .RS
  1038. .sp
  1039. .RS 4
  1040. .nf
  1041. aria2c \-\-check\-integrity=true file\.metalink
  1042. .fi
  1043. .RE
  1044. .sp
  1045. .it 1 an-trap
  1046. .nr an-no-space-flag 1
  1047. .nr an-break-flag 1
  1048. .br
  1049. Note
  1050. This option is only available used with BitTorrent or metalink with chunk checksums\.
  1051. .sp
  1052. .RE
  1053. .sp
  1054. .it 1 an-trap
  1055. .nr an-no-space-flag 1
  1056. .nr an-break-flag 1
  1057. .br
  1058. Drop connection if download speed is lower than specified value
  1059. .RS
  1060. .sp
  1061. .RS 4
  1062. .nf
  1063. aria2c \-\-lowest\-speed\-limit=10K file\.metalink
  1064. .fi
  1065. .RE
  1066. .RE
  1067. .sp
  1068. .it 1 an-trap
  1069. .nr an-no-space-flag 1
  1070. .nr an-break-flag 1
  1071. .br
  1072. Parameterized URI support
  1073. .RS
  1074. You can specify set of parts:
  1075. .sp
  1076. .sp
  1077. .RS 4
  1078. .nf
  1079. aria2c \-P http://{host1,host2,host3}/file\.iso
  1080. .fi
  1081. .RE
  1082. You can specify numeric sequence:
  1083. .sp
  1084. .sp
  1085. .RS 4
  1086. .nf
  1087. aria2c \-Z \-P http://host/image[000\-100]\.png
  1088. .fi
  1089. .RE
  1090. .sp
  1091. .it 1 an-trap
  1092. .nr an-no-space-flag 1
  1093. .nr an-break-flag 1
  1094. .br
  1095. Note
  1096. \-Z option is required if the all URIs don\'t point to the same file, such as the above example\.
  1097. .sp
  1098. You can specify step counter:
  1099. .sp
  1100. .sp
  1101. .RS 4
  1102. .nf
  1103. aria2c \-Z \-P http://host/image[A\-Z:2]\.png
  1104. .fi
  1105. .RE
  1106. .RE
  1107. .sp
  1108. .it 1 an-trap
  1109. .nr an-no-space-flag 1
  1110. .nr an-break-flag 1
  1111. .br
  1112. Parallel downloads of arbitrary number of URL,metalink,torrent
  1113. .RS
  1114. .sp
  1115. .RS 4
  1116. .nf
  1117. aria2c \-j3 \-Z http://host/file1 file2\.torrent file3\.metalink
  1118. .fi
  1119. .RE
  1120. .RE
  1121. .sp
  1122. .it 1 an-trap
  1123. .nr an-no-space-flag 1
  1124. .nr an-break-flag 1
  1125. .br
  1126. BitTorrent Encryption
  1127. .RS
  1128. Encrypt whole payload using ARC4:
  1129. .sp
  1130. .sp
  1131. .RS 4
  1132. .nf
  1133. aria2c \-\-bt\-min\-crypto\-level=arc4 \-\-bt\-require\-crypto=true file\.torrent
  1134. .fi
  1135. .RE
  1136. .RE
  1137. .SH "RESUME DOWNLOAD"
  1138. Usually, you can resume transfer by just issuing same command(aria2c URL) if the previous transfer is made by aria2\.
  1139. .sp
  1140. If the previous transfer is made by a browser or wget like sequencial download manager, then use \-c option to continue the transfer(aria2c \-c URL)\.
  1141. .sp
  1142. .SH "CONTROL FILE"
  1143. aria2 uses a control file to keep track the progress of download\. A control file is placed at the same directory of the dowloading file and its filename is the filename of downloading file with "\.aria2" appended\. For example, if you are downloading file\.zip, then the control file should be file\.zip\.aria2\. (There is a exception for this naming convention\. If you are downloading a multi torrent, its control file is the "top directory" name of the torrent with "\.aria2" appended\. The "top directory" name is a value of "name" key in "info" directory in a torrent file\.)
  1144. .sp
  1145. Usually a control file is deleted once download completed\. If aria2 decides that download cannot be resumed(for example, when downloading a file from a HTTP server which doesn\'t support resume), a control file is not created\.
  1146. .sp
  1147. Normally if you lose a control file, you cannot resume download\. But if you have a torrent or metalink with chunk checksums for the file, you can resume the download without a control file by giving \-\-check\-integrity=true option to aria2c in command\-line\.
  1148. .sp
  1149. .SH "SEEDING DOWNLOADED FILE IN BITTORRENT"
  1150. You can seed downloaded file using \-\-check\-integrity=true option\.
  1151. .sp
  1152. .sp
  1153. .RS 4
  1154. .nf
  1155. aria2c \-\-check\-integrity=true file\.torrent
  1156. .fi
  1157. .RE
  1158. .SH "FILES"
  1159. .SS "aria2\.conf"
  1160. User configuration file\. It must be placed under $HOME/\.aria2 and must be named as aria2\.conf\. In each line, there is 1 parameter whose syntax is name=value pair, where name is the long command\-line option name without \fI\-\-\fR prefix\. The lines beginning \fI#\fR are treated as comments\.
  1161. .sp
  1162. .sp
  1163. .RS 4
  1164. .nf
  1165. # sample configuration file for aria2c
  1166. listen\-port=60000
  1167. dht\-listen\-port=60000
  1168. seed\-ratio=1\.0
  1169. max\-upload\-limit=50K
  1170. ftp\-pasv=true
  1171. .fi
  1172. .RE
  1173. .SS "dht\.dat"
  1174. The routing table of DHT is saved to the path $HOME/\.aria2/dht\.dat\.
  1175. .sp
  1176. .SH "RESOURCES"
  1177. Project web site: http://aria2\.sourceforge\.net/
  1178. .sp
  1179. metalink: http://www\.metalinker\.org/
  1180. .sp
  1181. .SH "REPORTING BUGS"
  1182. Report bugs to Tatsuhiro Tsujikawa <t\-tujikawa@users\.sourceforge\.net>
  1183. .sp
  1184. .SH "AUTHOR"
  1185. Tatsuhiro Tsujikawa <t\-tujikawa@users\.sourceforge\.net>
  1186. .sp
  1187. .SH "COPYRIGHT"
  1188. Copyright \(co 2006, 2008 Tatsuhiro Tsujikawa
  1189. .sp
  1190. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version\.
  1191. .sp
  1192. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\. See the GNU General Public License for more details\.
  1193. .sp
  1194. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc\., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301 USA
  1195. .sp
  1196. In addition, as a special exception, the copyright holders give permission to link the code of portions of this program with the OpenSSL library under certain conditions as described in each individual source file, and distribute linked combinations including the two\. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL\. If you modify file(s) with this exception, you may extend this exception to your version of the file(s), but you are not obligated to do so\. If you do not wish to do so, delete this exception statement from your version\. If you delete this exception statement from all source files in the program, then also delete it here\.
  1197. .sp