aria2c.1 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
  4. .\" Date: 09/27/2008
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "09/27/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. aria2c [\fIOPTIONS\fR] [\fIURL\fR | \fITORRENT_FILE\fR | \fIMETALINK_FILE\fR]\&...
  17. .sp
  18. .SH "DESCRIPTION"
  19. 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\&.
  20. .sp
  21. .SH "OPTIONS"
  22. .SS "Basic Options"
  23. .PP
  24. \fB\-d\fR, \fB\-\-dir\fR=DIR
  25. .RS 4
  26. The directory to store the downloaded file\&.
  27. .RE
  28. .PP
  29. \fB\-i\fR, \fB\-\-input\-file\fR=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. \fB\-l\fR, \fB\-\-log\fR=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. \fB\-j\fR, \fB\-\-max\-concurrent\-downloads\fR=N
  44. .RS 4
  45. Set maximum number of parallel downloads for every static (HTTP/FTP) URL, torrent and metalink\&. Default:
  46. \fI5\fR
  47. .RE
  48. .PP
  49. \fB\-\-check\-integrity\fR=\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. \fB\-c\fR, \fB\-\-continue\fR
  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. \fB\-h\fR, \fB\-\-help\fR[=CATEGORY]
  61. .RS 4
  62. Print usage and exit\&. The help messages are classified in several categories\&. For example, type "\fB\-\-help\fR=http" for detailed explanation for the options related to HTTP\&. If no matching category is found, search option name using a given word in middle 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. \fB\-\-connect\-timeout\fR=SEC
  76. .RS 4
  77. Set the connect timeout in seconds to establish connection to HTTP/FTP/proxy server\&. After the connection is established, this option makes no effect and
  78. \fB\-\-timeout\fR
  79. option is used instead\&. Default:
  80. \fI60\fR
  81. .RE
  82. .PP
  83. \fB\-\-lowest\-speed\-limit\fR=SPEED
  84. .RS 4
  85. Close connection if download speed is lower than or equal to this value(bytes per sec)\&.
  86. \fI0\fR
  87. means aria2 does not have a lowest speed limit\&. You can append
  88. \fIK\fR
  89. or
  90. \fIM\fR(1K = 1024, 1M = 1024K)\&. This option does not affect BitTorrent downloads\&. Default:
  91. \fI0\fR
  92. .RE
  93. .PP
  94. \fB\-\-max\-file\-not\-found\fR=NUM
  95. .RS 4
  96. If aria2 recieves `file not found\' status from the remote HTTP/FTP servers NUM times without getting a single byte, then force the download to fail\&. Specify
  97. \fI0\fR
  98. to disable this option\&. This options is only effective only when using HTTP/FTP servers\&. Default:
  99. \fI0\fR
  100. .RE
  101. .PP
  102. \fB\-m\fR, \fB\-\-max\-tries\fR=N
  103. .RS 4
  104. Set number of tries\&.
  105. \fI0\fR
  106. means unlimited\&. Default:
  107. \fI5\fR
  108. .RE
  109. .PP
  110. \fB\-o\fR, \fB\-\-out\fR=FILE
  111. .RS 4
  112. The file name of the downloaded file\&.
  113. .RE
  114. .sp
  115. .it 1 an-trap
  116. .nr an-no-space-flag 1
  117. .nr an-break-flag 1
  118. .br
  119. Note
  120. 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 \fB\-i\fR, \fB\-Z\fR option, like this: aria2c \-o myfile\&.zip http://mirror1/file\&.zip http://mirror2/file\&.zip
  121. .PP
  122. \fB\-R\fR, \fB\-\-remote\-time\fR[=\fItrue\fR|\fIfalse\fR]
  123. .RS 4
  124. Retrieve timestamp of the remote file from the remote HTTP/FTP server and if it is available, apply it to the local file\&. Default:
  125. \fIfalse\fR
  126. .RE
  127. .PP
  128. \fB\-\-retry\-wait\fR=SEC
  129. .RS 4
  130. Set the seconds to wait to retry after an error has occured\&. Specify a value between
  131. \fI0\fR
  132. and
  133. \fI60\fR\&. Default:
  134. \fI5\fR
  135. .RE
  136. .PP
  137. \fB\-\-server\-stat\-of\fR=FILE
  138. .RS 4
  139. Specify the filename to which performance profile of the servers is saved\&. You can load saved data using
  140. \fB\-\-server\-stat\-if\fR
  141. option\&. See SERVER PERFORMANCE PROFILE section below for file format\&.
  142. .RE
  143. .PP
  144. \fB\-\-server\-stat\-if\fR=FILE
  145. .RS 4
  146. Specify the filename to load performance profile of the servers\&. The loaded data will be used in some URI selector such as
  147. \fIfeedback\fR\&. See also
  148. \fB\-\-uri\-selector\fR
  149. option\&. See SERVER PERFORMANCE PROFILE section below for file format\&.
  150. .RE
  151. .PP
  152. \fB\-\-server\-stat\-timeout\fR=SEC
  153. .RS 4
  154. Specifies timeout in seconds to invalidate performance profile of the servers since the last contact to them\&. Default:
  155. \fI86400\fR
  156. (24hours)
  157. .RE
  158. .PP
  159. \fB\-s\fR, \fB\-\-split\fR=N
  160. .RS 4
  161. Download a file using N connections\&. If more than N URLs are given, first N URLs are used and remaining URLs are used for backup\&. If less than N URLs are given, those URLs are used more than once so that N connections total are made simultaneously\&. N must be between
  162. \fI1\fR
  163. and
  164. \fI16\fR\&. Please see
  165. \fB\-j\fR
  166. option too\&. Default:
  167. \fI5\fR
  168. .RE
  169. .PP
  170. \fB\-t\fR, \fB\-\-timeout\fR=SEC
  171. .RS 4
  172. Set timeout in seconds\&. Default:
  173. \fI60\fR
  174. .RE
  175. .PP
  176. \fB\-\-uri\-selector\fR=SELECTOR
  177. .RS 4
  178. Specify URI selection algorithm\&. Possible values are
  179. \fIinorder\fR
  180. and
  181. \fIfeedback\fR\&. If
  182. \fIinorder\fR
  183. is given, URI is tried in the order appeared in the URI list\&. If
  184. \fIfeedback\fR
  185. is given, aria2 uses download speed observed in the previous downloads and choose fastest server in the URI list\&. This also effectively skips dead mirrors\&. The observed download speed is a part of performance profile of servers mentioned in
  186. \fB\-\-server\-stat\-of\fR
  187. and
  188. \fB\-\-server\-stat\-if\fR
  189. options\&. Default:
  190. \fIinorder\fR
  191. .RE
  192. .SS "HTTP Specific Options"
  193. .PP
  194. \fB\-\-http\-auth\-scheme\fR=SCHEME
  195. .RS 4
  196. Set HTTP authentication scheme\&. Currently,
  197. \fIbasic\fR
  198. is the only supported scheme\&. Default:
  199. \fIbasic\fR
  200. .RE
  201. .PP
  202. \fB\-\-http\-user\fR=USER
  203. .RS 4
  204. Set HTTP user\&. This affects all URLs\&.
  205. .RE
  206. .PP
  207. \fB\-\-http\-passwd\fR=PASSWD
  208. .RS 4
  209. Set HTTP password\&. This affects all URLs\&.
  210. .RE
  211. .PP
  212. \fB\-\-http\-proxy\fR=HOST:PORT
  213. .RS 4
  214. Use HTTP proxy server\&. This affects all URLs\&.
  215. .RE
  216. .PP
  217. \fB\-\-http\-proxy\-user\fR=USER
  218. .RS 4
  219. Set HTTP proxy user\&. This affects all URLs\&.
  220. .RE
  221. .PP
  222. \fB\-\-http\-proxy\-passwd\fR=PASSWD
  223. .RS 4
  224. Set HTTP proxy password\&. This affects all URLs\&.
  225. .RE
  226. .PP
  227. \fB\-\-http\-proxy\-method\fR=METHOD
  228. .RS 4
  229. Set the method to use in proxy request\&.
  230. \fIMETHOD\fR
  231. is either
  232. \fIget\fR
  233. or
  234. \fItunnel\fR\&. Default:
  235. \fItunnel\fR
  236. .RE
  237. .PP
  238. \fB\-\-referer\fR=REFERER
  239. .RS 4
  240. Set Referer\&. This affects all URLs\&.
  241. .RE
  242. .PP
  243. \fB\-\-enable\-http\-keep\-alive\fR[=\fItrue\fR|\fIfalse\fR]
  244. .RS 4
  245. Enable HTTP/1\&.1 persistent connection\&. Default:
  246. \fItrue\fR
  247. .RE
  248. .PP
  249. \fB\-\-enable\-http\-pipelining\fR[=\fItrue\fR|\fIfalse\fR]
  250. .RS 4
  251. Enable HTTP/1\&.1 pipelining\&. Default:
  252. \fIfalse\fR
  253. .RE
  254. .PP
  255. \fB\-\-header\fR=HEADER
  256. .RS 4
  257. Append HEADER to HTTP request header\&. You can use this option repeatedly to specify more than one header: aria2c
  258. \fB\-\-header\fR="X\-A: b78"
  259. \fB\-\-header\fR="X\-B: 9J1" http://host/file
  260. .RE
  261. .PP
  262. \fB\-\-load\-cookies\fR=FILE
  263. .RS 4
  264. Load Cookies from FILE using the Firefox3 format(SQLite3) and the Mozilla/Firefox(1\&.x/2\&.x)/Netscape format\&.
  265. .RE
  266. .sp
  267. .it 1 an-trap
  268. .nr an-no-space-flag 1
  269. .nr an-break-flag 1
  270. .br
  271. Note
  272. If aria2 is build without libsqlite3, then it doesn\'t support Firefox3 cookie\&.
  273. .PP
  274. \fB\-U\fR, \fB\-\-user\-agent\fR=USER_AGENT
  275. .RS 4
  276. Set user agent for HTTP(S) downloads\&.
  277. .RE
  278. .SS "FTP Specific Options"
  279. .PP
  280. \fB\-\-ftp\-user\fR=USER
  281. .RS 4
  282. Set FTP user\&. This affects all URLs\&. Default:
  283. \fIanonymous\fR
  284. .RE
  285. .PP
  286. \fB\-\-ftp\-passwd\fR=PASSWD
  287. .RS 4
  288. Set FTP password\&. This affects all URLs\&. Default:
  289. \fIARIA2USER@\fR
  290. .RE
  291. .PP
  292. \fB\-p\fR, \fB\-\-ftp\-pasv\fR
  293. .RS 4
  294. Use passive mode in FTP\&.
  295. .RE
  296. .PP
  297. \fB\-\-ftp\-type\fR=TYPE
  298. .RS 4
  299. Set FTP transfer type\&. TYPE is either
  300. \fIbinary\fR
  301. or
  302. \fIascii\fR\&. Default:
  303. \fIbinary\fR
  304. .RE
  305. .PP
  306. \fB\-\-ftp\-reuse\-connection\fR[=\fItrue\fR|\fIfalse\fR]
  307. .RS 4
  308. Reuse connection in FTP\&. Default:
  309. \fItrue\fR
  310. .RE
  311. .PP
  312. \fB\-\-ftp\-via\-http\-proxy\fR=METHOD
  313. .RS 4
  314. Use HTTP proxy in FTP\&. METHOD is either
  315. \fIget\fR
  316. or
  317. \fItunnel\fR\&. Default:
  318. \fItunnel\fR
  319. .RE
  320. .PP
  321. \fB\-n\fR, \fB\-\-no\-netrc\fR
  322. .RS 4
  323. Disables netrc support\&. netrc support is enabled by default\&.
  324. .RE
  325. .SS "BitTorrent/Metalink Options"
  326. .PP
  327. \fB\-\-select\-file\fR=INDEX\&...
  328. .RS 4
  329. Set file to download by specifing its index\&. You can find the file index using the
  330. \fB\-\-show\-files\fR
  331. option\&. Multiple indexes can be specified by using ",", for example:
  332. \fI3,6\fR\&. You can also use "\-" to specify a range:
  333. \fI1\-5\fR\&. "," and "\-" can be used together:
  334. \fI1\-5,8,9\fR\&. When used with the \-M option, index may vary depending on the query (see
  335. \fB\-\-metalink\-\fR* options)\&.
  336. .RE
  337. .sp
  338. .it 1 an-trap
  339. .nr an-no-space-flag 1
  340. .nr an-break-flag 1
  341. .br
  342. Note
  343. 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\&.
  344. .PP
  345. \fB\-S\fR, \fB\-\-show\-files\fR
  346. .RS 4
  347. Print file listing of \&.torrent or \&.metalink file and exit\&. In case of \&.torrent file, additional information (infohash, piece length, etc) is also printed\&.
  348. .RE
  349. .SS "BitTorrent Specific Options"
  350. .PP
  351. \fB\-\-bt\-max\-open\-files\fR=NUM
  352. .RS 4
  353. Specify maximum number of files to open in each BitTorrent download\&. Default:
  354. \fI100\fR
  355. .RE
  356. .PP
  357. \fB\-\-bt\-min\-crypto\-level\fR=\fIplain\fR|\fIarc4\fR
  358. .RS 4
  359. 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:
  360. \fIplain\fR
  361. .RE
  362. .PP
  363. \fB\-\-bt\-require\-crypto\fR=\fItrue\fR|\fIfalse\fR
  364. .RS 4
  365. If true is given, aria2 doesn\'t accept and establish connection with legacy BitTorrent handshake(\e19BitTorrent protocol)\&. Thus aria2 always uses Obfuscation handshake\&. Default:
  366. \fIfalse\fR
  367. .RE
  368. .PP
  369. \fB\-\-bt\-request\-peer\-speed\-limit\fR=SPEED
  370. .RS 4
  371. In BitTorrent downloads, if the download speed is lower than SPEED, aria2 initiates and accepts connections ignoring max peer cap\&. You can append
  372. \fIK\fR
  373. or
  374. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  375. \fI51200\fR
  376. .RE
  377. .PP
  378. \fB\-\-bt\-seed\-unverified\fR[=\fItrue\fR|\fIfalse\fR]
  379. .RS 4
  380. Seed previously downloaded files without verifying piece hashes\&. Default:
  381. \fIfalse\fR
  382. .RE
  383. .PP
  384. \fB\-\-dht\-entry\-point\fR=HOST:PORT
  385. .RS 4
  386. Set host and port as an entry point to DHT network\&.
  387. .RE
  388. .PP
  389. \fB\-\-dht\-listen\-port\fR=PORT\&...
  390. .RS 4
  391. Set UDP listening port for DHT\&. Multiple ports can be specified by using ",", for example:
  392. \fI6881,6885\fR\&. You can also use "\-" to specify a range:
  393. \fI6881\-6999\fR\&. "," and "\-" can be used together\&. Default:
  394. \fI6881\-6999\fR
  395. .RE
  396. .PP
  397. \fB\-\-direct\-file\-mapping\fR=\fItrue\fR|\fIfalse\fR
  398. .RS 4
  399. 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:
  400. \fItrue\fR
  401. .RE
  402. .PP
  403. \fB\-\-enable\-dht\fR[=\fItrue\fR|\fIfalse\fR]
  404. .RS 4
  405. Enable DHT functionality\&. If a private flag is set in a torrent, aria2 doesn\'t use DHT for that download even if
  406. \fItrue\fR
  407. is given\&. Default:
  408. \fIfalse\fR
  409. .RE
  410. .PP
  411. \fB\-\-enable\-peer\-exchange\fR[=\fItrue\fR|\fIfalse\fR]
  412. .RS 4
  413. Enable Peer Exchange extension\&. If a private flag is set in a torrent, this feature is disabled for that download even if
  414. \fItrue\fR
  415. is given\&. Default:
  416. \fItrue\fR
  417. .RE
  418. .PP
  419. \fB\-\-follow\-torrent\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  420. .RS 4
  421. If
  422. \fItrue\fR
  423. or
  424. \fImem\fR
  425. 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
  426. \fImem\fR
  427. is specified, a torrent file is not written to the disk, but is just kept in memory\&. If
  428. \fIfalse\fR
  429. is specified, the action mentioned above is not taken\&. Default:
  430. \fItrue\fR
  431. .RE
  432. .PP
  433. \fB\-\-listen\-port\fR=PORT\&...
  434. .RS 4
  435. Set TCP port number for BitTorrent downloads\&. Multiple ports can be specified by using ",", for example:
  436. \fI6881,6885\fR\&. You can also use "\-" to specify a range:
  437. \fI6881\-6999\fR\&. "," and "\-" can be used together:
  438. \fI6881\-6889,6999\fR\&. Default:
  439. \fI6881\-6999\fR
  440. .RE
  441. .sp
  442. .it 1 an-trap
  443. .nr an-no-space-flag 1
  444. .nr an-break-flag 1
  445. .br
  446. Note
  447. Make sure that the specified ports are open for incoming TCP traffic\&.
  448. .PP
  449. \fB\-\-max\-upload\-limit\fR=SPEED
  450. .RS 4
  451. Set max upload speed in bytes per sec\&.
  452. \fI0\fR
  453. means unrestricted\&. You can append
  454. \fIK\fR
  455. or
  456. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  457. \fI0\fR
  458. .RE
  459. .PP
  460. \fB\-\-peer\-id\-prefix\fR=PEERI_ID_PREFIX
  461. .RS 4
  462. 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:
  463. \fI\-aria2\-\fR
  464. .RE
  465. .PP
  466. \fB\-\-seed\-ratio\fR=RATIO
  467. .RS 4
  468. Specify share ratio\&. Seed completed torrents until share ratio reaches] RATIO\&. I strongly encourages you to specify equals or more than
  469. \fI1\&.0\fR
  470. here\&. Specify
  471. \fI0\&.0\fR
  472. if you intend to do seeding regardless of share ratio\&. If
  473. \fB\-\-seed\-time\fR
  474. option is specified along with this option, seeding ends when at least one of the conditions is satisfied\&. Default:
  475. \fI1\&.0\fR
  476. .RE
  477. .PP
  478. \fB\-\-seed\-time\fR=MINUTES
  479. .RS 4
  480. Specify seeding time in minutes\&. Also see the
  481. \fB\-\-seed\-ratio\fR
  482. option\&.
  483. .RE
  484. .PP
  485. \fB\-T\fR, \fB\-\-torrent\-file\fR=TORRENT_FILE
  486. .RS 4
  487. The path to the \&.torrent file\&. You may not use this option because you can specify torrent file without \-T\&.
  488. .RE
  489. .SS "Metalink Specific Options"
  490. .PP
  491. \fB\-\-follow\-metalink\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  492. .RS 4
  493. If
  494. \fItrue\fR
  495. or
  496. \fImem\fR
  497. 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
  498. \fImem\fR
  499. is specified, a metalink file is not written to the disk, but is just kept in memory\&. If
  500. \fIfalse\fR
  501. is specified, the action mentioned above is not taken\&. Default:
  502. \fItrue\fR
  503. .RE
  504. .PP
  505. \fB\-M\fR, \fB\-\-metalink\-file\fR=METALINK_FILE
  506. .RS 4
  507. The file path to \&.metalink file\&. You may not use this option because you can specify metalink file without \-M\&.
  508. .RE
  509. .PP
  510. \fB\-C\fR, \fB\-\-metalink\-servers\fR=NUM_SERVERS
  511. .RS 4
  512. The number of servers to connect to simultaneously\&. Some metalinks regulates the number of servers to connect\&. aria2 respects them\&. Default:
  513. \fI5\fR
  514. .RE
  515. .PP
  516. \fB\-\-metalink\-language\fR=LANGUAGE
  517. .RS 4
  518. The language of the file to download\&.
  519. .RE
  520. .PP
  521. \fB\-\-metalink\-location\fR=LOCATION[,\&...]
  522. .RS 4
  523. The location of the preferred server\&. A comma\-deliminated list of locations is acceptable, for example,
  524. \fIJP,US\fR\&.
  525. .RE
  526. .PP
  527. \fB\-\-metalink\-os\fR=OS
  528. .RS 4
  529. The operating system of the file to download\&.
  530. .RE
  531. .PP
  532. \fB\-\-metalink\-version\fR=VERSION
  533. .RS 4
  534. The version of the file to download\&.
  535. .RE
  536. .PP
  537. \fB\-\-metalink\-preferred\-protocol\fR=PROTO
  538. .RS 4
  539. Specify preferred protocol\&. The possible values are
  540. \fIhttp\fR,
  541. \fIhttps\fR,
  542. \fIftp\fR
  543. and
  544. \fInone\fR\&. Specifiy
  545. \fInone\fR
  546. to disable this feature\&. Default:
  547. \fInone\fR
  548. .RE
  549. .PP
  550. \fB\-\-metalink\-enable\-unique\-protocol\fR=\fItrue\fR|\fIfalse\fR
  551. .RS 4
  552. If
  553. \fItrue\fR
  554. is given and several protocols are available for a mirror in a metalink file, aria2 uses one of them\&. Use
  555. \fB\-\-metalink\-preferred\-protocol\fR
  556. option to specify the preference of protocol\&. Default:
  557. \fItrue\fR
  558. .RE
  559. .SS "Advanced Options"
  560. .PP
  561. \fB\-\-allow\-overwrite\fR=\fItrue\fR|\fIfalse\fR
  562. .RS 4
  563. If
  564. \fIfalse\fR
  565. 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
  566. \fB\-\-auto\-file\-renaming\fR=\fItrue\fR
  567. then, file name will be renamed\&. See
  568. \fB\-\-auto\-file\-renaming\fR
  569. for details\&. Default:
  570. \fIfalse\fR
  571. .RE
  572. .PP
  573. \fB\-\-allow\-piece\-length\-change\fR=\fItrue\fR|\fIfalse\fR
  574. .RS 4
  575. 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:
  576. \fIfalse\fR
  577. .RE
  578. .PP
  579. \fB\-\-async\-dns\fR[=\fItrue\fR|\fIfalse\fR]
  580. .RS 4
  581. Enable asynchronous DNS\&. Default:
  582. \fItrue\fR
  583. .RE
  584. .PP
  585. \fB\-\-auto\-file\-renaming\fR[=\fItrue\fR|\fIfalse\fR]
  586. .RS 4
  587. 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:
  588. \fItrue\fR
  589. .RE
  590. .PP
  591. \fB\-\-conf\-path\fR=PATH
  592. .RS 4
  593. Change the configuration file path to PATH\&. Default:
  594. \fI$HOME/\&.aria2/aria2\&.conf\fR
  595. .RE
  596. .PP
  597. \fB\-D\fR, \fB\-\-daemon\fR
  598. .RS 4
  599. Run as daemon\&.
  600. .RE
  601. .PP
  602. \fB\-\-enable\-direct\-io\fR[=\fItrue\fR|\fIfalse\fR]
  603. .RS 4
  604. Enable directI/O, which lowers cpu usage while allocating/checking files\&. Turn off if you encounter any error\&. Default:
  605. \fIfalse\fR
  606. .RE
  607. .PP
  608. \fB\-\-file\-allocation\fR=METHOD
  609. .RS 4
  610. Specify file allocation method\&. METHOD is either
  611. \fInone\fR
  612. or
  613. \fIprealloc\fR\&.
  614. \fInone\fR
  615. doesn\'t pre\-allocate file space\&.
  616. \fIprealloc\fR
  617. pre\-allocates file space before download begins\&. This may take some time depending on the size of the file\&. Default:
  618. \fIprealloc\fR
  619. .RE
  620. .PP
  621. \fB\-\-log\-level\fR=LEVEL
  622. .RS 4
  623. Set log level to output\&. LEVEL is either
  624. \fIdebug\fR,
  625. \fIinfo\fR,
  626. \fInotice\fR,
  627. \fIwarn\fR
  628. or
  629. \fIerror\fR\&. Default:
  630. \fIdebug\fR
  631. .RE
  632. .PP
  633. \fB\-\-summary\-interval\fR=SEC
  634. .RS 4
  635. Set interval in seconds to output download progress summary\&. Setting
  636. \fI0\fR
  637. suppresses the output\&. Default:
  638. \fI60\fR
  639. .RE
  640. .sp
  641. .it 1 an-trap
  642. .nr an-no-space-flag 1
  643. .nr an-break-flag 1
  644. .br
  645. Note
  646. In multi file torrent, the files adjacent forward to the specified files are also allocated if they share a same piece\&.
  647. .PP
  648. \fB\-Z\fR, \fB\-\-force\-sequential\fR[=\fItrue\fR|\fIfalse\fR]
  649. .RS 4
  650. Fetch URIs in the command\-line sequentially and download each URI in a separate session, like the usual command\-line download utilities\&. Default:
  651. \fIfalse\fR
  652. .RE
  653. .PP
  654. \fB\-\-max\-download\-limit\fR=SPEED
  655. .RS 4
  656. Set max download speed in bytes per sec\&.
  657. \fI0\fR
  658. means unrestricted\&. You can append
  659. \fIK\fR
  660. or
  661. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  662. \fI0\fR
  663. .RE
  664. .PP
  665. \fB\-\-no\-conf\fR
  666. .RS 4
  667. Disable loading aria2\&.conf file\&.
  668. .RE
  669. .PP
  670. \fB\-\-no\-file\-allocation\-limit\fR=SIZE
  671. .RS 4
  672. No file allocation is made for files whose size is smaller than SIZE\&. You can append
  673. \fIK\fR
  674. or
  675. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  676. \fI5M\fR
  677. .RE
  678. .PP
  679. \fB\-P\fR, \fB\-\-parameterized\-uri\fR[=\fItrue\fR|\fIfalse\fR]
  680. .RS 4
  681. Enable parameterized URI support\&. You can specify set of parts:
  682. \fIhttp://{sv1,sv2,sv3}/foo\&.iso\fR\&. Also you can specify numeric sequences with step counter:
  683. \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:
  684. \fIfalse\fR
  685. .RE
  686. .PP
  687. \fB\-q\fR, \fB\-\-quiet\fR[=\fItrue\fR|\fIfalse\fR]
  688. .RS 4
  689. Make aria2 quite (no console output)\&. Default:
  690. \fIfalse\fR
  691. .RE
  692. .PP
  693. \fB\-\-realtime\-chunk\-checksum\fR=\fItrue\fR|\fIfalse\fR
  694. .RS 4
  695. 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:
  696. \fItrue\fR
  697. .RE
  698. .PP
  699. \fB\-\-stop\fR=SEC
  700. .RS 4
  701. Stop application after SEC seconds has passed\&. If
  702. \fI0\fR
  703. is given, this feature is disabled\&. Default:
  704. \fI0\fR
  705. .RE
  706. .PP
  707. \fB\-v\fR, \fB\-\-version\fR
  708. .RS 4
  709. Print the version number, copyright and the configuration information and exit\&.
  710. .RE
  711. .SS "URL, TORRENT_FILE, METALINK_FILE"
  712. You can specify multiple URLs in command\-line\&. Unless you specify \fB\-Z\fR option, all URLs must point to the same file or downloading will fail\&.
  713. .sp
  714. 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\&.
  715. .sp
  716. 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\&.
  717. .sp
  718. .sp
  719. .it 1 an-trap
  720. .nr an-no-space-flag 1
  721. .nr an-break-flag 1
  722. .br
  723. Note
  724. Make sure that URL is quoted with single(\') or double(") quotation if it contains "&" or any characters that have special meaning in shell\&.
  725. .sp
  726. .SH "EXAMPLES"
  727. .SS "HTTP/FTP Segmented Download"
  728. .sp
  729. .it 1 an-trap
  730. .nr an-no-space-flag 1
  731. .nr an-break-flag 1
  732. .br
  733. Download a file
  734. .RS
  735. .sp
  736. .RS 4
  737. .nf
  738. aria2c http://host/file\&.zip
  739. .fi
  740. .RE
  741. .sp
  742. .it 1 an-trap
  743. .nr an-no-space-flag 1
  744. .nr an-break-flag 1
  745. .br
  746. Note
  747. aria2 uses 5 connections to download 1 file by default\&.
  748. .sp
  749. .RE
  750. .sp
  751. .it 1 an-trap
  752. .nr an-no-space-flag 1
  753. .nr an-break-flag 1
  754. .br
  755. Download a file using 1 connection
  756. .RS
  757. .sp
  758. .RS 4
  759. .nf
  760. aria2c \-s1 http://host/file\&.zip
  761. .fi
  762. .RE
  763. .sp
  764. .it 1 an-trap
  765. .nr an-no-space-flag 1
  766. .nr an-break-flag 1
  767. .br
  768. Note
  769. aria2 uses 5 connections to download 1 file by default\&. \-s1 limtis the number of connections to just 1\&.
  770. .sp
  771. .sp
  772. .it 1 an-trap
  773. .nr an-no-space-flag 1
  774. .nr an-break-flag 1
  775. .br
  776. Note
  777. 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\&.
  778. .sp
  779. .RE
  780. .sp
  781. .it 1 an-trap
  782. .nr an-no-space-flag 1
  783. .nr an-break-flag 1
  784. .br
  785. Download a file from 2 different HTTP servers
  786. .RS
  787. .sp
  788. .RS 4
  789. .nf
  790. aria2c http://host/file\&.zip http://mirror/file\&.zip
  791. .fi
  792. .RE
  793. .RE
  794. .sp
  795. .it 1 an-trap
  796. .nr an-no-space-flag 1
  797. .nr an-break-flag 1
  798. .br
  799. Download a file from HTTP and FTP servers
  800. .RS
  801. .sp
  802. .RS 4
  803. .nf
  804. aria2c http://host1/file\&.zip ftp://host2/file\&.zip
  805. .fi
  806. .RE
  807. .RE
  808. .sp
  809. .it 1 an-trap
  810. .nr an-no-space-flag 1
  811. .nr an-break-flag 1
  812. .br
  813. Download files listed in a file concurrently
  814. .RS
  815. .sp
  816. .RS 4
  817. .nf
  818. aria2c \-ifiles\&.txt \-j2
  819. .fi
  820. .RE
  821. .sp
  822. .it 1 an-trap
  823. .nr an-no-space-flag 1
  824. .nr an-break-flag 1
  825. .br
  826. Note
  827. \-j option specifies the number of parallel downloads\&.
  828. .sp
  829. .RE
  830. .SS "Metalink Download"
  831. .sp
  832. .it 1 an-trap
  833. .nr an-no-space-flag 1
  834. .nr an-break-flag 1
  835. .br
  836. Download files with remote Metalink
  837. .RS
  838. .sp
  839. .RS 4
  840. .nf
  841. aria2c \-\-follow\-metalink=mem http://host/file\&.metalink
  842. .fi
  843. .RE
  844. .RE
  845. .sp
  846. .it 1 an-trap
  847. .nr an-no-space-flag 1
  848. .nr an-break-flag 1
  849. .br
  850. Download using a local metalink file
  851. .RS
  852. .sp
  853. .RS 4
  854. .nf
  855. aria2c \-p \-\-lowest\-speed\-limit=4000 file\&.metalink
  856. .fi
  857. .RE
  858. .sp
  859. .it 1 an-trap
  860. .nr an-no-space-flag 1
  861. .nr an-break-flag 1
  862. .br
  863. Note
  864. To pause a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument at the same directory\&.
  865. .sp
  866. .RE
  867. .sp
  868. .it 1 an-trap
  869. .nr an-no-space-flag 1
  870. .nr an-break-flag 1
  871. .br
  872. Download several local metalink files
  873. .RS
  874. .sp
  875. .RS 4
  876. .nf
  877. aria2c \-j2 file1\&.metalink file2\&.metalink
  878. .fi
  879. .RE
  880. .RE
  881. .sp
  882. .it 1 an-trap
  883. .nr an-no-space-flag 1
  884. .nr an-break-flag 1
  885. .br
  886. Download only selected files using index
  887. .RS
  888. .sp
  889. .RS 4
  890. .nf
  891. aria2c \-\-select\-file=1\-4,8 file\&.metalink
  892. .fi
  893. .RE
  894. .sp
  895. .it 1 an-trap
  896. .nr an-no-space-flag 1
  897. .nr an-break-flag 1
  898. .br
  899. Note
  900. The index is printed to the console using \-S option\&.
  901. .sp
  902. .RE
  903. .sp
  904. .it 1 an-trap
  905. .nr an-no-space-flag 1
  906. .nr an-break-flag 1
  907. .br
  908. Download a file using a local .metalink file with user preference
  909. .RS
  910. .sp
  911. .RS 4
  912. .nf
  913. aria2c \-\-metalink\-location=JP,US \-\-metalink\-version=1\&.1 \-\-metalink\-language=en\-US file\&.metalink
  914. .fi
  915. .RE
  916. .RE
  917. .SS "BitTorrent Download"
  918. .sp
  919. .it 1 an-trap
  920. .nr an-no-space-flag 1
  921. .nr an-break-flag 1
  922. .br
  923. Download files from remote BitTorrent file
  924. .RS
  925. .sp
  926. .RS 4
  927. .nf
  928. aria2c \-\-follow\-torrent=mem http://host/file\&.torrent
  929. .fi
  930. .RE
  931. .RE
  932. .sp
  933. .it 1 an-trap
  934. .nr an-no-space-flag 1
  935. .nr an-break-flag 1
  936. .br
  937. Download using a local torrent file
  938. .RS
  939. .sp
  940. .RS 4
  941. .nf
  942. aria2c \-\-max\-upload\-limit=40K file\&.torrent
  943. .fi
  944. .RE
  945. .sp
  946. .it 1 an-trap
  947. .nr an-no-space-flag 1
  948. .nr an-break-flag 1
  949. .br
  950. Note
  951. \-\-max\-upload\-limit specifies the max of upload rate\&.
  952. .sp
  953. .sp
  954. .it 1 an-trap
  955. .nr an-no-space-flag 1
  956. .nr an-break-flag 1
  957. .br
  958. Note
  959. To pause a download, press Ctrl\-C\&. You can resume the transfer by run aria2c with the same argument at the same directory\&.
  960. .sp
  961. .RE
  962. .sp
  963. .it 1 an-trap
  964. .nr an-no-space-flag 1
  965. .nr an-break-flag 1
  966. .br
  967. Download 2 torrents
  968. .RS
  969. .sp
  970. .RS 4
  971. .nf
  972. aria2c \-j2 file1\&.torrent file2\&.torrent
  973. .fi
  974. .RE
  975. .RE
  976. .sp
  977. .it 1 an-trap
  978. .nr an-no-space-flag 1
  979. .nr an-break-flag 1
  980. .br
  981. Download a file using torrent and HTTP/FTP server
  982. .RS
  983. .sp
  984. .RS 4
  985. .nf
  986. aria2c \-Ttest\&.torrent http://host1/file ftp://host2/file
  987. .fi
  988. .RE
  989. .sp
  990. .it 1 an-trap
  991. .nr an-no-space-flag 1
  992. .nr an-break-flag 1
  993. .br
  994. Note
  995. Downloading multi file torrent with HTTP/FTP is not supported\&.
  996. .sp
  997. .RE
  998. .sp
  999. .it 1 an-trap
  1000. .nr an-no-space-flag 1
  1001. .nr an-break-flag 1
  1002. .br
  1003. Download only selected files using index(usually called "selectable download")
  1004. .RS
  1005. .sp
  1006. .RS 4
  1007. .nf
  1008. aria2c \-\-select\-file=1\-4,8 file\&.torrent
  1009. .fi
  1010. .RE
  1011. .sp
  1012. .it 1 an-trap
  1013. .nr an-no-space-flag 1
  1014. .nr an-break-flag 1
  1015. .br
  1016. Note
  1017. The index is printed to the console using \-S option\&.
  1018. .sp
  1019. .RE
  1020. .sp
  1021. .it 1 an-trap
  1022. .nr an-no-space-flag 1
  1023. .nr an-break-flag 1
  1024. .br
  1025. Change the listening port for incoming peer
  1026. .RS
  1027. .sp
  1028. .RS 4
  1029. .nf
  1030. aria2c \-\-listen\-port=7000\-7001,8000 file\&.torrent
  1031. .fi
  1032. .RE
  1033. .sp
  1034. .it 1 an-trap
  1035. .nr an-no-space-flag 1
  1036. .nr an-break-flag 1
  1037. .br
  1038. Note
  1039. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\&.
  1040. .sp
  1041. .RE
  1042. .sp
  1043. .it 1 an-trap
  1044. .nr an-no-space-flag 1
  1045. .nr an-break-flag 1
  1046. .br
  1047. Specify the condition to stop program after torrent download finished
  1048. .RS
  1049. .sp
  1050. .RS 4
  1051. .nf
  1052. aria2c \-\-seed\-time=120 \-\-seed\-ratio=1\&.0 file\&.torrent
  1053. .fi
  1054. .RE
  1055. .sp
  1056. .it 1 an-trap
  1057. .nr an-no-space-flag 1
  1058. .nr an-break-flag 1
  1059. .br
  1060. Note
  1061. In the above example, the program exists when the 120 minutes has elapsed since download completed or seed ratio reaches 1\&.0\&.
  1062. .sp
  1063. .RE
  1064. .sp
  1065. .it 1 an-trap
  1066. .nr an-no-space-flag 1
  1067. .nr an-break-flag 1
  1068. .br
  1069. Throttle upload speed
  1070. .RS
  1071. .sp
  1072. .RS 4
  1073. .nf
  1074. aria2c \-\-max\-upload\-limit=100K file\&.torrent
  1075. .fi
  1076. .RE
  1077. .RE
  1078. .sp
  1079. .it 1 an-trap
  1080. .nr an-no-space-flag 1
  1081. .nr an-break-flag 1
  1082. .br
  1083. Enable DHT
  1084. .RS
  1085. .sp
  1086. .RS 4
  1087. .nf
  1088. aria2c \-\-enable\-dht \-\-dht\-listen\-port=6881 file\&.torrent
  1089. .fi
  1090. .RE
  1091. .sp
  1092. .it 1 an-trap
  1093. .nr an-no-space-flag 1
  1094. .nr an-break-flag 1
  1095. .br
  1096. Note
  1097. DHT uses udp port\&. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\&.
  1098. .sp
  1099. .RE
  1100. .SS "More advanced HTTP features"
  1101. .sp
  1102. .it 1 an-trap
  1103. .nr an-no-space-flag 1
  1104. .nr an-break-flag 1
  1105. .br
  1106. Load cookies
  1107. .RS
  1108. .sp
  1109. .RS 4
  1110. .nf
  1111. aria2c \-\-load\-cookies=cookies\&.txt http://host/file\&.zip
  1112. .fi
  1113. .RE
  1114. .sp
  1115. .it 1 an-trap
  1116. .nr an-no-space-flag 1
  1117. .nr an-break-flag 1
  1118. .br
  1119. Note
  1120. You can use Firefox/Mozilla\'s cookie file without modification\&.
  1121. .sp
  1122. .RE
  1123. .sp
  1124. .it 1 an-trap
  1125. .nr an-no-space-flag 1
  1126. .nr an-break-flag 1
  1127. .br
  1128. Resume download started by web browsers or another programs
  1129. .RS
  1130. .sp
  1131. .RS 4
  1132. .nf
  1133. aria2c \-c \-s2 http://host/partiallydownloadedfile\&.zip
  1134. .fi
  1135. .RE
  1136. .RE
  1137. .SS "And more advanced features"
  1138. .sp
  1139. .it 1 an-trap
  1140. .nr an-no-space-flag 1
  1141. .nr an-break-flag 1
  1142. .br
  1143. Throttle download speed
  1144. .RS
  1145. .sp
  1146. .RS 4
  1147. .nf
  1148. aria2c \-\-max\-download\-limit=100K file\&.metalink
  1149. .fi
  1150. .RE
  1151. .RE
  1152. .sp
  1153. .it 1 an-trap
  1154. .nr an-no-space-flag 1
  1155. .nr an-break-flag 1
  1156. .br
  1157. Repair a damaged download using --check-integrity option
  1158. .RS
  1159. .sp
  1160. .RS 4
  1161. .nf
  1162. aria2c \-\-check\-integrity=true file\&.metalink
  1163. .fi
  1164. .RE
  1165. .sp
  1166. .it 1 an-trap
  1167. .nr an-no-space-flag 1
  1168. .nr an-break-flag 1
  1169. .br
  1170. Note
  1171. This option is only available used with BitTorrent or metalink with chunk checksums\&.
  1172. .sp
  1173. .RE
  1174. .sp
  1175. .it 1 an-trap
  1176. .nr an-no-space-flag 1
  1177. .nr an-break-flag 1
  1178. .br
  1179. Drop connection if download speed is lower than specified value
  1180. .RS
  1181. .sp
  1182. .RS 4
  1183. .nf
  1184. aria2c \-\-lowest\-speed\-limit=10K file\&.metalink
  1185. .fi
  1186. .RE
  1187. .RE
  1188. .sp
  1189. .it 1 an-trap
  1190. .nr an-no-space-flag 1
  1191. .nr an-break-flag 1
  1192. .br
  1193. Parameterized URI support
  1194. .RS
  1195. You can specify set of parts:
  1196. .sp
  1197. .sp
  1198. .RS 4
  1199. .nf
  1200. aria2c \-P http://{host1,host2,host3}/file\&.iso
  1201. .fi
  1202. .RE
  1203. You can specify numeric sequence:
  1204. .sp
  1205. .sp
  1206. .RS 4
  1207. .nf
  1208. aria2c \-Z \-P http://host/image[000\-100]\&.png
  1209. .fi
  1210. .RE
  1211. .sp
  1212. .it 1 an-trap
  1213. .nr an-no-space-flag 1
  1214. .nr an-break-flag 1
  1215. .br
  1216. Note
  1217. \-Z option is required if the all URIs don\'t point to the same file, such as the above example\&.
  1218. .sp
  1219. You can specify step counter:
  1220. .sp
  1221. .sp
  1222. .RS 4
  1223. .nf
  1224. aria2c \-Z \-P http://host/image[A\-Z:2]\&.png
  1225. .fi
  1226. .RE
  1227. .RE
  1228. .sp
  1229. .it 1 an-trap
  1230. .nr an-no-space-flag 1
  1231. .nr an-break-flag 1
  1232. .br
  1233. Parallel downloads of arbitrary number of URL,metalink,torrent
  1234. .RS
  1235. .sp
  1236. .RS 4
  1237. .nf
  1238. aria2c \-j3 \-Z http://host/file1 file2\&.torrent file3\&.metalink
  1239. .fi
  1240. .RE
  1241. .RE
  1242. .sp
  1243. .it 1 an-trap
  1244. .nr an-no-space-flag 1
  1245. .nr an-break-flag 1
  1246. .br
  1247. BitTorrent Encryption
  1248. .RS
  1249. Encrypt whole payload using ARC4:
  1250. .sp
  1251. .sp
  1252. .RS 4
  1253. .nf
  1254. aria2c \-\-bt\-min\-crypto\-level=arc4 \-\-bt\-require\-crypto=true file\&.torrent
  1255. .fi
  1256. .RE
  1257. .RE
  1258. .SH "RESUME DOWNLOAD"
  1259. Usually, you can resume transfer by just issuing same command(aria2c URL) if the previous transfer is made by aria2\&.
  1260. .sp
  1261. 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)\&.
  1262. .sp
  1263. .SH "CONTROL FILE"
  1264. 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\&.)
  1265. .sp
  1266. 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\&.
  1267. .sp
  1268. 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\&.
  1269. .sp
  1270. .SH "SEEDING DOWNLOADED FILE IN BITTORRENT"
  1271. You can seed downloaded file using \-\-check\-integrity=true option\&.
  1272. .sp
  1273. .sp
  1274. .RS 4
  1275. .nf
  1276. aria2c \-\-check\-integrity=true file\&.torrent
  1277. .fi
  1278. .RE
  1279. .SH "SERVER PERFORMANCE PROFILE"
  1280. This section describes the format of server performance profile\&. The file is plain text and each line has several NAME=VALUE pair, delimited by comma\&. Currently following NAMEs are recognized:
  1281. .PP
  1282. host
  1283. .RS 4
  1284. Hostname of the server\&. Required\&.
  1285. .RE
  1286. .PP
  1287. protocol
  1288. .RS 4
  1289. Protocol for this profile, such as ftp, http\&. Required\&.
  1290. .RE
  1291. .PP
  1292. dl_speed
  1293. .RS 4
  1294. The average download speed observed in the previous download in bytes per sec\&. Required\&.
  1295. .RE
  1296. .PP
  1297. last_updated
  1298. .RS 4
  1299. Last contact time in GMT with this server, specified in the seconds from the Epoch\&. Required\&.
  1300. .RE
  1301. .PP
  1302. status
  1303. .RS 4
  1304. ERROR is set when server cannot be reached or out\-of\-service or timeout occurred\&. Otherwise, OK is set\&.
  1305. .RE
  1306. 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\&.
  1307. .sp
  1308. An example is follow:
  1309. .sp
  1310. .sp
  1311. .RS 4
  1312. .nf
  1313. host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  1314. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR
  1315. .fi
  1316. .RE
  1317. .SH "FILES"
  1318. .SS "aria2\&.conf"
  1319. 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\&.
  1320. .sp
  1321. .sp
  1322. .RS 4
  1323. .nf
  1324. # sample configuration file for aria2c
  1325. listen\-port=60000
  1326. dht\-listen\-port=60000
  1327. seed\-ratio=1\&.0
  1328. max\-upload\-limit=50K
  1329. ftp\-pasv=true
  1330. .fi
  1331. .RE
  1332. .SS "dht\&.dat"
  1333. The routing table of DHT is saved to the path $HOME/\&.aria2/dht\&.dat\&.
  1334. .sp
  1335. .SH "RESOURCES"
  1336. Project web site: http://aria2\&.sourceforge\&.net/
  1337. .sp
  1338. metalink: http://www\&.metalinker\&.org/
  1339. .sp
  1340. .SH "REPORTING BUGS"
  1341. Report bugs to Tatsuhiro Tsujikawa <t\-tujikawa@users\&.sourceforge\&.net>
  1342. .sp
  1343. .SH "AUTHOR"
  1344. Tatsuhiro Tsujikawa <t\-tujikawa@users\&.sourceforge\&.net>
  1345. .sp
  1346. .SH "COPYRIGHT"
  1347. Copyright \(co 2006, 2008 Tatsuhiro Tsujikawa
  1348. .sp
  1349. 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\&.
  1350. .sp
  1351. 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\&.
  1352. .sp
  1353. 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
  1354. .sp
  1355. 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\&.
  1356. .sp