aria2c.1 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
  4. .\" Date: 03/13/2009
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "03/13/2009" "" ""
  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\&. aria2 can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth\&. It supports downloading a file from HTTP(S)/FTP and BitTorrent at the same time, while the data downloaded from HTTP(S)/FTP is uploaded to the BitTorrent swarm\&. Using Metalink\'s chunk checksums, aria2 automatically validates chunks of data while downloading a file like BitTorrent\&.
  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\&. The additional
  34. \fBout\fR
  35. and
  36. \fBdir\fR
  37. options can be specified after each line of URIs\&. This optional line must start with white space(s)\&. See
  38. \fBInput File\fR
  39. subsection for details\&.
  40. .RE
  41. .PP
  42. \fB\-l\fR, \fB\-\-log\fR=LOG
  43. .RS 4
  44. The file name of the log file\&. If
  45. \fI\-\fR
  46. is specified, log is written to stdout\&.
  47. .RE
  48. .PP
  49. \fB\-j\fR, \fB\-\-max\-concurrent\-downloads\fR=N
  50. .RS 4
  51. Set maximum number of parallel downloads for every static (HTTP/FTP) URL, torrent and metalink\&. See also
  52. \fB\-s\fR
  53. and
  54. \fB\-C\fR
  55. option\&. Default:
  56. \fI5\fR
  57. .RE
  58. .PP
  59. \fB\-V\fR, \fB\-\-check\-integrity\fR[=\fItrue\fR|\fIfalse\fR]
  60. .RS 4
  61. Check file integrity by validating piece hashes\&. This option has effect only in BitTorrent and Metalink downloads with chunk checksums\&. Use this option to re\-download a damaged portion of a file\&. Default:
  62. \fIfalse\fR
  63. .RE
  64. .PP
  65. \fB\-c\fR, \fB\-\-continue\fR
  66. .RS 4
  67. 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\&.
  68. .RE
  69. .PP
  70. \fB\-h\fR, \fB\-\-help\fR[=CATEGORY]
  71. .RS 4
  72. 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:
  73. \fIbasic\fR,
  74. \fIadvanced\fR,
  75. \fIhttp\fR,
  76. \fIhttps\fR,
  77. \fIftp\fR,
  78. \fImetalink\fR,
  79. \fIbittorrent\fR,
  80. \fIall\fR
  81. Default:
  82. \fIbasic\fR
  83. .RE
  84. .SS "HTTP/FTP Options"
  85. .PP
  86. \fB\-\-all\-proxy\fR=PROXY
  87. .RS 4
  88. Use this proxy server for all protocols\&. You can override this setting and specify a proxy server for a particular protocol using
  89. \fB\-\-http\-proxy\fR,
  90. \fB\-\-https\-proxy\fR
  91. and
  92. \fB\-\-ftp\-proxy\fR
  93. options\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  94. .RE
  95. .PP
  96. \fB\-\-connect\-timeout\fR=SEC
  97. .RS 4
  98. 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
  99. \fB\-\-timeout\fR
  100. option is used instead\&. Default:
  101. \fI60\fR
  102. .RE
  103. .PP
  104. \fB\-\-dry\-run\fR[=\fItrue\fR|\fIfalse\fR]
  105. .RS 4
  106. If
  107. \fItrue\fR
  108. is given, aria2 just checks whether the remote file is available and doesn\'t download data\&. This option has effect on HTTP/FTP download\&. BitTorrent downloads are canceled if
  109. \fItrue\fR
  110. is specified\&. Default:
  111. \fIfalse\fR
  112. .RE
  113. .PP
  114. \fB\-\-lowest\-speed\-limit\fR=SPEED
  115. .RS 4
  116. Close connection if download speed is lower than or equal to this value(bytes per sec)\&.
  117. \fI0\fR
  118. means aria2 does not have a lowest speed limit\&. You can append
  119. \fIK\fR
  120. or
  121. \fIM\fR(1K = 1024, 1M = 1024K)\&. This option does not affect BitTorrent downloads\&. Default:
  122. \fI0\fR
  123. .RE
  124. .PP
  125. \fB\-\-max\-file\-not\-found\fR=NUM
  126. .RS 4
  127. If aria2 receives `file not found\' status from the remote HTTP/FTP servers NUM times without getting a single byte, then force the download to fail\&. Specify
  128. \fI0\fR
  129. to disable this option\&. This options is effective only when using HTTP/FTP servers\&. Default:
  130. \fI0\fR
  131. .RE
  132. .PP
  133. \fB\-m\fR, \fB\-\-max\-tries\fR=N
  134. .RS 4
  135. Set number of tries\&.
  136. \fI0\fR
  137. means unlimited\&. Default:
  138. \fI5\fR
  139. .RE
  140. .PP
  141. \fB\-\-no\-proxy\fR=DOMAINS
  142. .RS 4
  143. Specify comma separated hostnames or domains where proxy should not be used\&.
  144. .RE
  145. .PP
  146. \fB\-o\fR, \fB\-\-out\fR=FILE
  147. .RS 4
  148. The file name of the downloaded file\&.
  149. .RE
  150. .sp
  151. .it 1 an-trap
  152. .nr an-no-space-flag 1
  153. .nr an-break-flag 1
  154. .br
  155. Note
  156. In Metalink or BitTorrent download you cannot specify file name\&. The file name specified here is only used when the URLs fed to aria2 are done by command line without \fB\-i\fR, \fB\-Z\fR option\&. For example: aria2c \-o myfile\&.zip "http://mirror1/file\&.zip" "http://mirror2/file\&.zip"
  157. .PP
  158. \fB\-\-proxy\-method\fR=METHOD
  159. .RS 4
  160. Set the method to use in proxy request\&.
  161. \fIMETHOD\fR
  162. is either
  163. \fIget\fR
  164. or
  165. \fItunnel\fR\&. HTTPS downloads always use
  166. \fItunnel\fR
  167. regardless of this option\&. Default:
  168. \fIget\fR
  169. .RE
  170. .PP
  171. \fB\-R\fR, \fB\-\-remote\-time\fR[=\fItrue\fR|\fIfalse\fR]
  172. .RS 4
  173. Retrieve timestamp of the remote file from the remote HTTP/FTP server and if it is available, apply it to the local file\&. Default:
  174. \fIfalse\fR
  175. .RE
  176. .PP
  177. \fB\-\-retry\-wait\fR=SEC
  178. .RS 4
  179. Set the seconds to wait to retry after an error has occured\&. Specify a value between
  180. \fI0\fR
  181. and
  182. \fI60\fR\&. Default:
  183. \fI5\fR
  184. .RE
  185. .PP
  186. \fB\-\-server\-stat\-of\fR=FILE
  187. .RS 4
  188. Specify the filename to which performance profile of the servers is saved\&. You can load saved data using
  189. \fB\-\-server\-stat\-if\fR
  190. option\&. See
  191. \fBServer Performance Profile\fR
  192. subsection below for file format\&.
  193. .RE
  194. .PP
  195. \fB\-\-server\-stat\-if\fR=FILE
  196. .RS 4
  197. Specify the filename to load performance profile of the servers\&. The loaded data will be used in some URI selector such as
  198. \fIfeedback\fR\&. See also
  199. \fB\-\-uri\-selector\fR
  200. option\&. See
  201. \fBServer Performance Profile\fR
  202. subsection below for file format\&.
  203. .RE
  204. .PP
  205. \fB\-\-server\-stat\-timeout\fR=SEC
  206. .RS 4
  207. Specifies timeout in seconds to invalidate performance profile of the servers since the last contact to them\&. Default:
  208. \fI86400\fR
  209. (24hours)
  210. .RE
  211. .PP
  212. \fB\-s\fR, \fB\-\-split\fR=N
  213. .RS 4
  214. 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\&. Please see
  215. \fB\-j\fR
  216. option too\&. Please note that in Metalink download, this option has no effect and use
  217. \fB\-C\fR
  218. option instead\&. Default:
  219. \fI5\fR
  220. .RE
  221. .PP
  222. \fB\-t\fR, \fB\-\-timeout\fR=SEC
  223. .RS 4
  224. Set timeout in seconds\&. Default:
  225. \fI60\fR
  226. .RE
  227. .PP
  228. \fB\-\-uri\-selector\fR=SELECTOR
  229. .RS 4
  230. Specify URI selection algorithm\&. The possible values are
  231. \fIinorder\fR,
  232. \fIfeedback\fR
  233. and
  234. \fIadaptive\fR\&. If
  235. \fIinorder\fR
  236. is given, URI is tried in the order appeared in the URI list\&. If
  237. \fIfeedback\fR
  238. 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
  239. \fB\-\-server\-stat\-of\fR
  240. and
  241. \fB\-\-server\-stat\-if\fR
  242. options\&. If
  243. \fIadaptive\fR
  244. is given, selects one of the best mirrors for the first and reserved connections\&. For supplementary ones, it returns mirrors which has not been tested yet, and if each of them has already been tested, returns mirrors which has to be tested again\&. Otherwise, it doesn\'t select anymore mirrors\&. Like
  245. \fIfeedback\fR, it uses a performance profile of servers\&. Default:
  246. \fIfeedback\fR
  247. .RE
  248. .SS "HTTP Specific Options"
  249. .PP
  250. \fB\-\-ca\-certificate\fR=FILE
  251. .RS 4
  252. Use the certificate authorities in FILE to verify the peers\&. The certificate file must be in PEM format and can contain multiple CA certificates\&. Use
  253. \fB\-\-check\-certificate\fR
  254. option to enable verification\&.
  255. .RE
  256. .PP
  257. \fB\-\-certificate\fR=FILE
  258. .RS 4
  259. Use the client certificate in FILE\&. The certificate must be in PEM format\&. You may use
  260. \fB\-\-private\-key\fR
  261. option to specify the private key\&.
  262. .RE
  263. .PP
  264. \fB\-\-check\-certificate\fR[=\fItrue\fR|\fIfalse\fR]
  265. .RS 4
  266. Verify the peer using certificates specified in
  267. \fB\-\-ca\-certificate\fR
  268. option\&. Default:
  269. \fItrue\fR
  270. .RE
  271. .PP
  272. \fB\-\-http\-auth\-challenge\fR[=\fItrue\fR|\fIfalse\fR]
  273. .RS 4
  274. Send HTTP authorization header only when it is requested by the server\&. If
  275. \fIfalse\fR
  276. is set, then authorization header is always sent to the server\&. There is an exception: if username and password are embedded in URI, authorization header is always sent to the server regardless of this option\&. Default:
  277. \fIfalse\fR
  278. .RE
  279. .PP
  280. \fB\-\-http\-auth\-scheme\fR=SCHEME
  281. .RS 4
  282. Set HTTP authentication scheme\&. Currently,
  283. \fIbasic\fR
  284. is the only supported scheme\&. Default:
  285. \fIbasic\fR
  286. .RE
  287. .PP
  288. \fB\-\-http\-user\fR=USER
  289. .RS 4
  290. Set HTTP user\&. This affects all URLs\&.
  291. .RE
  292. .PP
  293. \fB\-\-http\-passwd\fR=PASSWD
  294. .RS 4
  295. Set HTTP password\&. This affects all URLs\&.
  296. .RE
  297. .PP
  298. \fB\-\-http\-proxy\fR=PROXY
  299. .RS 4
  300. Use this proxy server for HTTP\&. See also
  301. \fB\-\-all\-proxy\fR
  302. option\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  303. .RE
  304. .PP
  305. \fB\-\-https\-proxy\fR=PROXY
  306. .RS 4
  307. Use this proxy server for HTTPS\&. See also
  308. \fB\-\-all\-proxy\fR
  309. option\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  310. .RE
  311. .PP
  312. \fB\-\-private\-key\fR=FILE
  313. .RS 4
  314. Use the private key in FILE\&. The private key must be decrypted and in PEM format\&. The behavior when encrypted one is given is undefined\&. See also
  315. \fB\-\-certificate\fR
  316. option\&.
  317. .RE
  318. .PP
  319. \fB\-\-referer\fR=REFERER
  320. .RS 4
  321. Set Referer\&. This affects all URLs\&.
  322. .RE
  323. .PP
  324. \fB\-\-enable\-http\-keep\-alive\fR[=\fItrue\fR|\fIfalse\fR]
  325. .RS 4
  326. Enable HTTP/1\&.1 persistent connection\&. Default:
  327. \fItrue\fR
  328. .RE
  329. .PP
  330. \fB\-\-enable\-http\-pipelining\fR[=\fItrue\fR|\fIfalse\fR]
  331. .RS 4
  332. Enable HTTP/1\&.1 pipelining\&. Default:
  333. \fIfalse\fR
  334. .RE
  335. .PP
  336. \fB\-\-header\fR=HEADER
  337. .RS 4
  338. Append HEADER to HTTP request header\&. You can use this option repeatedly to specify more than one header: aria2c
  339. \fB\-\-header\fR="X\-A: b78"
  340. \fB\-\-header\fR="X\-B: 9J1" "http://host/file"
  341. .RE
  342. .PP
  343. \fB\-\-load\-cookies\fR=FILE
  344. .RS 4
  345. Load Cookies from FILE using the Firefox3 format (SQLite3) and the Mozilla/Firefox(1\&.x/2\&.x)/Netscape format\&.
  346. .RE
  347. .sp
  348. .it 1 an-trap
  349. .nr an-no-space-flag 1
  350. .nr an-break-flag 1
  351. .br
  352. Note
  353. If aria2 is built without libsqlite3, then it doesn\'t support Firefox3 cookie format\&.
  354. .PP
  355. \fB\-\-use\-head\fR[=\fItrue\fR|\fIfalse\fR]
  356. .RS 4
  357. Use HEAD method for the first request to the HTTP server\&. Default:
  358. \fItrue\fR
  359. .RE
  360. .PP
  361. \fB\-U\fR, \fB\-\-user\-agent\fR=USER_AGENT
  362. .RS 4
  363. Set user agent for HTTP(S) downloads\&.
  364. .RE
  365. .SS "FTP Specific Options"
  366. .PP
  367. \fB\-\-ftp\-user\fR=USER
  368. .RS 4
  369. Set FTP user\&. This affects all URLs\&. Default:
  370. \fIanonymous\fR
  371. .RE
  372. .PP
  373. \fB\-\-ftp\-passwd\fR=PASSWD
  374. .RS 4
  375. Set FTP password\&. This affects all URLs\&. Default:
  376. \fIARIA2USER@\fR
  377. .RE
  378. .PP
  379. \fB\-p\fR, \fB\-\-ftp\-pasv\fR[=\fItrue\fR|\fIfalse\fR]
  380. .RS 4
  381. Use the passive mode in FTP\&. If
  382. \fIfalse\fR
  383. is given, the active mode will be used\&. Default:
  384. \fItrue\fR
  385. .RE
  386. .PP
  387. \fB\-\-ftp\-proxy\fR=PROXY
  388. .RS 4
  389. Use this proxy server for FTP\&. See also
  390. \fB\-\-all\-proxy\fR
  391. option\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  392. .RE
  393. .PP
  394. \fB\-\-ftp\-type\fR=TYPE
  395. .RS 4
  396. Set FTP transfer type\&. TYPE is either
  397. \fIbinary\fR
  398. or
  399. \fIascii\fR\&. Default:
  400. \fIbinary\fR
  401. .RE
  402. .PP
  403. \fB\-\-ftp\-reuse\-connection\fR[=\fItrue\fR|\fIfalse\fR]
  404. .RS 4
  405. Reuse connection in FTP\&. Default:
  406. \fItrue\fR
  407. .RE
  408. .PP
  409. \fB\-n\fR, \fB\-\-no\-netrc\fR
  410. .RS 4
  411. Disables netrc support\&. netrc support is enabled by default\&.
  412. .RE
  413. .SS "BitTorrent/Metalink Options"
  414. .PP
  415. \fB\-\-select\-file\fR=INDEX\&...
  416. .RS 4
  417. Set file to download by specifying its index\&. You can find the file index using the
  418. \fB\-\-show\-files\fR
  419. option\&. Multiple indexes can be specified by using ",", for example:
  420. \fI3,6\fR\&. You can also use "\-" to specify a range:
  421. \fI1\-5\fR\&. "," and "\-" can be used together:
  422. \fI1\-5,8,9\fR\&. When used with the \-M option, index may vary depending on the query (see
  423. \fB\-\-metalink\-\fR* options)\&.
  424. .RE
  425. .sp
  426. .it 1 an-trap
  427. .nr an-no-space-flag 1
  428. .nr an-break-flag 1
  429. .br
  430. Note
  431. 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\&.
  432. .PP
  433. \fB\-S\fR, \fB\-\-show\-files\fR
  434. .RS 4
  435. Print file listing of \&.torrent or \&.metalink file and exit\&. In case of \&.torrent file, additional information (infohash, piece length, etc) is also printed\&.
  436. .RE
  437. .SS "BitTorrent Specific Options"
  438. .PP
  439. \fB\-\-bt\-external\-ip\fR=IPADDRESS
  440. .RS 4
  441. Specify the external IP address to report to a BitTorrent tracker\&. Although this function is named "external", it can accept any kind of IP addresses\&. IPADDRESS must be a numeric IP address\&.
  442. .RE
  443. .PP
  444. \fB\-\-bt\-hash\-check\-seed\fR[=\fItrue\fR|\fIfalse\fR]
  445. .RS 4
  446. If
  447. \fItrue\fR
  448. is given, after hash check using
  449. \fB\-\-check\-integrity\fR
  450. option and file is complete, continue to seed file\&. If you want to check file and download it only when it is damaged or incomplete, set this option to
  451. \fIfalse\fR\&. This option has effect only on BitTorrent download\&. Default:
  452. \fItrue\fR
  453. .RE
  454. .PP
  455. \fB\-\-bt\-max\-open\-files\fR=NUM
  456. .RS 4
  457. Specify maximum number of files to open in each BitTorrent download\&. Default:
  458. \fI100\fR
  459. .RE
  460. .PP
  461. \fB\-\-bt\-max\-peers\fR=NUM
  462. .RS 4
  463. Specify the maximum number of peers per torrent\&.
  464. \fI0\fR
  465. means unlimited\&. See also
  466. \fB\-\-bt\-request\-peer\-speed\-limit\fR
  467. option\&. Default:
  468. \fI55\fR
  469. .RE
  470. .PP
  471. \fB\-\-bt\-min\-crypto\-level\fR=\fIplain\fR|\fIarc4\fR
  472. .RS 4
  473. Set minimum level of encryption method\&. If several encryption methods are provided by a peer, aria2 chooses the lowest one which satisfies the given level\&. Default:
  474. \fIplain\fR
  475. .RE
  476. .PP
  477. \fB\-\-bt\-require\-crypto\fR=\fItrue\fR|\fIfalse\fR
  478. .RS 4
  479. If true is given, aria2 doesn\'t accept and establish connection with legacy BitTorrent handshake(\e19BitTorrent protocol)\&. Thus aria2 always uses Obfuscation handshake\&. Default:
  480. \fIfalse\fR
  481. .RE
  482. .PP
  483. \fB\-\-bt\-request\-peer\-speed\-limit\fR=SPEED
  484. .RS 4
  485. If the whole download speed of every torrent is lower than SPEED, aria2 temporarily increases the number of peers to try for more download speed\&. Configuring this option with your preferred download speed can increase your download speed in some cases\&. You can append
  486. \fIK\fR
  487. or
  488. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  489. \fI50K\fR
  490. .RE
  491. .PP
  492. \fB\-\-bt\-seed\-unverified\fR[=\fItrue\fR|\fIfalse\fR]
  493. .RS 4
  494. Seed previously downloaded files without verifying piece hashes\&. Default:
  495. \fIfalse\fR
  496. .RE
  497. .PP
  498. \fB\-\-dht\-entry\-point\fR=HOST:PORT
  499. .RS 4
  500. Set host and port as an entry point to DHT network\&.
  501. .RE
  502. .PP
  503. \fB\-\-dht\-file\-path\fR=PATH
  504. .RS 4
  505. Change the DHT routing table file to PATH\&. Default:
  506. \fI$HOME/\&.aria2/dht\&.dat\fR
  507. .RE
  508. .PP
  509. \fB\-\-dht\-listen\-port\fR=PORT\&...
  510. .RS 4
  511. Set UDP listening port for DHT\&. Multiple ports can be specified by using ",", for example:
  512. \fI6881,6885\fR\&. You can also use "\-" to specify a range:
  513. \fI6881\-6999\fR\&. "," and "\-" can be used together\&. Default:
  514. \fI6881\-6999\fR
  515. .RE
  516. .sp
  517. .it 1 an-trap
  518. .nr an-no-space-flag 1
  519. .nr an-break-flag 1
  520. .br
  521. Note
  522. Make sure that the specified ports are open for incoming UDP traffic\&.
  523. .PP
  524. \fB\-\-enable\-dht\fR[=\fItrue\fR|\fIfalse\fR]
  525. .RS 4
  526. Enable DHT functionality\&. If a private flag is set in a torrent, aria2 doesn\'t use DHT for that download even if
  527. \fItrue\fR
  528. is given\&. Default:
  529. \fIfalse\fR
  530. .RE
  531. .PP
  532. \fB\-\-enable\-peer\-exchange\fR[=\fItrue\fR|\fIfalse\fR]
  533. .RS 4
  534. Enable Peer Exchange extension\&. If a private flag is set in a torrent, this feature is disabled for that download even if
  535. \fItrue\fR
  536. is given\&. Default:
  537. \fItrue\fR
  538. .RE
  539. .PP
  540. \fB\-\-follow\-torrent\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  541. .RS 4
  542. If
  543. \fItrue\fR
  544. or
  545. \fImem\fR
  546. 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
  547. \fImem\fR
  548. is specified, a torrent file is not written to the disk, but is just kept in memory\&. If
  549. \fIfalse\fR
  550. is specified, the action mentioned above is not taken\&. Default:
  551. \fItrue\fR
  552. .RE
  553. .PP
  554. \fB\-O\fR, \fB\-\-index\-out\fR=INDEX=PATH
  555. .RS 4
  556. Set file path for file with index=INDEX\&. You can find the file index using the
  557. \fB\-\-show\-files\fR
  558. option\&. PATH is a relative path to the path specified in
  559. \fB\-\-dir\fR
  560. option\&. You can use this option multiple times\&. Using this option, you can specify the output filenames of BitTorrent downloads\&.
  561. .RE
  562. .PP
  563. \fB\-\-listen\-port\fR=PORT\&...
  564. .RS 4
  565. Set TCP port number for BitTorrent downloads\&. Multiple ports can be specified by using ",", for example:
  566. \fI6881,6885\fR\&. You can also use "\-" to specify a range:
  567. \fI6881\-6999\fR\&. "," and "\-" can be used together:
  568. \fI6881\-6889,6999\fR\&. Default:
  569. \fI6881\-6999\fR
  570. .RE
  571. .sp
  572. .it 1 an-trap
  573. .nr an-no-space-flag 1
  574. .nr an-break-flag 1
  575. .br
  576. Note
  577. Make sure that the specified ports are open for incoming TCP traffic\&.
  578. .PP
  579. \fB\-\-max\-overall\-upload\-limit\fR=SPEED
  580. .RS 4
  581. Set max overall upload speed in bytes/sec\&.
  582. \fI0\fR
  583. means unrestricted\&. You can append
  584. \fIK\fR
  585. or
  586. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the upload speed per torrent, use
  587. \fB\-\-max\-upload\-limit\fR
  588. option\&. Default:
  589. \fI0\fR
  590. .RE
  591. .PP
  592. \fB\-u\fR, \fB\-\-max\-upload\-limit\fR=SPEED
  593. .RS 4
  594. Set max upload speed per each torrent in bytes/sec\&.
  595. \fI0\fR
  596. means unrestricted\&. You can append
  597. \fIK\fR
  598. or
  599. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the overall upload speed, use
  600. \fB\-\-max\-overall\-upload\-limit\fR
  601. option\&. Default:
  602. \fI0\fR
  603. .RE
  604. .PP
  605. \fB\-\-peer\-id\-prefix\fR=PEERI_ID_PREFIX
  606. .RS 4
  607. 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:
  608. \fI\-aria2\-\fR
  609. .RE
  610. .PP
  611. \fB\-\-seed\-ratio\fR=RATIO
  612. .RS 4
  613. Specify share ratio\&. Seed completed torrents until share ratio reaches RATIO\&. You are strongly encouraged to specify equals or more than
  614. \fI1\&.0\fR
  615. here\&. Specify
  616. \fI0\&.0\fR
  617. if you intend to do seeding regardless of share ratio\&. If
  618. \fB\-\-seed\-time\fR
  619. option is specified along with this option, seeding ends when at least one of the conditions is satisfied\&. Default:
  620. \fI1\&.0\fR
  621. .RE
  622. .PP
  623. \fB\-\-seed\-time\fR=MINUTES
  624. .RS 4
  625. Specify seeding time in minutes\&. Also see the
  626. \fB\-\-seed\-ratio\fR
  627. option\&.
  628. .RE
  629. .PP
  630. \fB\-T\fR, \fB\-\-torrent\-file\fR=TORRENT_FILE
  631. .RS 4
  632. The path to the \&.torrent file\&. You are not required to use this option because you can specify a torrent file without \-T\&.
  633. .RE
  634. .SS "Metalink Specific Options"
  635. .PP
  636. \fB\-\-follow\-metalink\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  637. .RS 4
  638. If
  639. \fItrue\fR
  640. or
  641. \fImem\fR
  642. is specified, when a file whose suffix is "\&.metaink" or content type of "application/metalink+xml" is downloaded, aria2 parses it as a metalink file and downloads files mentioned in it\&. If
  643. \fImem\fR
  644. is specified, a metalink file is not written to the disk, but is just kept in memory\&. If
  645. \fIfalse\fR
  646. is specified, the action mentioned above is not taken\&. Default:
  647. \fItrue\fR
  648. .RE
  649. .PP
  650. \fB\-M\fR, \fB\-\-metalink\-file\fR=METALINK_FILE
  651. .RS 4
  652. The file path to \&.metalink file\&. You are not required to use this option because you can specify a metalink file without \-M\&.
  653. .RE
  654. .PP
  655. \fB\-C\fR, \fB\-\-metalink\-servers\fR=NUM_SERVERS
  656. .RS 4
  657. The number of servers to connect to simultaneously\&. Some Metalinks regulate the number of servers to connect\&. aria2 strictly respects them\&. This means that if Metalink defines the maxconnections attribute lower than NUM_SERVERS, then aria2 uses the value of maxconnections attribute instead of NUM_SERVERS\&. See also
  658. \fB\-s\fR
  659. and
  660. \fB\-j\fR
  661. options\&. Default:
  662. \fI5\fR
  663. .RE
  664. .PP
  665. \fB\-\-metalink\-language\fR=LANGUAGE
  666. .RS 4
  667. The language of the file to download\&.
  668. .RE
  669. .PP
  670. \fB\-\-metalink\-location\fR=LOCATION[,\&...]
  671. .RS 4
  672. The location of the preferred server\&. A comma\-delimited list of locations is acceptable, for example,
  673. \fIJP,US\fR\&.
  674. .RE
  675. .PP
  676. \fB\-\-metalink\-os\fR=OS
  677. .RS 4
  678. The operating system of the file to download\&.
  679. .RE
  680. .PP
  681. \fB\-\-metalink\-version\fR=VERSION
  682. .RS 4
  683. The version of the file to download\&.
  684. .RE
  685. .PP
  686. \fB\-\-metalink\-preferred\-protocol\fR=PROTO
  687. .RS 4
  688. Specify preferred protocol\&. The possible values are
  689. \fIhttp\fR,
  690. \fIhttps\fR,
  691. \fIftp\fR
  692. and
  693. \fInone\fR\&. Specify
  694. \fInone\fR
  695. to disable this feature\&. Default:
  696. \fInone\fR
  697. .RE
  698. .PP
  699. \fB\-\-metalink\-enable\-unique\-protocol\fR=\fItrue\fR|\fIfalse\fR
  700. .RS 4
  701. If
  702. \fItrue\fR
  703. is given and several protocols are available for a mirror in a metalink file, aria2 uses one of them\&. Use
  704. \fB\-\-metalink\-preferred\-protocol\fR
  705. option to specify the preference of protocol\&. Default:
  706. \fItrue\fR
  707. .RE
  708. .SS "Advanced Options"
  709. .PP
  710. \fB\-\-allow\-overwrite\fR=\fItrue\fR|\fIfalse\fR
  711. .RS 4
  712. If
  713. \fIfalse\fR
  714. 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
  715. \fB\-\-auto\-file\-renaming\fR=\fItrue\fR
  716. then, file name will be renamed\&. See
  717. \fB\-\-auto\-file\-renaming\fR
  718. for details\&. Default:
  719. \fIfalse\fR
  720. .RE
  721. .PP
  722. \fB\-\-allow\-piece\-length\-change\fR=\fItrue\fR|\fIfalse\fR
  723. .RS 4
  724. 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:
  725. \fIfalse\fR
  726. .RE
  727. .PP
  728. \fB\-\-async\-dns\fR[=\fItrue\fR|\fIfalse\fR]
  729. .RS 4
  730. Enable asynchronous DNS\&. Default:
  731. \fItrue\fR
  732. .RE
  733. .PP
  734. \fB\-\-auto\-file\-renaming\fR[=\fItrue\fR|\fIfalse\fR]
  735. .RS 4
  736. 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:
  737. \fItrue\fR
  738. .RE
  739. .PP
  740. \fB\-\-auto\-save\-interval\fR=SEC
  741. .RS 4
  742. Save a control file(*\&.aria2) every SEC seconds\&. If
  743. \fI0\fR
  744. is given, a control file is not saved during download\&. aria2 saves a control file when it stops regardless of the value\&. The possible values are between
  745. \fI0\fR
  746. to
  747. \fI600\fR\&. Default:
  748. \fI60\fR
  749. .RE
  750. .PP
  751. \fB\-\-conf\-path\fR=PATH
  752. .RS 4
  753. Change the configuration file path to PATH\&. Default:
  754. \fI$HOME/\&.aria2/aria2\&.conf\fR
  755. .RE
  756. .PP
  757. \fB\-D\fR, \fB\-\-daemon\fR
  758. .RS 4
  759. Run as daemon\&.
  760. .RE
  761. .PP
  762. \fB\-\-enable\-direct\-io\fR[=\fItrue\fR|\fIfalse\fR]
  763. .RS 4
  764. Enable directI/O, which lowers cpu usage while allocating/checking files\&. Turn off if you encounter any error\&. Default:
  765. \fItrue\fR
  766. .RE
  767. .PP
  768. \fB\-\-enable\-http\-server\fR[=\fItrue\fR|\fIfalse\fR]
  769. .RS 4
  770. Enable the built\-in HTTP server\&. Currently, this is the experimental feature and it just provides the current download progress\&. Use your web browser(console\-based ones, such as elinks, w3m, are recommended) to connect the server and see what\'s what\&. See also
  771. \fB\-\-http\-server\-listen\-port\fR
  772. option\&. Default:
  773. \fIfalse\fR
  774. .RE
  775. .PP
  776. \fB\-\-event\-poll\fR=POLL
  777. .RS 4
  778. Specify the method for polling events\&. The possible Values are
  779. \fIepoll\fR
  780. and
  781. \fIselect\fR\&. If you use recent Linux that has epoll, then the default value is
  782. \fIepoll\fR\&. Otherwise, the default value is
  783. \fIselect\fR\&.
  784. .RE
  785. .PP
  786. \fB\-\-file\-allocation\fR=METHOD
  787. .RS 4
  788. Specify file allocation method\&. METHOD is either
  789. \fInone\fR
  790. or
  791. \fIprealloc\fR\&.
  792. \fInone\fR
  793. doesn\'t pre\-allocate file space\&.
  794. \fIprealloc\fR
  795. pre\-allocates file space before download begins\&. This may take some time depending on the size of the file\&. Default:
  796. \fIprealloc\fR
  797. .RE
  798. .PP
  799. \fB\-\-log\-level\fR=LEVEL
  800. .RS 4
  801. Set log level to output\&. LEVEL is either
  802. \fIdebug\fR,
  803. \fIinfo\fR,
  804. \fInotice\fR,
  805. \fIwarn\fR
  806. or
  807. \fIerror\fR\&. Default:
  808. \fIdebug\fR
  809. .RE
  810. .PP
  811. \fB\-\-summary\-interval\fR=SEC
  812. .RS 4
  813. Set interval in seconds to output download progress summary\&. Setting
  814. \fI0\fR
  815. suppresses the output\&. Default:
  816. \fI60\fR
  817. .RE
  818. .sp
  819. .it 1 an-trap
  820. .nr an-no-space-flag 1
  821. .nr an-break-flag 1
  822. .br
  823. Note
  824. In multi file torrent downloads, the files adjacent forward to the specified files are also allocated if they share the same piece\&.
  825. .PP
  826. \fB\-Z\fR, \fB\-\-force\-sequential\fR[=\fItrue\fR|\fIfalse\fR]
  827. .RS 4
  828. Fetch URIs in the command\-line sequentially and download each URI in a separate session, like the usual command\-line download utilities\&. Default:
  829. \fIfalse\fR
  830. .RE
  831. .PP
  832. \fB\-\-http\-server\-listen\-port\fR=PORT
  833. .RS 4
  834. Specify a port number for the built\-in HTTP Server to listen to\&. See also
  835. \fB\-\-enable\-http\-server\fR
  836. option\&. The possible Values are
  837. \fI1024\fR\-\fI65535\fR\&. Default:
  838. \fI6800\fR
  839. .RE
  840. .PP
  841. \fB\-\-max\-overall\-download\-limit\fR=SPEED
  842. .RS 4
  843. Set max overall download speed in bytes/sec\&.
  844. \fI0\fR
  845. means unrestricted\&. You can append
  846. \fIK\fR
  847. or
  848. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the download speed per download, use
  849. \fB\-\-max\-download\-limit\fR
  850. option\&. Default:
  851. \fI0\fR
  852. .RE
  853. .PP
  854. \fB\-\-max\-download\-limit\fR=SPEED
  855. .RS 4
  856. Set max download speed per each download in bytes/sec\&.
  857. \fI0\fR
  858. means unrestricted\&. You can append
  859. \fIK\fR
  860. or
  861. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the overall download speed, use
  862. \fB\-\-max\-overall\-download\-limit\fR
  863. option\&. Default:
  864. \fI0\fR
  865. .RE
  866. .PP
  867. \fB\-\-no\-conf\fR
  868. .RS 4
  869. Disable loading aria2\&.conf file\&.
  870. .RE
  871. .PP
  872. \fB\-\-no\-file\-allocation\-limit\fR=SIZE
  873. .RS 4
  874. No file allocation is made for files whose size is smaller than SIZE\&. You can append
  875. \fIK\fR
  876. or
  877. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  878. \fI5M\fR
  879. .RE
  880. .PP
  881. \fB\-P\fR, \fB\-\-parameterized\-uri\fR[=\fItrue\fR|\fIfalse\fR]
  882. .RS 4
  883. Enable parameterized URI support\&. You can specify set of parts:
  884. \fIhttp://{sv1,sv2,sv3}/foo\&.iso\fR\&. Also you can specify numeric sequences with step counter:
  885. \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:
  886. \fIfalse\fR
  887. .RE
  888. .PP
  889. \fB\-q\fR, \fB\-\-quiet\fR[=\fItrue\fR|\fIfalse\fR]
  890. .RS 4
  891. Make aria2 quiet (no console output)\&. Default:
  892. \fIfalse\fR
  893. .RE
  894. .PP
  895. \fB\-\-realtime\-chunk\-checksum\fR=\fItrue\fR|\fIfalse\fR
  896. .RS 4
  897. Validate chunk of data by calculating checksum while downloading a file if chunk checksums are provided\&. Default:
  898. \fItrue\fR
  899. .RE
  900. .PP
  901. \fB\-\-stop\fR=SEC
  902. .RS 4
  903. Stop application after SEC seconds has passed\&. If
  904. \fI0\fR
  905. is given, this feature is disabled\&. Default:
  906. \fI0\fR
  907. .RE
  908. .PP
  909. \fB\-v\fR, \fB\-\-version\fR
  910. .RS 4
  911. Print the version number, copyright and the configuration information and exit\&.
  912. .RE
  913. .SS "Options That Take An Optional Argument"
  914. The options that have its argument surrounded by square brackets([]) take an optional argument\&. Usually omiting the argument is evaluated to \fItrue\fR\&. If you use short form of these options(such as \fI\-V\fR) and give an argument, then the option name and its argument should be concatenated(e\&.g\&. \fI\-Vfalse\fR)\&. If any spaces are inserted between the option name and the argument, the argument will be treated as URI and usually this is not what you expect\&.
  915. .sp
  916. .SS "URL, TORRENT_FILE, METALINK_FILE"
  917. 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\&.
  918. .sp
  919. You can also specify arbitrary number of torrent files and metalink files stored on a local drive\&. Please note that they are always treated as a separate download\&.
  920. .sp
  921. You can specify both torrent file with \-T option and URLs\&. By doing this, you can 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\&.
  922. .sp
  923. .sp
  924. .it 1 an-trap
  925. .nr an-no-space-flag 1
  926. .nr an-break-flag 1
  927. .br
  928. Note
  929. Make sure that URL is quoted with single(\') or double(") quotation if it contains "&" or any characters that have special meaning in shell\&.
  930. .sp
  931. .SS "Resuming Download"
  932. Usually, you can resume transfer by just issuing same command(aria2c URL) if the previous transfer is made by aria2\&.
  933. .sp
  934. If the previous transfer is made by a browser or wget like sequential download manager, then use \-c option to continue the transfer(aria2c \fB\-c\fR URL)\&.
  935. .sp
  936. .SH "EXIT STATUS"
  937. Because aria2 can handle multiple downloads at once, it encounters lots of errors in a session\&. aria2 returns the following exit status based on the last error encountered\&.
  938. .PP
  939. \fB0\fR
  940. .RS 4
  941. If all downloads are successful\&.
  942. .RE
  943. .PP
  944. \fB1\fR
  945. .RS 4
  946. If an unknown error occurs\&.
  947. .RE
  948. .PP
  949. \fB2\fR
  950. .RS 4
  951. If time out occurs\&.
  952. .RE
  953. .PP
  954. \fB3\fR
  955. .RS 4
  956. If a resource is not found\&.
  957. .RE
  958. .PP
  959. \fB4\fR
  960. .RS 4
  961. If aria2 sees the specfied number of "resource not found" error\&. See
  962. \fB\-\-max\-file\-not\-found\fR
  963. option)\&.
  964. .RE
  965. .PP
  966. \fB5\fR
  967. .RS 4
  968. If a download aborts because download speed is too slow\&. See
  969. \fB\-\-lowest\-speed\-limit\fR
  970. option)
  971. .RE
  972. .PP
  973. \fB6\fR
  974. .RS 4
  975. If network problem occurs\&.
  976. .RE
  977. .PP
  978. \fB7\fR
  979. .RS 4
  980. If there are unfinished downloads\&. This error is only reported if all finished downloads are successful and there are unfinished downloads in a queue when aria2 exits by pressing Ctrl\-C by an user or sending TERM or INT signal\&.
  981. .RE
  982. .sp
  983. .it 1 an-trap
  984. .nr an-no-space-flag 1
  985. .nr an-break-flag 1
  986. .br
  987. Note
  988. An error occurred in a finished download will not be reported as exit status\&.
  989. .sp
  990. .SH "ENVIRONMENT"
  991. aria2 recognizes the following environment variables\&.
  992. .PP
  993. http_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  994. .RS 4
  995. Specify proxy server for use in HTTP\&. Overrides http\-proxy value in configuration file\&. The command\-line option
  996. \fB\-\-http\-proxy\fR
  997. overrides this value\&.
  998. .RE
  999. .PP
  1000. https_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1001. .RS 4
  1002. Specify proxy server for use in HTTPS\&. Overrides https\-proxy value in configuration file\&. The command\-line option
  1003. \fB\-\-https\-proxy\fR
  1004. overrides this value\&.
  1005. .RE
  1006. .PP
  1007. ftp_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1008. .RS 4
  1009. Specify proxy server for use in FTP\&. Overrides ftp\-proxy value in configuration file\&. The command\-line option
  1010. \fB\-\-ftp\-proxy\fR
  1011. overrides this value\&.
  1012. .RE
  1013. .PP
  1014. all_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1015. .RS 4
  1016. Specify proxy server for use if no protocol\-specific proxy is specified\&. Overrides all\-proxy value in configuration file\&. The command\-line option
  1017. \fB\-\-all\-proxy\fR
  1018. overrides this value\&.
  1019. .RE
  1020. .PP
  1021. no_proxy [DOMAIN,\&...]
  1022. .RS 4
  1023. Specify comma\-separated hostname or domains to which proxy should not be used\&. Overrides no\-proxy value in configuration file\&. The command\-line option
  1024. \fB\-\-no\-proxy\fR
  1025. overrides this value\&.
  1026. .RE
  1027. .SH "FILES"
  1028. .SS "aria2\&.conf"
  1029. By default, aria2 parses \fI$HOME/\&.aria2/aria2\&.conf\fR as a configuraiton file\&. You can specify the path to configuration file using \fB\-\-conf\-path\fR option\&. If you don\'t want to use the configuraitonf file, use \fB\-\-no\-conf\fR option\&.
  1030. .sp
  1031. The configuration file is a text file and has 1 option per each line\&. In each line, you can specify name\-value pair in the format: NAME=VALUE, where name is the long command\-line option name without "\-\-" prefix\&. You can use same syntax for the command\-line option\&. The lines beginning "#" are treated as comments\&.
  1032. .sp
  1033. .sp
  1034. .RS 4
  1035. .nf
  1036. # sample configuration file for aria2c
  1037. listen\-port=60000
  1038. dht\-listen\-port=60000
  1039. seed\-ratio=1\&.0
  1040. max\-upload\-limit=50K
  1041. ftp\-pasv=true
  1042. .fi
  1043. .RE
  1044. .SS "dht\&.dat"
  1045. By default, the routing table of DHT is saved to the path $HOME/\&.aria2/dht\&.dat\&.
  1046. .sp
  1047. .SS "Control File"
  1048. aria2 uses a control file to track the progress of a download\&. A control file is placed in the same directory as the downloading 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\&.)
  1049. .sp
  1050. 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\&.
  1051. .sp
  1052. 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 \-V option to aria2c in command\-line\&.
  1053. .sp
  1054. .SS "Input File"
  1055. The input file can contain a list of URIs for aria2 to download\&. You can specify multiple URIs for a single entity: separate URIs on a single line using the TAB character\&.
  1056. .sp
  1057. Each line is treated as if it is provided in command\-line argument\&. Therefore they are affected by \fB\-Z\fR and \fB\-P\fR options\&.
  1058. .sp
  1059. Additionally, the following options can be specified after each line of URIs\&. These optional lines must start with white space(s)\&.
  1060. .sp
  1061. .sp
  1062. .RS 4
  1063. \h'-04'\(bu\h'+03'out
  1064. .RE
  1065. .sp
  1066. .RS 4
  1067. \h'-04'\(bu\h'+03'dir
  1068. .RE
  1069. .sp
  1070. .RS 4
  1071. \h'-04'\(bu\h'+03'select\-file
  1072. .RE
  1073. .sp
  1074. .RS 4
  1075. \h'-04'\(bu\h'+03'index\-out
  1076. .RE
  1077. These options have exactly same meaning of the ones in the command\-line options, but it just applies to the URIs it belongs to\&.
  1078. .sp
  1079. For example, the content of uri\&.txt is
  1080. .sp
  1081. .sp
  1082. .RS 4
  1083. .nf
  1084. http://server/file\&.iso http://mirror/file\&.iso
  1085. dir=/iso_images
  1086. out=file\&.img
  1087. http://foo/bar
  1088. .fi
  1089. .RE
  1090. If aria2 is executed with \fB\-i\fR uri\&.txt \fB\-d\fR /tmp options, then \fIfile\&.iso\fR is saved as \fI/iso_images/file\&.img\fR and it is downloaded from http://server/file\&.iso and http://mirror/file\&.iso\&. The file \fIbar\fR is downloaded from http://foo/bar and saved as \fI/tmp/bar\fR\&.
  1091. .sp
  1092. In some cases, \fBout\fR parameter has no effect\&. See note of \fB\-\-out\fR option for the restrictions\&.
  1093. .sp
  1094. .SS "Server Performance Profile"
  1095. 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:
  1096. .PP
  1097. host
  1098. .RS 4
  1099. Hostname of the server\&. Required\&.
  1100. .RE
  1101. .PP
  1102. protocol
  1103. .RS 4
  1104. Protocol for this profile, such as ftp, http\&. Required\&.
  1105. .RE
  1106. .PP
  1107. dl_speed
  1108. .RS 4
  1109. The average download speed observed in the previous download in bytes per sec\&. Required\&.
  1110. .RE
  1111. .PP
  1112. sc_avg_speed
  1113. .RS 4
  1114. The average download speed observed in the previous download in bytes per sec\&. This value is only updated if the download is done in single connection environment and only used by AdaptiveURISelector\&. Optional\&.
  1115. .RE
  1116. .PP
  1117. mc_avg_speed
  1118. .RS 4
  1119. The average download speed observed in the previous download in bytes per sec\&. This value is only updated if the download is done in multi connection environment and only used by AdaptiveURISelector\&. Optional\&.
  1120. .RE
  1121. .PP
  1122. counter
  1123. .RS 4
  1124. How many times the server is used\&. Currently this value is only used by AdaptiveURISelector\&. Optional\&.
  1125. .RE
  1126. .PP
  1127. last_updated
  1128. .RS 4
  1129. Last contact time in GMT with this server, specified in the seconds from the Epoch\&. Required\&.
  1130. .RE
  1131. .PP
  1132. status
  1133. .RS 4
  1134. ERROR is set when server cannot be reached or out\-of\-service or timeout occurred\&. Otherwise, OK is set\&.
  1135. .RE
  1136. Those fields must exist in one line\&. The order of the fields is not significant\&. You can put pairs other than the above; they are simply ignored\&.
  1137. .sp
  1138. An example follows:
  1139. .sp
  1140. .sp
  1141. .RS 4
  1142. .nf
  1143. host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  1144. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR
  1145. .fi
  1146. .RE
  1147. .SH "EXAMPLE"
  1148. .SS "HTTP/FTP Segmented Download"
  1149. .sp
  1150. .it 1 an-trap
  1151. .nr an-no-space-flag 1
  1152. .nr an-break-flag 1
  1153. .br
  1154. Download a file
  1155. .RS
  1156. .sp
  1157. .RS 4
  1158. .nf
  1159. aria2c "http://host/file\&.zip"
  1160. .fi
  1161. .RE
  1162. .sp
  1163. .it 1 an-trap
  1164. .nr an-no-space-flag 1
  1165. .nr an-break-flag 1
  1166. .br
  1167. Note
  1168. aria2 uses 5 connections to download 1 file by default\&.
  1169. .sp
  1170. .RE
  1171. .sp
  1172. .it 1 an-trap
  1173. .nr an-no-space-flag 1
  1174. .nr an-break-flag 1
  1175. .br
  1176. Download a file using 1 connection
  1177. .RS
  1178. .sp
  1179. .RS 4
  1180. .nf
  1181. aria2c \-s1 "http://host/file\&.zip"
  1182. .fi
  1183. .RE
  1184. .sp
  1185. .it 1 an-trap
  1186. .nr an-no-space-flag 1
  1187. .nr an-break-flag 1
  1188. .br
  1189. Note
  1190. aria2 uses 5 connections to download 1 file by default\&. \-s1 limits the number of connections to just 1\&.
  1191. .sp
  1192. .sp
  1193. .it 1 an-trap
  1194. .nr an-no-space-flag 1
  1195. .nr an-break-flag 1
  1196. .br
  1197. Note
  1198. To pause a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument in the same directory\&. You can change URLs as long as they are pointing to the same file\&.
  1199. .sp
  1200. .RE
  1201. .sp
  1202. .it 1 an-trap
  1203. .nr an-no-space-flag 1
  1204. .nr an-break-flag 1
  1205. .br
  1206. Download a file from 2 different HTTP servers
  1207. .RS
  1208. .sp
  1209. .RS 4
  1210. .nf
  1211. aria2c "http://host/file\&.zip" "http://mirror/file\&.zip"
  1212. .fi
  1213. .RE
  1214. .RE
  1215. .sp
  1216. .it 1 an-trap
  1217. .nr an-no-space-flag 1
  1218. .nr an-break-flag 1
  1219. .br
  1220. Download a file from HTTP and FTP servers
  1221. .RS
  1222. .sp
  1223. .RS 4
  1224. .nf
  1225. aria2c "http://host1/file\&.zip" "ftp://host2/file\&.zip"
  1226. .fi
  1227. .RE
  1228. .RE
  1229. .sp
  1230. .it 1 an-trap
  1231. .nr an-no-space-flag 1
  1232. .nr an-break-flag 1
  1233. .br
  1234. Download files listed in a text file concurrently
  1235. .RS
  1236. .sp
  1237. .RS 4
  1238. .nf
  1239. aria2c \-ifiles\&.txt \-j2
  1240. .fi
  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. Note
  1248. \-j option specifies the number of parallel downloads\&.
  1249. .sp
  1250. .RE
  1251. .sp
  1252. .it 1 an-trap
  1253. .nr an-no-space-flag 1
  1254. .nr an-break-flag 1
  1255. .br
  1256. Using proxy
  1257. .RS
  1258. For HTTP:
  1259. .sp
  1260. .sp
  1261. .RS 4
  1262. .nf
  1263. aria2c \-\-http\-proxy="http://proxy:8080" "http://host/file"
  1264. .fi
  1265. .RE
  1266. For FTP:
  1267. .sp
  1268. .sp
  1269. .RS 4
  1270. .nf
  1271. aria2c \-\-ftp\-proxy="http://proxy:8080" "ftp://host/file"
  1272. .fi
  1273. .RE
  1274. .sp
  1275. .it 1 an-trap
  1276. .nr an-no-space-flag 1
  1277. .nr an-break-flag 1
  1278. .br
  1279. Note
  1280. See \fB\-\-http\-proxy\fR, \fB\-\-https\-proxy\fR, \fB\-\-ftp\-proxy\fR and \fB\-\-all\-proxy\fR for details\&. You can specify proxy in the environment variables\&. See \fBENVIRONMENT\fR section\&.
  1281. .sp
  1282. .RE
  1283. .sp
  1284. .it 1 an-trap
  1285. .nr an-no-space-flag 1
  1286. .nr an-break-flag 1
  1287. .br
  1288. Proxy with authorization
  1289. .RS
  1290. .sp
  1291. .RS 4
  1292. .nf
  1293. aria2c \-\-http\-proxy="http://username:password@proxy:8080" "http://host/file"
  1294. .fi
  1295. .RE
  1296. .RE
  1297. .SS "Metalink Download"
  1298. .sp
  1299. .it 1 an-trap
  1300. .nr an-no-space-flag 1
  1301. .nr an-break-flag 1
  1302. .br
  1303. Download files with remote Metalink
  1304. .RS
  1305. .sp
  1306. .RS 4
  1307. .nf
  1308. aria2c \-\-follow\-metalink=mem "http://host/file\&.metalink"
  1309. .fi
  1310. .RE
  1311. .RE
  1312. .sp
  1313. .it 1 an-trap
  1314. .nr an-no-space-flag 1
  1315. .nr an-break-flag 1
  1316. .br
  1317. Download using a local metalink file
  1318. .RS
  1319. .sp
  1320. .RS 4
  1321. .nf
  1322. aria2c \-p \-\-lowest\-speed\-limit=4000 file\&.metalink
  1323. .fi
  1324. .RE
  1325. .sp
  1326. .it 1 an-trap
  1327. .nr an-no-space-flag 1
  1328. .nr an-break-flag 1
  1329. .br
  1330. Note
  1331. To pause a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument in the same directory\&.
  1332. .sp
  1333. .RE
  1334. .sp
  1335. .it 1 an-trap
  1336. .nr an-no-space-flag 1
  1337. .nr an-break-flag 1
  1338. .br
  1339. Download several local metalink files
  1340. .RS
  1341. .sp
  1342. .RS 4
  1343. .nf
  1344. aria2c \-j2 file1\&.metalink file2\&.metalink
  1345. .fi
  1346. .RE
  1347. .RE
  1348. .sp
  1349. .it 1 an-trap
  1350. .nr an-no-space-flag 1
  1351. .nr an-break-flag 1
  1352. .br
  1353. Download only selected files using index
  1354. .RS
  1355. .sp
  1356. .RS 4
  1357. .nf
  1358. aria2c \-\-select\-file=1\-4,8 file\&.metalink
  1359. .fi
  1360. .RE
  1361. .sp
  1362. .it 1 an-trap
  1363. .nr an-no-space-flag 1
  1364. .nr an-break-flag 1
  1365. .br
  1366. Note
  1367. The index is printed to the console using \-S option\&.
  1368. .sp
  1369. .RE
  1370. .sp
  1371. .it 1 an-trap
  1372. .nr an-no-space-flag 1
  1373. .nr an-break-flag 1
  1374. .br
  1375. Download a file using a local .metalink file with user preference
  1376. .RS
  1377. .sp
  1378. .RS 4
  1379. .nf
  1380. aria2c \-\-metalink\-location=JP,US \-\-metalink\-version=1\&.1 \-\-metalink\-language=en\-US file\&.metalink
  1381. .fi
  1382. .RE
  1383. .RE
  1384. .SS "BitTorrent Download"
  1385. .sp
  1386. .it 1 an-trap
  1387. .nr an-no-space-flag 1
  1388. .nr an-break-flag 1
  1389. .br
  1390. Download files from remote BitTorrent file
  1391. .RS
  1392. .sp
  1393. .RS 4
  1394. .nf
  1395. aria2c \-\-follow\-torrent=mem "http://host/file\&.torrent"
  1396. .fi
  1397. .RE
  1398. .RE
  1399. .sp
  1400. .it 1 an-trap
  1401. .nr an-no-space-flag 1
  1402. .nr an-break-flag 1
  1403. .br
  1404. Download using a local torrent file
  1405. .RS
  1406. .sp
  1407. .RS 4
  1408. .nf
  1409. aria2c \-\-max\-upload\-limit=40K file\&.torrent
  1410. .fi
  1411. .RE
  1412. .sp
  1413. .it 1 an-trap
  1414. .nr an-no-space-flag 1
  1415. .nr an-break-flag 1
  1416. .br
  1417. Note
  1418. \-\-max\-upload\-limit specifies the max of upload rate\&.
  1419. .sp
  1420. .sp
  1421. .it 1 an-trap
  1422. .nr an-no-space-flag 1
  1423. .nr an-break-flag 1
  1424. .br
  1425. Note
  1426. To pause a download, press Ctrl\-C\&. You can resume the transfer by run aria2c with the same argument in the same directory\&.
  1427. .sp
  1428. .RE
  1429. .sp
  1430. .it 1 an-trap
  1431. .nr an-no-space-flag 1
  1432. .nr an-break-flag 1
  1433. .br
  1434. Download 2 torrents
  1435. .RS
  1436. .sp
  1437. .RS 4
  1438. .nf
  1439. aria2c \-j2 file1\&.torrent file2\&.torrent
  1440. .fi
  1441. .RE
  1442. .RE
  1443. .sp
  1444. .it 1 an-trap
  1445. .nr an-no-space-flag 1
  1446. .nr an-break-flag 1
  1447. .br
  1448. Download a file using torrent and HTTP/FTP server
  1449. .RS
  1450. .sp
  1451. .RS 4
  1452. .nf
  1453. aria2c \-Ttest\&.torrent "http://host1/file" "ftp://host2/file"
  1454. .fi
  1455. .RE
  1456. .sp
  1457. .it 1 an-trap
  1458. .nr an-no-space-flag 1
  1459. .nr an-break-flag 1
  1460. .br
  1461. Note
  1462. Downloading multi file torrent with HTTP/FTP is not supported\&.
  1463. .sp
  1464. .RE
  1465. .sp
  1466. .it 1 an-trap
  1467. .nr an-no-space-flag 1
  1468. .nr an-break-flag 1
  1469. .br
  1470. Download only selected files using index(usually called "selectable download")
  1471. .RS
  1472. .sp
  1473. .RS 4
  1474. .nf
  1475. aria2c \-\-select\-file=1\-4,8 file\&.torrent
  1476. .fi
  1477. .RE
  1478. .sp
  1479. .it 1 an-trap
  1480. .nr an-no-space-flag 1
  1481. .nr an-break-flag 1
  1482. .br
  1483. Note
  1484. The index is printed to the console using \-S option\&.
  1485. .sp
  1486. .RE
  1487. .sp
  1488. .it 1 an-trap
  1489. .nr an-no-space-flag 1
  1490. .nr an-break-flag 1
  1491. .br
  1492. Specify output filename
  1493. .RS
  1494. To specify output filename for BitTorrent downloads, you need to know the index of file in torrent file using \fB\-S\fR option\&. For example, the output looks like this:
  1495. .sp
  1496. .sp
  1497. .RS 4
  1498. .nf
  1499. idx|path/length
  1500. ===+======================
  1501. 1|dist/base\-2\&.6\&.18\&.iso
  1502. |99\&.9MiB
  1503. \-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
  1504. 2|dist/driver\-2\&.6\&.18\&.iso
  1505. |169\&.0MiB
  1506. \-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
  1507. .fi
  1508. .RE
  1509. To save \fIdist/base\-2\&.6\&.18\&.iso\fR in \fI/tmp/mydir/base\&.iso\fR and \fIdist/driver\-2\&.6\&.18\&.iso\fR in \fI/tmp/dir/driver\&.iso\fR, use the following command:
  1510. .sp
  1511. .sp
  1512. .RS 4
  1513. .nf
  1514. aria2c \-\-dir=/tmp \-\-index\-out=1=mydir/base\&.iso \-\-index\-out=2=dir/driver\&.iso file\&.torrent
  1515. .fi
  1516. .RE
  1517. .RE
  1518. .sp
  1519. .it 1 an-trap
  1520. .nr an-no-space-flag 1
  1521. .nr an-break-flag 1
  1522. .br
  1523. Change the listening port for incoming peer
  1524. .RS
  1525. .sp
  1526. .RS 4
  1527. .nf
  1528. aria2c \-\-listen\-port=7000\-7001,8000 file\&.torrent
  1529. .fi
  1530. .RE
  1531. .sp
  1532. .it 1 an-trap
  1533. .nr an-no-space-flag 1
  1534. .nr an-break-flag 1
  1535. .br
  1536. Note
  1537. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\&.
  1538. .sp
  1539. .RE
  1540. .sp
  1541. .it 1 an-trap
  1542. .nr an-no-space-flag 1
  1543. .nr an-break-flag 1
  1544. .br
  1545. Specify the condition to stop program after torrent download finished
  1546. .RS
  1547. .sp
  1548. .RS 4
  1549. .nf
  1550. aria2c \-\-seed\-time=120 \-\-seed\-ratio=1\&.0 file\&.torrent
  1551. .fi
  1552. .RE
  1553. .sp
  1554. .it 1 an-trap
  1555. .nr an-no-space-flag 1
  1556. .nr an-break-flag 1
  1557. .br
  1558. Note
  1559. In the above example, the program exits when the 120 minutes has elapsed since download completed or seed ratio reaches 1\&.0\&.
  1560. .sp
  1561. .RE
  1562. .sp
  1563. .it 1 an-trap
  1564. .nr an-no-space-flag 1
  1565. .nr an-break-flag 1
  1566. .br
  1567. Throttle upload speed
  1568. .RS
  1569. .sp
  1570. .RS 4
  1571. .nf
  1572. aria2c \-\-max\-upload\-limit=100K file\&.torrent
  1573. .fi
  1574. .RE
  1575. .RE
  1576. .sp
  1577. .it 1 an-trap
  1578. .nr an-no-space-flag 1
  1579. .nr an-break-flag 1
  1580. .br
  1581. Enable DHT
  1582. .RS
  1583. .sp
  1584. .RS 4
  1585. .nf
  1586. aria2c \-\-enable\-dht \-\-dht\-listen\-port=6881 file\&.torrent
  1587. .fi
  1588. .RE
  1589. .sp
  1590. .it 1 an-trap
  1591. .nr an-no-space-flag 1
  1592. .nr an-break-flag 1
  1593. .br
  1594. Note
  1595. DHT uses udp port\&. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\&.
  1596. .sp
  1597. .RE
  1598. .SS "More advanced HTTP features"
  1599. .sp
  1600. .it 1 an-trap
  1601. .nr an-no-space-flag 1
  1602. .nr an-break-flag 1
  1603. .br
  1604. Load cookies
  1605. .RS
  1606. .sp
  1607. .RS 4
  1608. .nf
  1609. aria2c \-\-load\-cookies=cookies\&.txt "http://host/file\&.zip"
  1610. .fi
  1611. .RE
  1612. .sp
  1613. .it 1 an-trap
  1614. .nr an-no-space-flag 1
  1615. .nr an-break-flag 1
  1616. .br
  1617. Note
  1618. You can use Firefox/Mozilla\'s cookie file without modification\&.
  1619. .sp
  1620. .RE
  1621. .sp
  1622. .it 1 an-trap
  1623. .nr an-no-space-flag 1
  1624. .nr an-break-flag 1
  1625. .br
  1626. Resume download started by web browsers or another programs
  1627. .RS
  1628. .sp
  1629. .RS 4
  1630. .nf
  1631. aria2c \-c \-s2 "http://host/partiallydownloadedfile\&.zip"
  1632. .fi
  1633. .RE
  1634. .RE
  1635. .sp
  1636. .it 1 an-trap
  1637. .nr an-no-space-flag 1
  1638. .nr an-break-flag 1
  1639. .br
  1640. Client certificate authorization for SSL/TLS
  1641. .RS
  1642. .sp
  1643. .RS 4
  1644. .nf
  1645. aria2c \-\-certificate=/path/to/mycert\&.pem \-\-private\-key=/path/to/mykey\&.pem https://host/file
  1646. .fi
  1647. .RE
  1648. .sp
  1649. .it 1 an-trap
  1650. .nr an-no-space-flag 1
  1651. .nr an-break-flag 1
  1652. .br
  1653. Note
  1654. The file specified in \fB\-\-private\-key\fR must be decrypted\&. The behavior when encrypted one is given is undefined\&.
  1655. .sp
  1656. .RE
  1657. .sp
  1658. .it 1 an-trap
  1659. .nr an-no-space-flag 1
  1660. .nr an-break-flag 1
  1661. .br
  1662. Verify peer in SSL/TLS using given CA certificates
  1663. .RS
  1664. .sp
  1665. .RS 4
  1666. .nf
  1667. aria2c \-\-ca\-certificate=/path/to/ca\-certificates\&.crt \-\-check\-certificate https://host/file
  1668. .fi
  1669. .RE
  1670. .RE
  1671. .SS "And more advanced features"
  1672. .sp
  1673. .it 1 an-trap
  1674. .nr an-no-space-flag 1
  1675. .nr an-break-flag 1
  1676. .br
  1677. Throttle download speed
  1678. .RS
  1679. .sp
  1680. .RS 4
  1681. .nf
  1682. aria2c \-\-max\-download\-limit=100K file\&.metalink
  1683. .fi
  1684. .RE
  1685. .RE
  1686. .sp
  1687. .it 1 an-trap
  1688. .nr an-no-space-flag 1
  1689. .nr an-break-flag 1
  1690. .br
  1691. Repair a damaged download using -V option
  1692. .RS
  1693. .sp
  1694. .RS 4
  1695. .nf
  1696. aria2c \-V file\&.metalink
  1697. .fi
  1698. .RE
  1699. .sp
  1700. .it 1 an-trap
  1701. .nr an-no-space-flag 1
  1702. .nr an-break-flag 1
  1703. .br
  1704. Note
  1705. This option is only available used with BitTorrent or metalink with chunk checksums\&.
  1706. .sp
  1707. .RE
  1708. .sp
  1709. .it 1 an-trap
  1710. .nr an-no-space-flag 1
  1711. .nr an-break-flag 1
  1712. .br
  1713. Drop connection if download speed is lower than specified value
  1714. .RS
  1715. .sp
  1716. .RS 4
  1717. .nf
  1718. aria2c \-\-lowest\-speed\-limit=10K file\&.metalink
  1719. .fi
  1720. .RE
  1721. .RE
  1722. .sp
  1723. .it 1 an-trap
  1724. .nr an-no-space-flag 1
  1725. .nr an-break-flag 1
  1726. .br
  1727. Parameterized URI support
  1728. .RS
  1729. You can specify set of parts:
  1730. .sp
  1731. .sp
  1732. .RS 4
  1733. .nf
  1734. aria2c \-P "http://{host1,host2,host3}/file\&.iso"
  1735. .fi
  1736. .RE
  1737. You can specify numeric sequence:
  1738. .sp
  1739. .sp
  1740. .RS 4
  1741. .nf
  1742. aria2c \-Z \-P "http://host/image[000\-100]\&.png"
  1743. .fi
  1744. .RE
  1745. .sp
  1746. .it 1 an-trap
  1747. .nr an-no-space-flag 1
  1748. .nr an-break-flag 1
  1749. .br
  1750. Note
  1751. \-Z option is required if the all URIs don\'t point to the same file, such as the above example\&.
  1752. .sp
  1753. You can specify step counter:
  1754. .sp
  1755. .sp
  1756. .RS 4
  1757. .nf
  1758. aria2c \-Z \-P "http://host/image[A\-Z:2]\&.png"
  1759. .fi
  1760. .RE
  1761. .RE
  1762. .sp
  1763. .it 1 an-trap
  1764. .nr an-no-space-flag 1
  1765. .nr an-break-flag 1
  1766. .br
  1767. Parallel downloads of arbitrary number of URL,metalink,torrent
  1768. .RS
  1769. .sp
  1770. .RS 4
  1771. .nf
  1772. aria2c \-j3 \-Z "http://host/file1" file2\&.torrent file3\&.metalink
  1773. .fi
  1774. .RE
  1775. .RE
  1776. .sp
  1777. .it 1 an-trap
  1778. .nr an-no-space-flag 1
  1779. .nr an-break-flag 1
  1780. .br
  1781. BitTorrent Encryption
  1782. .RS
  1783. Encrypt whole payload using ARC4:
  1784. .sp
  1785. .sp
  1786. .RS 4
  1787. .nf
  1788. aria2c \-\-bt\-min\-crypto\-level=arc4 \-\-bt\-require\-crypto=true file\&.torrent
  1789. .fi
  1790. .RE
  1791. .RE
  1792. .SH "SEE ALSO"
  1793. Project Web Site: http://aria2\&.sourceforge\&.net/
  1794. .sp
  1795. aria2 Wiki: http://apps\&.sourceforge\&.net/trac/aria2/wiki
  1796. .sp
  1797. Metalink Homepage: http://www\&.metalinker\&.org/
  1798. .sp
  1799. .SH "COPYRIGHT"
  1800. Copyright \(co 2006, 2009 Tatsuhiro Tsujikawa
  1801. .sp
  1802. 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\&.
  1803. .sp
  1804. 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\&.
  1805. .sp
  1806. 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
  1807. .sp
  1808. 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\&.
  1809. .sp