aria2c.1.html 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  2. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta name="generator" content="AsciiDoc 8.2.7" />
  7. <style type="text/css">
  8. /* Debug borders */
  9. p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
  10. /*
  11. border: 1px solid red;
  12. */
  13. }
  14. body {
  15. margin: 1em 5% 1em 5%;
  16. }
  17. a {
  18. color: blue;
  19. text-decoration: underline;
  20. }
  21. a:visited {
  22. color: fuchsia;
  23. }
  24. em {
  25. font-style: italic;
  26. color: navy;
  27. }
  28. strong {
  29. font-weight: bold;
  30. color: #083194;
  31. }
  32. tt {
  33. color: navy;
  34. }
  35. h1, h2, h3, h4, h5, h6 {
  36. color: #527bbd;
  37. font-family: sans-serif;
  38. margin-top: 1.2em;
  39. margin-bottom: 0.5em;
  40. line-height: 1.3;
  41. }
  42. h1, h2, h3 {
  43. border-bottom: 2px solid silver;
  44. }
  45. h2 {
  46. padding-top: 0.5em;
  47. }
  48. h3 {
  49. float: left;
  50. }
  51. h3 + * {
  52. clear: left;
  53. }
  54. div.sectionbody {
  55. font-family: serif;
  56. margin-left: 0;
  57. }
  58. hr {
  59. border: 1px solid silver;
  60. }
  61. p {
  62. margin-top: 0.5em;
  63. margin-bottom: 0.5em;
  64. }
  65. ul, ol, li > p {
  66. margin-top: 0;
  67. }
  68. pre {
  69. padding: 0;
  70. margin: 0;
  71. }
  72. span#author {
  73. color: #527bbd;
  74. font-family: sans-serif;
  75. font-weight: bold;
  76. font-size: 1.1em;
  77. }
  78. span#email {
  79. }
  80. span#revision {
  81. font-family: sans-serif;
  82. }
  83. div#footer {
  84. font-family: sans-serif;
  85. font-size: small;
  86. border-top: 2px solid silver;
  87. padding-top: 0.5em;
  88. margin-top: 4.0em;
  89. }
  90. div#footer-text {
  91. float: left;
  92. padding-bottom: 0.5em;
  93. }
  94. div#footer-badges {
  95. float: right;
  96. padding-bottom: 0.5em;
  97. }
  98. div#preamble,
  99. div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
  100. div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
  101. div.admonitionblock {
  102. margin-right: 10%;
  103. margin-top: 1.5em;
  104. margin-bottom: 1.5em;
  105. }
  106. div.admonitionblock {
  107. margin-top: 2.5em;
  108. margin-bottom: 2.5em;
  109. }
  110. div.content { /* Block element content. */
  111. padding: 0;
  112. }
  113. /* Block element titles. */
  114. div.title, caption.title {
  115. color: #527bbd;
  116. font-family: sans-serif;
  117. font-weight: bold;
  118. text-align: left;
  119. margin-top: 1.0em;
  120. margin-bottom: 0.5em;
  121. }
  122. div.title + * {
  123. margin-top: 0;
  124. }
  125. td div.title:first-child {
  126. margin-top: 0.0em;
  127. }
  128. div.content div.title:first-child {
  129. margin-top: 0.0em;
  130. }
  131. div.content + div.title {
  132. margin-top: 0.0em;
  133. }
  134. div.sidebarblock > div.content {
  135. background: #ffffee;
  136. border: 1px solid silver;
  137. padding: 0.5em;
  138. }
  139. div.listingblock {
  140. margin-right: 0%;
  141. }
  142. div.listingblock > div.content {
  143. border: 1px solid silver;
  144. background: #f4f4f4;
  145. padding: 0.5em;
  146. }
  147. div.quoteblock {
  148. padding-left: 2.0em;
  149. }
  150. div.quoteblock > div.attribution {
  151. padding-top: 0.5em;
  152. text-align: right;
  153. }
  154. div.verseblock {
  155. padding-left: 2.0em;
  156. }
  157. div.verseblock > div.content {
  158. white-space: pre;
  159. }
  160. div.verseblock > div.attribution {
  161. padding-top: 0.75em;
  162. text-align: left;
  163. }
  164. /* DEPRECATED: Pre version 8.2.7 verse style literal block. */
  165. div.verseblock + div.attribution {
  166. text-align: left;
  167. }
  168. div.admonitionblock .icon {
  169. vertical-align: top;
  170. font-size: 1.1em;
  171. font-weight: bold;
  172. text-decoration: underline;
  173. color: #527bbd;
  174. padding-right: 0.5em;
  175. }
  176. div.admonitionblock td.content {
  177. padding-left: 0.5em;
  178. border-left: 2px solid silver;
  179. }
  180. div.exampleblock > div.content {
  181. border-left: 2px solid silver;
  182. padding: 0.5em;
  183. }
  184. div.imageblock div.content { padding-left: 0; }
  185. div.imageblock img { border: 1px solid silver; }
  186. span.image img { border-style: none; }
  187. dl {
  188. margin-top: 0.8em;
  189. margin-bottom: 0.8em;
  190. }
  191. dt {
  192. margin-top: 0.5em;
  193. margin-bottom: 0;
  194. font-style: normal;
  195. }
  196. dd > *:first-child {
  197. margin-top: 0.1em;
  198. }
  199. ul, ol {
  200. list-style-position: outside;
  201. }
  202. div.olist > ol {
  203. list-style-type: decimal;
  204. }
  205. div.olist2 > ol {
  206. list-style-type: lower-alpha;
  207. }
  208. div.tableblock > table {
  209. border: 3px solid #527bbd;
  210. }
  211. thead {
  212. font-family: sans-serif;
  213. font-weight: bold;
  214. }
  215. tfoot {
  216. font-weight: bold;
  217. }
  218. div.hlist {
  219. margin-top: 0.8em;
  220. margin-bottom: 0.8em;
  221. }
  222. div.hlist td {
  223. padding-bottom: 15px;
  224. }
  225. td.hlist1 {
  226. vertical-align: top;
  227. font-style: normal;
  228. padding-right: 0.8em;
  229. }
  230. td.hlist2 {
  231. vertical-align: top;
  232. }
  233. @media print {
  234. div#footer-badges { display: none; }
  235. }
  236. div#toctitle {
  237. color: #527bbd;
  238. font-family: sans-serif;
  239. font-size: 1.1em;
  240. font-weight: bold;
  241. margin-top: 1.0em;
  242. margin-bottom: 0.1em;
  243. }
  244. div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
  245. margin-top: 0;
  246. margin-bottom: 0;
  247. }
  248. div.toclevel2 {
  249. margin-left: 2em;
  250. font-size: 0.9em;
  251. }
  252. div.toclevel3 {
  253. margin-left: 4em;
  254. font-size: 0.9em;
  255. }
  256. div.toclevel4 {
  257. margin-left: 6em;
  258. font-size: 0.9em;
  259. }
  260. /* Overrides for manpage documents */
  261. h1 {
  262. padding-top: 0.5em;
  263. padding-bottom: 0.5em;
  264. border-top: 2px solid silver;
  265. border-bottom: 2px solid silver;
  266. }
  267. h2 {
  268. border-style: none;
  269. }
  270. div.sectionbody {
  271. margin-left: 5%;
  272. }
  273. @media print {
  274. div#toc { display: none; }
  275. }
  276. /* Workarounds for IE6's broken and incomplete CSS2. */
  277. div.sidebar-content {
  278. background: #ffffee;
  279. border: 1px solid silver;
  280. padding: 0.5em;
  281. }
  282. div.sidebar-title, div.image-title {
  283. color: #527bbd;
  284. font-family: sans-serif;
  285. font-weight: bold;
  286. margin-top: 0.0em;
  287. margin-bottom: 0.5em;
  288. }
  289. div.listingblock div.content {
  290. border: 1px solid silver;
  291. background: #f4f4f4;
  292. padding: 0.5em;
  293. }
  294. div.quoteblock-attribution {
  295. padding-top: 0.5em;
  296. text-align: right;
  297. }
  298. div.verseblock-content {
  299. white-space: pre;
  300. }
  301. div.verseblock-attribution {
  302. padding-top: 0.75em;
  303. text-align: left;
  304. }
  305. div.exampleblock-content {
  306. border-left: 2px solid silver;
  307. padding-left: 0.5em;
  308. }
  309. /* IE6 sets dynamically generated links as visited. */
  310. div#toc a:visited { color: blue; }
  311. /* Because IE6 child selector is broken. */
  312. div.olist2 ol {
  313. list-style-type: lower-alpha;
  314. }
  315. div.olist2 div.olist ol {
  316. list-style-type: decimal;
  317. }
  318. </style>
  319. <title>ARIA2C(1)</title>
  320. </head>
  321. <body>
  322. <div id="header">
  323. <h1>
  324. ARIA2C(1) Manual Page
  325. </h1>
  326. <h2>NAME</h2>
  327. <div class="sectionbody">
  328. <p>aria2c -
  329. The ultra fast download utility
  330. </p>
  331. </div>
  332. </div>
  333. <h2>SYNOPSIS</h2>
  334. <div class="sectionbody">
  335. <div class="para"><p>aria2c [<em>OPTIONS</em>] [<em>URL</em> | <em>TORRENT_FILE</em> | <em>METALINK_FILE</em>]&#8230;</p></div>
  336. </div>
  337. <h2 id="_description">DESCRIPTION</h2>
  338. <div class="sectionbody">
  339. <div class="para"><p>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.</p></div>
  340. </div>
  341. <h2 id="_options">OPTIONS</h2>
  342. <div class="sectionbody">
  343. <h3 id="_basic_options">Basic Options</h3><div style="clear:left"></div>
  344. <div class="vlist"><dl>
  345. <dt>
  346. <strong>-d</strong>, <strong>--dir</strong>=DIR
  347. </dt>
  348. <dd>
  349. <p>
  350. The directory to store the downloaded file.
  351. </p>
  352. </dd>
  353. <dt>
  354. <strong>-i</strong>, <strong>--input-file</strong>=FILE
  355. </dt>
  356. <dd>
  357. <p>
  358. Downloads URIs found in FILE. You can specify multiple URIs for a single
  359. entity: separate URIs on a single line using the TAB character.
  360. Reads input from stdin when <em>-</em> is specified.
  361. The additional <strong>out</strong> and <strong>dir</strong> options can be specified after each line of
  362. URIs. This optional line must start with white space(s).
  363. See INPUT FILE section for details.
  364. </p>
  365. </dd>
  366. <dt>
  367. <strong>-l</strong>, <strong>--log</strong>=LOG
  368. </dt>
  369. <dd>
  370. <p>
  371. The file name of the log file. If <em>-</em> is specified, log is written to
  372. stdout.
  373. </p>
  374. </dd>
  375. <dt>
  376. <strong>-j</strong>, <strong>--max-concurrent-downloads</strong>=N
  377. </dt>
  378. <dd>
  379. <p>
  380. Set maximum number of parallel downloads for every static (HTTP/FTP) URL,
  381. torrent and metalink. See also <strong>-s</strong> and <strong>-C</strong> option.
  382. Default: <em>5</em>
  383. </p>
  384. </dd>
  385. <dt>
  386. <strong>-V</strong>, <strong>--check-integrity</strong>[=<em>true</em>|<em>false</em>]
  387. </dt>
  388. <dd>
  389. <p>
  390. Check file integrity by validating piece hashes.
  391. This option has effect only in BitTorrent and Metalink downloads with
  392. chunk checksums.
  393. Use this option to re-download a damaged portion of a file.
  394. Default: <em>false</em>
  395. </p>
  396. </dd>
  397. <dt>
  398. <strong>-c</strong>, <strong>--continue</strong>
  399. </dt>
  400. <dd>
  401. <p>
  402. Continue downloading a partially downloaded file.
  403. Use this option to resume a download started by a web browser or another
  404. program which downloads files sequentially from the beginning.
  405. Currently this option is only applicable to HTTP(S)/FTP downloads.
  406. </p>
  407. </dd>
  408. <dt>
  409. <strong>-h</strong>, <strong>--help</strong>[=CATEGORY]
  410. </dt>
  411. <dd>
  412. <p>
  413. Print usage and exit.
  414. The help messages are classified in several categories.
  415. For example, type "<strong>--help</strong>=http" for detailed explanation for the options
  416. related to HTTP. If no matching category is found, search option name using
  417. a given word in middle match and print the result.
  418. Available Values: <em>basic</em>, <em>advanced</em>, <em>http</em>, <em>https</em>, <em>ftp</em>, <em>metalink</em>,
  419. <em>bittorrent</em>, <em>all</em>
  420. Default: <em>basic</em>
  421. </p>
  422. </dd>
  423. </dl></div>
  424. <h3 id="_http_ftp_options">HTTP/FTP Options</h3><div style="clear:left"></div>
  425. <div class="vlist"><dl>
  426. <dt>
  427. <strong>--all-proxy</strong>=PROXY
  428. </dt>
  429. <dd>
  430. <p>
  431. Use this proxy server for all protocols.
  432. You can override this setting and specify a proxy server for a particular
  433. protocol using <strong>--http-proxy</strong>, <strong>--https-proxy</strong> and <strong>--ftp-proxy</strong> options.
  434. This affects all URLs.
  435. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  436. </p>
  437. </dd>
  438. <dt>
  439. <strong>--connect-timeout</strong>=SEC
  440. </dt>
  441. <dd>
  442. <p>
  443. Set the connect timeout in seconds to establish connection to
  444. HTTP/FTP/proxy server. After the connection is established, this
  445. option makes no effect and <strong>--timeout</strong> option is used instead.
  446. Default: <em>60</em>
  447. </p>
  448. </dd>
  449. <dt>
  450. <strong>--lowest-speed-limit</strong>=SPEED
  451. </dt>
  452. <dd>
  453. <p>
  454. Close connection if download speed is lower than or equal to this
  455. value(bytes per sec).
  456. <em>0</em> means aria2 does not have a lowest speed limit.
  457. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  458. This option does not affect BitTorrent downloads.
  459. Default: <em>0</em>
  460. </p>
  461. </dd>
  462. <dt>
  463. <strong>--max-file-not-found</strong>=NUM
  464. </dt>
  465. <dd>
  466. <p>
  467. If aria2 receives `file not found' status from the remote HTTP/FTP
  468. servers NUM times without getting a single byte, then force the
  469. download to fail. Specify <em>0</em> to disable this option. This options is
  470. effective only when using HTTP/FTP servers.
  471. Default: <em>0</em>
  472. </p>
  473. </dd>
  474. <dt>
  475. <strong>-m</strong>, <strong>--max-tries</strong>=N
  476. </dt>
  477. <dd>
  478. <p>
  479. Set number of tries. <em>0</em> means unlimited.
  480. Default: <em>5</em>
  481. </p>
  482. </dd>
  483. <dt>
  484. <strong>--no-proxy</strong>=DOMAINS
  485. </dt>
  486. <dd>
  487. <p>
  488. Specify comma separated hostnames or domains where proxy should not be
  489. used.
  490. </p>
  491. </dd>
  492. <dt>
  493. <strong>-o</strong>, <strong>--out</strong>=FILE
  494. </dt>
  495. <dd>
  496. <p>
  497. The file name of the downloaded file.
  498. </p>
  499. </dd>
  500. </dl></div>
  501. <div class="admonitionblock">
  502. <table><tr>
  503. <td class="icon">
  504. <div class="title">Note</div>
  505. </td>
  506. <td class="content">In Metalink or BitTorrent download you cannot specify file name.
  507. The file name specified here is only used when the URLs fed to aria2
  508. are done by command line without <strong>-i</strong>, <strong>-Z</strong> option. For example:
  509. aria2c -o myfile.zip http://mirror1/file.zip http://mirror2/file.zip</td>
  510. </tr></table>
  511. </div>
  512. <div class="vlist"><dl>
  513. <dt>
  514. <strong>--proxy-method</strong>=METHOD
  515. </dt>
  516. <dd>
  517. <p>
  518. Set the method to use in proxy request.
  519. <em>METHOD</em> is either <em>get</em> or <em>tunnel</em>.
  520. Default: <em>tunnel</em>
  521. </p>
  522. </dd>
  523. <dt>
  524. <strong>-R</strong>, <strong>--remote-time</strong>[=<em>true</em>|<em>false</em>]
  525. </dt>
  526. <dd>
  527. <p>
  528. Retrieve timestamp of the remote file from the remote HTTP/FTP
  529. server and if it is available, apply it to the local file.
  530. Default: <em>false</em>
  531. </p>
  532. </dd>
  533. <dt>
  534. <strong>--retry-wait</strong>=SEC
  535. </dt>
  536. <dd>
  537. <p>
  538. Set the seconds to wait to retry after an error has occured.
  539. Specify a value between <em>0</em> and <em>60</em>.
  540. Default: <em>5</em>
  541. </p>
  542. </dd>
  543. <dt>
  544. <strong>--server-stat-of</strong>=FILE
  545. </dt>
  546. <dd>
  547. <p>
  548. Specify the filename to which performance profile of the servers is
  549. saved. You can load saved data using <strong>--server-stat-if</strong> option. See
  550. SERVER PERFORMANCE PROFILE section below for file format.
  551. </p>
  552. </dd>
  553. <dt>
  554. <strong>--server-stat-if</strong>=FILE
  555. </dt>
  556. <dd>
  557. <p>
  558. Specify the filename to load performance profile of the servers. The
  559. loaded data will be used in some URI selector such as <em>feedback</em>.
  560. See also <strong>--uri-selector</strong> option. See SERVER PERFORMANCE PROFILE
  561. section below for file format.
  562. </p>
  563. </dd>
  564. <dt>
  565. <strong>--server-stat-timeout</strong>=SEC
  566. </dt>
  567. <dd>
  568. <p>
  569. Specifies timeout in seconds to invalidate performance profile of
  570. the servers since the last contact to them.
  571. Default: <em>86400</em> (24hours)
  572. </p>
  573. </dd>
  574. <dt>
  575. <strong>-s</strong>, <strong>--split</strong>=N
  576. </dt>
  577. <dd>
  578. <p>
  579. Download a file using N connections.
  580. If more than N URLs are given, first N URLs are used and remaining URLs are
  581. used for backup.
  582. If less than N URLs are given, those URLs are used more than once so that N
  583. connections total are made simultaneously.
  584. Please see <strong>-j</strong> option too.
  585. Please note that in Metalink download, this option has no effect and use
  586. <strong>-C</strong> option instead.
  587. Default: <em>5</em>
  588. </p>
  589. </dd>
  590. <dt>
  591. <strong>-t</strong>, <strong>--timeout</strong>=SEC
  592. </dt>
  593. <dd>
  594. <p>
  595. Set timeout in seconds.
  596. Default: <em>60</em>
  597. </p>
  598. </dd>
  599. <dt>
  600. <strong>--uri-selector</strong>=SELECTOR
  601. </dt>
  602. <dd>
  603. <p>
  604. Specify URI selection algorithm. Possible values are <em>inorder</em>,
  605. <em>feedback</em> and <em>adaptive</em>. If <em>inorder</em> is given, URI is tried in
  606. the order appeared in the URI list. If <em>feedback</em> is given, aria2
  607. uses download speed observed in the previous downloads and choose
  608. fastest server in the URI list. This also effectively skips dead
  609. mirrors. The observed download speed is a part of performance
  610. profile of servers mentioned in <strong>--server-stat-of</strong> and
  611. <strong>--server-stat-if</strong> options. If <em>adaptive</em> is given, selects one of
  612. the best mirrors for the first and reserved connections. For
  613. supplementary ones, it returns mirrors which has not been tested
  614. yet, and if each of them has already been tested, returns mirrors
  615. which has to be tested again. Otherwise, it doesn't select anymore
  616. mirrors. Like <em>feedback</em>, it uses a performance profile of servers.
  617. Default: <em>inorder</em>
  618. </p>
  619. </dd>
  620. </dl></div>
  621. <h3 id="_http_specific_options">HTTP Specific Options</h3><div style="clear:left"></div>
  622. <div class="vlist"><dl>
  623. <dt>
  624. <strong>--ca-certificate</strong>=FILE
  625. </dt>
  626. <dd>
  627. <p>
  628. Use the certificate authorities in FILE to verify the peers.
  629. The certificate file must be in PEM format and can contain multiple CA
  630. certificates.
  631. Use <strong>--check-certificate</strong> option to enable verification.
  632. </p>
  633. </dd>
  634. <dt>
  635. <strong>--certificate</strong>=FILE
  636. </dt>
  637. <dd>
  638. <p>
  639. Use the client certificate in FILE.
  640. The certificate must be in PEM format.
  641. You may use <strong>--private-key</strong> option to specify the private key.
  642. </p>
  643. </dd>
  644. <dt>
  645. <strong>--check-certificate</strong>[=<em>true</em>|<em>false</em>]
  646. </dt>
  647. <dd>
  648. <p>
  649. Verify the peer using certificates specified in <strong>--ca-certificate</strong> option.
  650. Default: <em>true</em>
  651. </p>
  652. </dd>
  653. <dt>
  654. <strong>--http-auth-scheme</strong>=SCHEME
  655. </dt>
  656. <dd>
  657. <p>
  658. Set HTTP authentication scheme.
  659. Currently, <em>basic</em> is the only supported scheme.
  660. Default: <em>basic</em>
  661. </p>
  662. </dd>
  663. <dt>
  664. <strong>--http-user</strong>=USER
  665. </dt>
  666. <dd>
  667. <p>
  668. Set HTTP user. This affects all URLs.
  669. </p>
  670. </dd>
  671. <dt>
  672. <strong>--http-passwd</strong>=PASSWD
  673. </dt>
  674. <dd>
  675. <p>
  676. Set HTTP password. This affects all URLs.
  677. </p>
  678. </dd>
  679. <dt>
  680. <strong>--http-proxy</strong>=PROXY
  681. </dt>
  682. <dd>
  683. <p>
  684. Use this proxy server for HTTP. See also <strong>--all-proxy</strong> option.
  685. This affects all URLs.
  686. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  687. </p>
  688. </dd>
  689. <dt>
  690. <strong>--https-proxy</strong>=PROXY
  691. </dt>
  692. <dd>
  693. <p>
  694. Use this proxy server for HTTPS. See also <strong>--all-proxy</strong> option.
  695. This affects all URLs.
  696. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  697. </p>
  698. </dd>
  699. <dt>
  700. <strong>--private-key</strong>=FILE
  701. </dt>
  702. <dd>
  703. <p>
  704. Use the private key in FILE.
  705. The private key must be decrypted and in PEM format.
  706. The behavior when encrypted one is given is undefined.
  707. See also <strong>--certificate</strong> option.
  708. </p>
  709. </dd>
  710. <dt>
  711. <strong>--referer</strong>=REFERER
  712. </dt>
  713. <dd>
  714. <p>
  715. Set Referer. This affects all URLs.
  716. </p>
  717. </dd>
  718. <dt>
  719. <strong>--enable-http-keep-alive</strong>[=<em>true</em>|<em>false</em>]
  720. </dt>
  721. <dd>
  722. <p>
  723. Enable HTTP/1.1 persistent connection.
  724. Default: <em>true</em>
  725. </p>
  726. </dd>
  727. <dt>
  728. <strong>--enable-http-pipelining</strong>[=<em>true</em>|<em>false</em>]
  729. </dt>
  730. <dd>
  731. <p>
  732. Enable HTTP/1.1 pipelining.
  733. Default: <em>false</em>
  734. </p>
  735. </dd>
  736. <dt>
  737. <strong>--header</strong>=HEADER
  738. </dt>
  739. <dd>
  740. <p>
  741. Append HEADER to HTTP request header.
  742. You can use this option repeatedly to specify more than one header:
  743. aria2c <strong>--header</strong>="X-A: b78" <strong>--header</strong>="X-B: 9J1" http://host/file
  744. </p>
  745. </dd>
  746. <dt>
  747. <strong>--load-cookies</strong>=FILE
  748. </dt>
  749. <dd>
  750. <p>
  751. Load Cookies from FILE using the Firefox3 format (SQLite3) and the
  752. Mozilla/Firefox(1.x/2.x)/Netscape format.
  753. </p>
  754. </dd>
  755. </dl></div>
  756. <div class="admonitionblock">
  757. <table><tr>
  758. <td class="icon">
  759. <div class="title">Note</div>
  760. </td>
  761. <td class="content">If aria2 is built without libsqlite3, then it doesn't support Firefox3 cookie format.</td>
  762. </tr></table>
  763. </div>
  764. <div class="vlist"><dl>
  765. <dt>
  766. <strong>--use-head</strong>[=<em>true</em>|<em>false</em>]
  767. </dt>
  768. <dd>
  769. <p>
  770. Use HEAD method for the first request to the HTTP server.
  771. Default: <em>true</em>
  772. </p>
  773. </dd>
  774. <dt>
  775. <strong>-U</strong>, <strong>--user-agent</strong>=USER_AGENT
  776. </dt>
  777. <dd>
  778. <p>
  779. Set user agent for HTTP(S) downloads.
  780. </p>
  781. </dd>
  782. </dl></div>
  783. <h3 id="_ftp_specific_options">FTP Specific Options</h3><div style="clear:left"></div>
  784. <div class="vlist"><dl>
  785. <dt>
  786. <strong>--ftp-user</strong>=USER
  787. </dt>
  788. <dd>
  789. <p>
  790. Set FTP user. This affects all URLs.
  791. Default: <em>anonymous</em>
  792. </p>
  793. </dd>
  794. <dt>
  795. <strong>--ftp-passwd</strong>=PASSWD
  796. </dt>
  797. <dd>
  798. <p>
  799. Set FTP password. This affects all URLs.
  800. Default: <em>ARIA2USER@</em>
  801. </p>
  802. </dd>
  803. <dt>
  804. <strong>-p</strong>, <strong>--ftp-pasv</strong>[=<em>true</em>|<em>false</em>]
  805. </dt>
  806. <dd>
  807. <p>
  808. Use the passive mode in FTP.
  809. If <em>false</em> is given, the active mode will be used.
  810. Default: <em>true</em>
  811. </p>
  812. </dd>
  813. <dt>
  814. <strong>--ftp-proxy</strong>=PROXY
  815. </dt>
  816. <dd>
  817. <p>
  818. Use this proxy server for FTP. See also <strong>--all-proxy</strong> option.
  819. This affects all URLs.
  820. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  821. </p>
  822. </dd>
  823. <dt>
  824. <strong>--ftp-type</strong>=TYPE
  825. </dt>
  826. <dd>
  827. <p>
  828. Set FTP transfer type. TYPE is either <em>binary</em> or <em>ascii</em>.
  829. Default: <em>binary</em>
  830. </p>
  831. </dd>
  832. <dt>
  833. <strong>--ftp-reuse-connection</strong>[=<em>true</em>|<em>false</em>]
  834. </dt>
  835. <dd>
  836. <p>
  837. Reuse connection in FTP.
  838. Default: <em>true</em>
  839. </p>
  840. </dd>
  841. <dt>
  842. <strong>-n</strong>, <strong>--no-netrc</strong>
  843. </dt>
  844. <dd>
  845. <p>
  846. Disables netrc support. netrc support is enabled by default.
  847. </p>
  848. </dd>
  849. </dl></div>
  850. <h3 id="_bittorrent_metalink_options">BitTorrent/Metalink Options</h3><div style="clear:left"></div>
  851. <div class="vlist"><dl>
  852. <dt>
  853. <strong>--select-file</strong>=INDEX&#8230;
  854. </dt>
  855. <dd>
  856. <p>
  857. Set file to download by specifying its index.
  858. You can find the file index using the <strong>--show-files</strong> option.
  859. Multiple indexes can be specified by using ",", for example: <em>3,6</em>.
  860. You can also use "-" to specify a range: <em>1-5</em>.
  861. "," and "-" can be used together: <em>1-5,8,9</em>.
  862. When used with the -M option, index may vary depending on the query
  863. (see <strong>--metalink-</strong>* options).
  864. </p>
  865. </dd>
  866. </dl></div>
  867. <div class="admonitionblock">
  868. <table><tr>
  869. <td class="icon">
  870. <div class="title">Note</div>
  871. </td>
  872. <td class="content">In multi file torrent, the adjacent files specified by this option may
  873. also be downloaded. This is by design, not a bug.
  874. A single piece may include several files or part of files, and aria2
  875. writes the piece to the appropriate files.</td>
  876. </tr></table>
  877. </div>
  878. <div class="vlist"><dl>
  879. <dt>
  880. <strong>-S</strong>, <strong>--show-files</strong>
  881. </dt>
  882. <dd>
  883. <p>
  884. Print file listing of .torrent or .metalink file and exit.
  885. In case of .torrent file, additional information
  886. (infohash, piece length, etc) is also printed.
  887. </p>
  888. </dd>
  889. </dl></div>
  890. <h3 id="_bittorrent_specific_options">BitTorrent Specific Options</h3><div style="clear:left"></div>
  891. <div class="vlist"><dl>
  892. <dt>
  893. <strong>--bt-hash-check-seed</strong>[=<em>true</em>|<em>false</em>]
  894. </dt>
  895. <dd>
  896. <p>
  897. If <em>true</em> is given, after hash check using <strong>--check-integrity</strong> option and
  898. file is complete, continue to seed file. If you want to check file
  899. and download it only when it is damaged or incomplete, set this
  900. option to <em>false</em>. This option has effect only on BitTorrent download.
  901. Default: <em>true</em>
  902. </p>
  903. </dd>
  904. <dt>
  905. <strong>--bt-max-open-files</strong>=NUM
  906. </dt>
  907. <dd>
  908. <p>
  909. Specify maximum number of files to open in each BitTorrent download.
  910. Default: <em>100</em>
  911. </p>
  912. </dd>
  913. <dt>
  914. <strong>--bt-max-peers</strong>=NUM
  915. </dt>
  916. <dd>
  917. <p>
  918. Specify the maximum number of peers per torrent. <em>0</em> means
  919. unlimited. See also <strong>--bt-request-peer-speed-limit</strong> option.
  920. Default: <em>55</em>
  921. </p>
  922. </dd>
  923. <dt>
  924. <strong>--bt-min-crypto-level</strong>=<em>plain</em>|<em>arc4</em>
  925. </dt>
  926. <dd>
  927. <p>
  928. Set minimum level of encryption method.
  929. If several encryption methods are provided by a peer, aria2 chooses the lowest
  930. one which satisfies the given level.
  931. Default: <em>plain</em>
  932. </p>
  933. </dd>
  934. <dt>
  935. <strong>--bt-require-crypto</strong>=<em>true</em>|<em>false</em>
  936. </dt>
  937. <dd>
  938. <p>
  939. If true is given, aria2 doesn't accept and establish connection with legacy
  940. BitTorrent handshake(\19BitTorrent protocol).
  941. Thus aria2 always uses Obfuscation handshake.
  942. Default: <em>false</em>
  943. </p>
  944. </dd>
  945. <dt>
  946. <strong>--bt-request-peer-speed-limit</strong>=SPEED
  947. </dt>
  948. <dd>
  949. <p>
  950. If the whole download speed of every torrent is lower than SPEED,
  951. aria2 temporarily increases the number of peers to try for more
  952. download speed. Configuring this option with your preferred download
  953. speed can increase your download speed in some cases.
  954. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  955. Default: <em>50K</em>
  956. </p>
  957. </dd>
  958. <dt>
  959. <strong>--bt-seed-unverified</strong>[=<em>true</em>|<em>false</em>]
  960. </dt>
  961. <dd>
  962. <p>
  963. Seed previously downloaded files without verifying piece hashes.
  964. Default: <em>false</em>
  965. </p>
  966. </dd>
  967. <dt>
  968. <strong>--dht-entry-point</strong>=HOST:PORT
  969. </dt>
  970. <dd>
  971. <p>
  972. Set host and port as an entry point to DHT network.
  973. </p>
  974. </dd>
  975. <dt>
  976. <strong>--dht-file-path</strong>=PATH
  977. </dt>
  978. <dd>
  979. <p>
  980. Change the DHT routing table file to PATH.
  981. Default: <em>$HOME/.aria2/dht.dat</em>
  982. </p>
  983. </dd>
  984. <dt>
  985. <strong>--dht-listen-port</strong>=PORT&#8230;
  986. </dt>
  987. <dd>
  988. <p>
  989. Set UDP listening port for DHT.
  990. Multiple ports can be specified by using ",", for example: <em>6881,6885</em>.
  991. You can also use "-" to specify a range: <em>6881-6999</em>. "," and "-" can be used
  992. together.
  993. Default: <em>6881-6999</em>
  994. </p>
  995. </dd>
  996. </dl></div>
  997. <div class="admonitionblock">
  998. <table><tr>
  999. <td class="icon">
  1000. <div class="title">Note</div>
  1001. </td>
  1002. <td class="content">Make sure that the specified ports are open for incoming UDP traffic.</td>
  1003. </tr></table>
  1004. </div>
  1005. <div class="vlist"><dl>
  1006. <dt>
  1007. <strong>--direct-file-mapping</strong>=<em>true</em>|<em>false</em>
  1008. </dt>
  1009. <dd>
  1010. <p>
  1011. Directly read from and write to each file mentioned in .torrent file.
  1012. Use this option if lots of files are listed in .torrent file and aria2
  1013. complains it cannot open files anymore.
  1014. Default: <em>true</em>
  1015. </p>
  1016. </dd>
  1017. <dt>
  1018. <strong>--enable-dht</strong>[=<em>true</em>|<em>false</em>]
  1019. </dt>
  1020. <dd>
  1021. <p>
  1022. Enable DHT functionality. If a private flag is set in a torrent, aria2
  1023. doesn't use DHT for that download even if <em>true</em> is given.
  1024. Default: <em>false</em>
  1025. </p>
  1026. </dd>
  1027. <dt>
  1028. <strong>--enable-peer-exchange</strong>[=<em>true</em>|<em>false</em>]
  1029. </dt>
  1030. <dd>
  1031. <p>
  1032. Enable Peer Exchange extension. If a private flag is set in a torrent, this
  1033. feature is disabled for that download even if <em>true</em> is given.
  1034. Default: <em>true</em>
  1035. </p>
  1036. </dd>
  1037. <dt>
  1038. <strong>--follow-torrent</strong>=<em>true</em>|<em>false</em>|<em>mem</em>
  1039. </dt>
  1040. <dd>
  1041. <p>
  1042. If <em>true</em> or <em>mem</em> is specified, when a file whose suffix is ".torrent" or content
  1043. type is "application/x-bittorrent" is downloaded, aria2 parses it as a torrent
  1044. file and downloads files mentioned in it.
  1045. If <em>mem</em> is specified, a torrent file is not written to the disk, but is just
  1046. kept in memory.
  1047. If <em>false</em> is specified, the action mentioned above is not taken.
  1048. Default: <em>true</em>
  1049. </p>
  1050. </dd>
  1051. <dt>
  1052. <strong>--listen-port</strong>=PORT&#8230;
  1053. </dt>
  1054. <dd>
  1055. <p>
  1056. Set TCP port number for BitTorrent downloads.
  1057. Multiple ports can be specified by using ",", for example: <em>6881,6885</em>.
  1058. You can also use "-" to specify a range: <em>6881-6999</em>.
  1059. "," and "-" can be used together: <em>6881-6889,6999</em>.
  1060. Default: <em>6881-6999</em>
  1061. </p>
  1062. </dd>
  1063. </dl></div>
  1064. <div class="admonitionblock">
  1065. <table><tr>
  1066. <td class="icon">
  1067. <div class="title">Note</div>
  1068. </td>
  1069. <td class="content">Make sure that the specified ports are open for incoming TCP traffic.</td>
  1070. </tr></table>
  1071. </div>
  1072. <div class="vlist"><dl>
  1073. <dt>
  1074. <strong>--max-overall-upload-limit</strong>=SPEED
  1075. </dt>
  1076. <dd>
  1077. <p>
  1078. Set max overall upload speed in bytes/sec.
  1079. <em>0</em> means unrestricted.
  1080. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1081. To limit the upload speed per torrent, use <strong>--max-upload-limit</strong> option.
  1082. If non-zero value is specified, <strong>--max-upload-limit</strong> option is ignored.
  1083. Default: <em>0</em>
  1084. </p>
  1085. </dd>
  1086. <dt>
  1087. <strong>-u</strong>, <strong>--max-upload-limit</strong>=SPEED
  1088. </dt>
  1089. <dd>
  1090. <p>
  1091. Set max upload speed per each torrent in bytes/sec.
  1092. <em>0</em> means unrestricted.
  1093. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1094. To limit the overall upload speed, use <strong>--max-overall-upload-limit</strong> option.
  1095. Default: <em>0</em>
  1096. </p>
  1097. </dd>
  1098. <dt>
  1099. <strong>--peer-id-prefix</strong>=PEERI_ID_PREFIX
  1100. </dt>
  1101. <dd>
  1102. <p>
  1103. Specify the prefix of peer ID. The peer ID in BitTorrent is 20 byte length.
  1104. If more than 20 bytes are specified, only first 20 bytes are used.
  1105. If less than 20 bytes are specified, the random alphabet characters are
  1106. added to make it's length 20 bytes.
  1107. Default: <em>-aria2-</em>
  1108. </p>
  1109. </dd>
  1110. <dt>
  1111. <strong>--seed-ratio</strong>=RATIO
  1112. </dt>
  1113. <dd>
  1114. <p>
  1115. Specify share ratio. Seed completed torrents until share ratio reaches
  1116. RATIO.
  1117. You are strongly encouraged to specify equals or more than <em>1.0</em> here.
  1118. Specify <em>0.0</em> if you intend to do seeding regardless of share ratio.
  1119. If <strong>--seed-time</strong> option is specified along with this option, seeding ends when
  1120. at least one of the conditions is satisfied.
  1121. Default: <em>1.0</em>
  1122. </p>
  1123. </dd>
  1124. <dt>
  1125. <strong>--seed-time</strong>=MINUTES
  1126. </dt>
  1127. <dd>
  1128. <p>
  1129. Specify seeding time in minutes. Also see the <strong>--seed-ratio</strong> option.
  1130. </p>
  1131. </dd>
  1132. <dt>
  1133. <strong>-T</strong>, <strong>--torrent-file</strong>=TORRENT_FILE
  1134. </dt>
  1135. <dd>
  1136. <p>
  1137. The path to the .torrent file.
  1138. You are not required to use this option because you can specify a torrent file without -T.
  1139. </p>
  1140. </dd>
  1141. </dl></div>
  1142. <h3 id="_metalink_specific_options">Metalink Specific Options</h3><div style="clear:left"></div>
  1143. <div class="vlist"><dl>
  1144. <dt>
  1145. <strong>--follow-metalink</strong>=<em>true</em>|<em>false</em>|<em>mem</em>
  1146. </dt>
  1147. <dd>
  1148. <p>
  1149. If <em>true</em> or <em>mem</em> is specified, when a file whose suffix is ".metaink" or content
  1150. type of "application/metalink+xml" is downloaded, aria2 parses it as a metalink
  1151. file and downloads files mentioned in it.
  1152. If <em>mem</em> is specified, a metalink file is not written to the disk, but is just
  1153. kept in memory.
  1154. If <em>false</em> is specified, the action mentioned above is not taken.
  1155. Default: <em>true</em>
  1156. </p>
  1157. </dd>
  1158. <dt>
  1159. <strong>-M</strong>, <strong>--metalink-file</strong>=METALINK_FILE
  1160. </dt>
  1161. <dd>
  1162. <p>
  1163. The file path to .metalink file. You are not required to use this option because you can
  1164. specify a metalink file without -M.
  1165. </p>
  1166. </dd>
  1167. <dt>
  1168. <strong>-C</strong>, <strong>--metalink-servers</strong>=NUM_SERVERS
  1169. </dt>
  1170. <dd>
  1171. <p>
  1172. The number of servers to connect to simultaneously.
  1173. Some Metalinks regulate the number of servers to connect.
  1174. aria2 strictly respects them.
  1175. This means that if Metalink defines the maxconnections attribute lower
  1176. than NUM_SERVERS, then aria2 uses the value of maxconnections attribute
  1177. instead of NUM_SERVERS.
  1178. See also <strong>-s</strong> and <strong>-j</strong> options.
  1179. Default: <em>5</em>
  1180. </p>
  1181. </dd>
  1182. <dt>
  1183. <strong>--metalink-language</strong>=LANGUAGE
  1184. </dt>
  1185. <dd>
  1186. <p>
  1187. The language of the file to download.
  1188. </p>
  1189. </dd>
  1190. <dt>
  1191. <strong>--metalink-location</strong>=LOCATION[,&#8230;]
  1192. </dt>
  1193. <dd>
  1194. <p>
  1195. The location of the preferred server.
  1196. A comma-delimited list of locations is acceptable, for example, <em>JP,US</em>.
  1197. </p>
  1198. </dd>
  1199. <dt>
  1200. <strong>--metalink-os</strong>=OS
  1201. </dt>
  1202. <dd>
  1203. <p>
  1204. The operating system of the file to download.
  1205. </p>
  1206. </dd>
  1207. <dt>
  1208. <strong>--metalink-version</strong>=VERSION
  1209. </dt>
  1210. <dd>
  1211. <p>
  1212. The version of the file to download.
  1213. </p>
  1214. </dd>
  1215. <dt>
  1216. <strong>--metalink-preferred-protocol</strong>=PROTO
  1217. </dt>
  1218. <dd>
  1219. <p>
  1220. Specify preferred protocol.
  1221. The possible values are <em>http</em>, <em>https</em>, <em>ftp</em> and <em>none</em>.
  1222. Specify <em>none</em> to disable this feature.
  1223. Default: <em>none</em>
  1224. </p>
  1225. </dd>
  1226. <dt>
  1227. <strong>--metalink-enable-unique-protocol</strong>=<em>true</em>|<em>false</em>
  1228. </dt>
  1229. <dd>
  1230. <p>
  1231. If <em>true</em> is given and several protocols are available for a mirror in a
  1232. metalink file, aria2 uses one of them.
  1233. Use <strong>--metalink-preferred-protocol</strong> option to specify the preference of
  1234. protocol.
  1235. Default: <em>true</em>
  1236. </p>
  1237. </dd>
  1238. </dl></div>
  1239. <h3 id="_advanced_options">Advanced Options</h3><div style="clear:left"></div>
  1240. <div class="vlist"><dl>
  1241. <dt>
  1242. <strong>--allow-overwrite</strong>=<em>true</em>|<em>false</em>
  1243. </dt>
  1244. <dd>
  1245. <p>
  1246. If <em>false</em> is given, aria2 doesn't download a file which already exists but
  1247. the corresponding .aria2 file doesn't exist.
  1248. In HTTP(S)/FTP download, if <strong>--auto-file-renaming</strong>=<em>true</em> then,
  1249. file name will be renamed. See <strong>--auto-file-renaming</strong> for details.
  1250. Default: <em>false</em>
  1251. </p>
  1252. </dd>
  1253. <dt>
  1254. <strong>--allow-piece-length-change</strong>=<em>true</em>|<em>false</em>
  1255. </dt>
  1256. <dd>
  1257. <p>
  1258. If false is given, aria2 aborts download when a piece length is different
  1259. from one in a control file.
  1260. If true is given, you can proceed but some download progress will be lost.
  1261. Default: <em>false</em>
  1262. </p>
  1263. </dd>
  1264. <dt>
  1265. <strong>--async-dns</strong>[=<em>true</em>|<em>false</em>]
  1266. </dt>
  1267. <dd>
  1268. <p>
  1269. Enable asynchronous DNS.
  1270. Default: <em>true</em>
  1271. </p>
  1272. </dd>
  1273. <dt>
  1274. <strong>--auto-file-renaming</strong>[=<em>true</em>|<em>false</em>]
  1275. </dt>
  1276. <dd>
  1277. <p>
  1278. Rename file name if the same file already exists.
  1279. This option works only in HTTP(S)/FTP download.
  1280. The new file name has a dot and a number(1..9999) appended.
  1281. Default: <em>true</em>
  1282. </p>
  1283. </dd>
  1284. <dt>
  1285. <strong>--auto-save-interval</strong>=SEC
  1286. </dt>
  1287. <dd>
  1288. <p>
  1289. Save a control file(*.aria2) every SEC seconds.
  1290. If <em>0</em> is given, a control file is not saved during download. aria2 saves a
  1291. control file when it stops regardless of the value.
  1292. The possible values are between <em>0</em> to <em>600</em>.
  1293. Default: <em>60</em>
  1294. </p>
  1295. </dd>
  1296. <dt>
  1297. <strong>--conf-path</strong>=PATH
  1298. </dt>
  1299. <dd>
  1300. <p>
  1301. Change the configuration file path to PATH.
  1302. Default: <em>$HOME/.aria2/aria2.conf</em>
  1303. </p>
  1304. </dd>
  1305. <dt>
  1306. <strong>-D</strong>, <strong>--daemon</strong>
  1307. </dt>
  1308. <dd>
  1309. <p>
  1310. Run as daemon.
  1311. </p>
  1312. </dd>
  1313. <dt>
  1314. <strong>--enable-direct-io</strong>[=<em>true</em>|<em>false</em>]
  1315. </dt>
  1316. <dd>
  1317. <p>
  1318. Enable directI/O, which lowers cpu usage while allocating/checking files.
  1319. Turn off if you encounter any error.
  1320. Default: <em>true</em>
  1321. </p>
  1322. </dd>
  1323. <dt>
  1324. <strong>--file-allocation</strong>=METHOD
  1325. </dt>
  1326. <dd>
  1327. <p>
  1328. Specify file allocation method. METHOD is either <em>none</em> or <em>prealloc</em>.
  1329. <em>none</em> doesn't pre-allocate file space. <em>prealloc</em> pre-allocates file space
  1330. before download begins. This may take some time depending on the size of the
  1331. file.
  1332. Default: <em>prealloc</em>
  1333. </p>
  1334. </dd>
  1335. <dt>
  1336. <strong>--log-level</strong>=LEVEL
  1337. </dt>
  1338. <dd>
  1339. <p>
  1340. Set log level to output.
  1341. LEVEL is either <em>debug</em>, <em>info</em>, <em>notice</em>, <em>warn</em> or <em>error</em>.
  1342. Default: <em>debug</em>
  1343. </p>
  1344. </dd>
  1345. <dt>
  1346. <strong>--summary-interval</strong>=SEC
  1347. </dt>
  1348. <dd>
  1349. <p>
  1350. Set interval in seconds to output download progress summary.
  1351. Setting <em>0</em> suppresses the output.
  1352. Default: <em>60</em>
  1353. </p>
  1354. </dd>
  1355. </dl></div>
  1356. <div class="admonitionblock">
  1357. <table><tr>
  1358. <td class="icon">
  1359. <div class="title">Note</div>
  1360. </td>
  1361. <td class="content">In multi file torrent downloads, the files adjacent forward to the specified files
  1362. are also allocated if they share the same piece.</td>
  1363. </tr></table>
  1364. </div>
  1365. <div class="vlist"><dl>
  1366. <dt>
  1367. <strong>-Z</strong>, <strong>--force-sequential</strong>[=<em>true</em>|<em>false</em>]
  1368. </dt>
  1369. <dd>
  1370. <p>
  1371. Fetch URIs in the command-line sequentially and download each URI in a
  1372. separate session, like the usual command-line download utilities.
  1373. Default: <em>false</em>
  1374. </p>
  1375. </dd>
  1376. <dt>
  1377. <strong>--max-download-limit</strong>=SPEED
  1378. </dt>
  1379. <dd>
  1380. <p>
  1381. Set max download speed in bytes per sec. <em>0</em> means unrestricted.
  1382. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1383. Default: <em>0</em>
  1384. </p>
  1385. </dd>
  1386. <dt>
  1387. <strong>--no-conf</strong>
  1388. </dt>
  1389. <dd>
  1390. <p>
  1391. Disable loading aria2.conf file.
  1392. </p>
  1393. </dd>
  1394. <dt>
  1395. <strong>--no-file-allocation-limit</strong>=SIZE
  1396. </dt>
  1397. <dd>
  1398. <p>
  1399. No file allocation is made for files whose size is smaller than SIZE.
  1400. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1401. Default: <em>5M</em>
  1402. </p>
  1403. </dd>
  1404. <dt>
  1405. <strong>-P</strong>, <strong>--parameterized-uri</strong>[=<em>true</em>|<em>false</em>]
  1406. </dt>
  1407. <dd>
  1408. <p>
  1409. Enable parameterized URI support.
  1410. You can specify set of parts: <em>http://{sv1,sv2,sv3}/foo.iso</em>.
  1411. Also you can specify numeric sequences with step counter:
  1412. <em>http://host/image[000-100:2].img</em>.
  1413. A step counter can be omitted.
  1414. If all URIs do not point to the same file, such as the second example above,
  1415. -Z option is required.
  1416. Default: <em>false</em>
  1417. </p>
  1418. </dd>
  1419. <dt>
  1420. <strong>-q</strong>, <strong>--quiet</strong>[=<em>true</em>|<em>false</em>]
  1421. </dt>
  1422. <dd>
  1423. <p>
  1424. Make aria2 quiet (no console output).
  1425. Default: <em>false</em>
  1426. </p>
  1427. </dd>
  1428. <dt>
  1429. <strong>--realtime-chunk-checksum</strong>=<em>true</em>|<em>false</em>
  1430. </dt>
  1431. <dd>
  1432. <p>
  1433. Validate chunk of data by calculating checksum while downloading a file if
  1434. chunk checksums are provided.
  1435. Default: <em>true</em>
  1436. </p>
  1437. </dd>
  1438. <dt>
  1439. <strong>--stop</strong>=SEC
  1440. </dt>
  1441. <dd>
  1442. <p>
  1443. Stop application after SEC seconds has passed.
  1444. If <em>0</em> is given, this feature is disabled.
  1445. Default: <em>0</em>
  1446. </p>
  1447. </dd>
  1448. <dt>
  1449. <strong>-v</strong>, <strong>--version</strong>
  1450. </dt>
  1451. <dd>
  1452. <p>
  1453. Print the version number, copyright and the configuration information and
  1454. exit.
  1455. </p>
  1456. </dd>
  1457. </dl></div>
  1458. <h3 id="_options_that_take_an_optional_argument">OPTIONS THAT TAKE AN OPTIONAL ARGUMENT</h3><div style="clear:left"></div>
  1459. <div class="para"><p>The options that have its argument surrounded by square brackets([])
  1460. take an optional argument. Usually omiting the argument is evaluated to <em>true</em>.
  1461. If you use short form of these options(such as <em>-V</em>) and give
  1462. an argument, then the option name and its argument should be concatenated(e.g.
  1463. <em>-Vfalse</em>). If any spaces are inserted between the option name and the argument,
  1464. the argument will be treated as URI and usually this is not what you expect.</p></div>
  1465. <h3 id="_url_torrent_file_metalink_file">URL, TORRENT_FILE, METALINK_FILE</h3><div style="clear:left"></div>
  1466. <div class="para"><p>You can specify multiple URLs in command-line.
  1467. Unless you specify <strong>-Z</strong> option, all URLs must point to the same file or downloading will fail.</p></div>
  1468. <div class="para"><p>You can also specify arbitrary number of torrent files and metalink files
  1469. stored on a local drive. Please note that they are always treated as a
  1470. separate download.</p></div>
  1471. <div class="para"><p>You can specify both torrent file with -T option and URLs. By doing this,
  1472. you can download a file from both torrent swarm and HTTP(S)/FTP server at the same time,
  1473. while the data from HTTP(S)/FTP are uploaded to the torrent swarm. Note that
  1474. only single file torrent can be integrated with HTTP(S)/FTP.</p></div>
  1475. <div class="admonitionblock">
  1476. <table><tr>
  1477. <td class="icon">
  1478. <div class="title">Note</div>
  1479. </td>
  1480. <td class="content">Make sure that URL is quoted with single(') or double(") quotation if it
  1481. contains "&amp;" or any characters that have special meaning in shell.</td>
  1482. </tr></table>
  1483. </div>
  1484. </div>
  1485. <h2 id="_examples">EXAMPLES</h2>
  1486. <div class="sectionbody">
  1487. <h3 id="_http_ftp_segmented_download">HTTP/FTP Segmented Download</h3><div style="clear:left"></div>
  1488. <h4 id="_download_a_file">Download a file</h4>
  1489. <div class="listingblock">
  1490. <div class="content">
  1491. <pre><tt>aria2c http://host/file.zip</tt></pre>
  1492. </div></div>
  1493. <div class="admonitionblock">
  1494. <table><tr>
  1495. <td class="icon">
  1496. <div class="title">Note</div>
  1497. </td>
  1498. <td class="content">aria2 uses 5 connections to download 1 file by default.</td>
  1499. </tr></table>
  1500. </div>
  1501. <h4 id="_download_a_file_using_1_connection">Download a file using 1 connection</h4>
  1502. <div class="listingblock">
  1503. <div class="content">
  1504. <pre><tt>aria2c -s1 http://host/file.zip</tt></pre>
  1505. </div></div>
  1506. <div class="admonitionblock">
  1507. <table><tr>
  1508. <td class="icon">
  1509. <div class="title">Note</div>
  1510. </td>
  1511. <td class="content">aria2 uses 5 connections to download 1 file by default.
  1512. -s1 limits the number of connections to just 1.</td>
  1513. </tr></table>
  1514. </div>
  1515. <div class="admonitionblock">
  1516. <table><tr>
  1517. <td class="icon">
  1518. <div class="title">Note</div>
  1519. </td>
  1520. <td class="content">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.</td>
  1521. </tr></table>
  1522. </div>
  1523. <h4 id="_download_a_file_from_2_different_http_servers">Download a file from 2 different HTTP servers</h4>
  1524. <div class="listingblock">
  1525. <div class="content">
  1526. <pre><tt>aria2c http://host/file.zip http://mirror/file.zip</tt></pre>
  1527. </div></div>
  1528. <h4 id="_download_a_file_from_http_and_ftp_servers">Download a file from HTTP and FTP servers</h4>
  1529. <div class="listingblock">
  1530. <div class="content">
  1531. <pre><tt>aria2c http://host1/file.zip ftp://host2/file.zip</tt></pre>
  1532. </div></div>
  1533. <h4 id="_download_files_listed_in_a_text_file_concurrently">Download files listed in a text file concurrently</h4>
  1534. <div class="listingblock">
  1535. <div class="content">
  1536. <pre><tt>aria2c -ifiles.txt -j2</tt></pre>
  1537. </div></div>
  1538. <div class="admonitionblock">
  1539. <table><tr>
  1540. <td class="icon">
  1541. <div class="title">Note</div>
  1542. </td>
  1543. <td class="content">-j option specifies the number of parallel downloads.</td>
  1544. </tr></table>
  1545. </div>
  1546. <h4 id="_using_proxy">Using proxy</h4>
  1547. <div class="para"><p>For HTTP:</p></div>
  1548. <div class="listingblock">
  1549. <div class="content">
  1550. <pre><tt>aria2c --http-proxy=http://proxy:8080 http://host/file</tt></pre>
  1551. </div></div>
  1552. <div class="para"><p>For FTP:</p></div>
  1553. <div class="listingblock">
  1554. <div class="content">
  1555. <pre><tt>aria2c --ftp-proxy=http://proxy:8080 ftp://host/file</tt></pre>
  1556. </div></div>
  1557. <div class="admonitionblock">
  1558. <table><tr>
  1559. <td class="icon">
  1560. <div class="title">Note</div>
  1561. </td>
  1562. <td class="content">See <strong>--http-proxy</strong>, <strong>--https-proxy</strong>, <strong>--ftp-proxy</strong> and <strong>--all-proxy</strong> for
  1563. details.
  1564. You can specify proxy in the environment variables. See ENVIRONMENT section.</td>
  1565. </tr></table>
  1566. </div>
  1567. <h4 id="_proxy_with_authorization">Proxy with authorization</h4>
  1568. <div class="listingblock">
  1569. <div class="content">
  1570. <pre><tt>aria2c --http-proxy=http://username:password@proxy:8080 http://host/file</tt></pre>
  1571. </div></div>
  1572. <h3 id="_metalink_download">Metalink Download</h3><div style="clear:left"></div>
  1573. <h4 id="_download_files_with_remote_metalink">Download files with remote Metalink</h4>
  1574. <div class="listingblock">
  1575. <div class="content">
  1576. <pre><tt>aria2c --follow-metalink=mem http://host/file.metalink</tt></pre>
  1577. </div></div>
  1578. <h4 id="_download_using_a_local_metalink_file">Download using a local metalink file</h4>
  1579. <div class="listingblock">
  1580. <div class="content">
  1581. <pre><tt>aria2c -p --lowest-speed-limit=4000 file.metalink</tt></pre>
  1582. </div></div>
  1583. <div class="admonitionblock">
  1584. <table><tr>
  1585. <td class="icon">
  1586. <div class="title">Note</div>
  1587. </td>
  1588. <td class="content">To pause a download, press Ctrl-C.
  1589. You can resume the transfer by running aria2c with the same argument in the same
  1590. directory.</td>
  1591. </tr></table>
  1592. </div>
  1593. <h4 id="_download_several_local_metalink_files">Download several local metalink files</h4>
  1594. <div class="listingblock">
  1595. <div class="content">
  1596. <pre><tt>aria2c -j2 file1.metalink file2.metalink</tt></pre>
  1597. </div></div>
  1598. <h4 id="_download_only_selected_files_using_index">Download only selected files using index</h4>
  1599. <div class="listingblock">
  1600. <div class="content">
  1601. <pre><tt>aria2c --select-file=1-4,8 file.metalink</tt></pre>
  1602. </div></div>
  1603. <div class="admonitionblock">
  1604. <table><tr>
  1605. <td class="icon">
  1606. <div class="title">Note</div>
  1607. </td>
  1608. <td class="content">The index is printed to the console using -S option.</td>
  1609. </tr></table>
  1610. </div>
  1611. <h4 id="_download_a_file_using_a_local_metalink_file_with_user_preference">Download a file using a local .metalink file with user preference</h4>
  1612. <div class="listingblock">
  1613. <div class="content">
  1614. <pre><tt>aria2c --metalink-location=JP,US --metalink-version=1.1 --metalink-language=en-US file.metalink</tt></pre>
  1615. </div></div>
  1616. <h3 id="_bittorrent_download">BitTorrent Download</h3><div style="clear:left"></div>
  1617. <h4 id="_download_files_from_remote_bittorrent_file">Download files from remote BitTorrent file</h4>
  1618. <div class="listingblock">
  1619. <div class="content">
  1620. <pre><tt>aria2c --follow-torrent=mem http://host/file.torrent</tt></pre>
  1621. </div></div>
  1622. <h4 id="_download_using_a_local_torrent_file">Download using a local torrent file</h4>
  1623. <div class="listingblock">
  1624. <div class="content">
  1625. <pre><tt>aria2c --max-upload-limit=40K file.torrent</tt></pre>
  1626. </div></div>
  1627. <div class="admonitionblock">
  1628. <table><tr>
  1629. <td class="icon">
  1630. <div class="title">Note</div>
  1631. </td>
  1632. <td class="content">--max-upload-limit specifies the max of upload rate.</td>
  1633. </tr></table>
  1634. </div>
  1635. <div class="admonitionblock">
  1636. <table><tr>
  1637. <td class="icon">
  1638. <div class="title">Note</div>
  1639. </td>
  1640. <td class="content">To pause a download, press Ctrl-C. You can resume the transfer by run aria2c with the same argument in the same directory.</td>
  1641. </tr></table>
  1642. </div>
  1643. <h4 id="_download_2_torrents">Download 2 torrents</h4>
  1644. <div class="listingblock">
  1645. <div class="content">
  1646. <pre><tt>aria2c -j2 file1.torrent file2.torrent</tt></pre>
  1647. </div></div>
  1648. <h4 id="_download_a_file_using_torrent_and_http_ftp_server">Download a file using torrent and HTTP/FTP server</h4>
  1649. <div class="listingblock">
  1650. <div class="content">
  1651. <pre><tt>aria2c -Ttest.torrent http://host1/file ftp://host2/file</tt></pre>
  1652. </div></div>
  1653. <div class="admonitionblock">
  1654. <table><tr>
  1655. <td class="icon">
  1656. <div class="title">Note</div>
  1657. </td>
  1658. <td class="content">Downloading multi file torrent with HTTP/FTP is not supported.</td>
  1659. </tr></table>
  1660. </div>
  1661. <h4 id="_download_only_selected_files_using_index_usually_called_selectable_download">Download only selected files using index(usually called "selectable download")</h4>
  1662. <div class="listingblock">
  1663. <div class="content">
  1664. <pre><tt>aria2c --select-file=1-4,8 file.torrent</tt></pre>
  1665. </div></div>
  1666. <div class="admonitionblock">
  1667. <table><tr>
  1668. <td class="icon">
  1669. <div class="title">Note</div>
  1670. </td>
  1671. <td class="content">The index is printed to the console using -S option.</td>
  1672. </tr></table>
  1673. </div>
  1674. <h4 id="_change_the_listening_port_for_incoming_peer">Change the listening port for incoming peer</h4>
  1675. <div class="listingblock">
  1676. <div class="content">
  1677. <pre><tt>aria2c --listen-port=7000-7001,8000 file.torrent</tt></pre>
  1678. </div></div>
  1679. <div class="admonitionblock">
  1680. <table><tr>
  1681. <td class="icon">
  1682. <div class="title">Note</div>
  1683. </td>
  1684. <td class="content">Since aria2 doesn't configure firewall or router for port forwarding, it's up
  1685. to you to do it manually.</td>
  1686. </tr></table>
  1687. </div>
  1688. <h4 id="_specify_the_condition_to_stop_program_after_torrent_download_finished">Specify the condition to stop program after torrent download finished</h4>
  1689. <div class="listingblock">
  1690. <div class="content">
  1691. <pre><tt>aria2c --seed-time=120 --seed-ratio=1.0 file.torrent</tt></pre>
  1692. </div></div>
  1693. <div class="admonitionblock">
  1694. <table><tr>
  1695. <td class="icon">
  1696. <div class="title">Note</div>
  1697. </td>
  1698. <td class="content">In the above example, the program exits when the 120 minutes has elapsed since download completed or seed ratio reaches 1.0.</td>
  1699. </tr></table>
  1700. </div>
  1701. <h4 id="_throttle_upload_speed">Throttle upload speed</h4>
  1702. <div class="listingblock">
  1703. <div class="content">
  1704. <pre><tt>aria2c --max-upload-limit=100K file.torrent</tt></pre>
  1705. </div></div>
  1706. <h4 id="_enable_dht">Enable DHT</h4>
  1707. <div class="listingblock">
  1708. <div class="content">
  1709. <pre><tt>aria2c --enable-dht --dht-listen-port=6881 file.torrent</tt></pre>
  1710. </div></div>
  1711. <div class="admonitionblock">
  1712. <table><tr>
  1713. <td class="icon">
  1714. <div class="title">Note</div>
  1715. </td>
  1716. <td class="content">DHT uses udp port. Since aria2 doesn't configure firewall or router for port
  1717. forwarding, it's up to you to do it manually.</td>
  1718. </tr></table>
  1719. </div>
  1720. <h3 id="_more_advanced_http_features">More advanced HTTP features</h3><div style="clear:left"></div>
  1721. <h4 id="_load_cookies">Load cookies</h4>
  1722. <div class="listingblock">
  1723. <div class="content">
  1724. <pre><tt>aria2c --load-cookies=cookies.txt http://host/file.zip</tt></pre>
  1725. </div></div>
  1726. <div class="admonitionblock">
  1727. <table><tr>
  1728. <td class="icon">
  1729. <div class="title">Note</div>
  1730. </td>
  1731. <td class="content">You can use Firefox/Mozilla's cookie file without modification.</td>
  1732. </tr></table>
  1733. </div>
  1734. <h4 id="_resume_download_started_by_web_browsers_or_another_programs">Resume download started by web browsers or another programs</h4>
  1735. <div class="listingblock">
  1736. <div class="content">
  1737. <pre><tt>aria2c -c -s2 http://host/partiallydownloadedfile.zip</tt></pre>
  1738. </div></div>
  1739. <h4 id="_client_certificate_authorization_for_ssl_tls">Client certificate authorization for SSL/TLS</h4>
  1740. <div class="listingblock">
  1741. <div class="content">
  1742. <pre><tt>aria2c --certificate=/path/to/mycert.pem --private-key=/path/to/mykey.pem https://host/file</tt></pre>
  1743. </div></div>
  1744. <div class="admonitionblock">
  1745. <table><tr>
  1746. <td class="icon">
  1747. <div class="title">Note</div>
  1748. </td>
  1749. <td class="content">The file specified in <strong>--private-key</strong> must be decrypted. The behavior when
  1750. encrypted one is given is undefined.</td>
  1751. </tr></table>
  1752. </div>
  1753. <h4 id="_verify_peer_in_ssl_tls_using_given_ca_certificates">Verify peer in SSL/TLS using given CA certificates</h4>
  1754. <div class="listingblock">
  1755. <div class="content">
  1756. <pre><tt>aria2c --ca-certificate=/path/to/ca-certificates.crt --check-certificate https://host/file</tt></pre>
  1757. </div></div>
  1758. <h3 id="_and_more_advanced_features">And more advanced features</h3><div style="clear:left"></div>
  1759. <h4 id="_throttle_download_speed">Throttle download speed</h4>
  1760. <div class="listingblock">
  1761. <div class="content">
  1762. <pre><tt>aria2c --max-download-limit=100K file.metalink</tt></pre>
  1763. </div></div>
  1764. <h4 id="_repair_a_damaged_download_using_v_option">Repair a damaged download using -V option</h4>
  1765. <div class="listingblock">
  1766. <div class="content">
  1767. <pre><tt>aria2c -V file.metalink</tt></pre>
  1768. </div></div>
  1769. <div class="admonitionblock">
  1770. <table><tr>
  1771. <td class="icon">
  1772. <div class="title">Note</div>
  1773. </td>
  1774. <td class="content">This option is only available used with BitTorrent or metalink with chunk
  1775. checksums.</td>
  1776. </tr></table>
  1777. </div>
  1778. <h4 id="_drop_connection_if_download_speed_is_lower_than_specified_value">Drop connection if download speed is lower than specified value</h4>
  1779. <div class="listingblock">
  1780. <div class="content">
  1781. <pre><tt>aria2c --lowest-speed-limit=10K file.metalink</tt></pre>
  1782. </div></div>
  1783. <h4 id="_parameterized_uri_support">Parameterized URI support</h4>
  1784. <div class="para"><p>You can specify set of parts:</p></div>
  1785. <div class="listingblock">
  1786. <div class="content">
  1787. <pre><tt>aria2c -P http://{host1,host2,host3}/file.iso</tt></pre>
  1788. </div></div>
  1789. <div class="para"><p>You can specify numeric sequence:</p></div>
  1790. <div class="listingblock">
  1791. <div class="content">
  1792. <pre><tt>aria2c -Z -P http://host/image[000-100].png</tt></pre>
  1793. </div></div>
  1794. <div class="admonitionblock">
  1795. <table><tr>
  1796. <td class="icon">
  1797. <div class="title">Note</div>
  1798. </td>
  1799. <td class="content">-Z option is required if the all URIs don't point to the same file, such as the above example.</td>
  1800. </tr></table>
  1801. </div>
  1802. <div class="para"><p>You can specify step counter:</p></div>
  1803. <div class="listingblock">
  1804. <div class="content">
  1805. <pre><tt>aria2c -Z -P http://host/image[A-Z:2].png</tt></pre>
  1806. </div></div>
  1807. <h4 id="_parallel_downloads_of_arbitrary_number_of_url_metalink_torrent">Parallel downloads of arbitrary number of URL,metalink,torrent</h4>
  1808. <div class="listingblock">
  1809. <div class="content">
  1810. <pre><tt>aria2c -j3 -Z http://host/file1 file2.torrent file3.metalink</tt></pre>
  1811. </div></div>
  1812. <h4 id="_bittorrent_encryption">BitTorrent Encryption</h4>
  1813. <div class="para"><p>Encrypt whole payload using ARC4:</p></div>
  1814. <div class="listingblock">
  1815. <div class="content">
  1816. <pre><tt>aria2c --bt-min-crypto-level=arc4 --bt-require-crypto=true file.torrent</tt></pre>
  1817. </div></div>
  1818. </div>
  1819. <h2 id="_resume_download">RESUME DOWNLOAD</h2>
  1820. <div class="sectionbody">
  1821. <div class="para"><p>Usually, you can resume transfer by just issuing same command(aria2c URL)
  1822. if the previous transfer is made by aria2.</p></div>
  1823. <div class="para"><p>If the previous transfer is made by a browser or wget like sequential
  1824. download manager, then use -c option to continue the transfer(aria2c -c URL).</p></div>
  1825. </div>
  1826. <h2 id="_control_file">CONTROL FILE</h2>
  1827. <div class="sectionbody">
  1828. <div class="para"><p>aria2 uses a control file to track the progress of a download.
  1829. A control file is placed in the same directory as the downloading file and
  1830. its filename is the filename of downloading file with ".aria2" appended.
  1831. For example, if you are downloading file.zip, then the control file should be
  1832. file.zip.aria2.
  1833. (There is a exception for this naming convention.
  1834. If you are downloading a multi torrent, its control file is the "top directory"
  1835. name of the torrent with ".aria2" appended.
  1836. The "top directory" name is a value of "name" key in "info" directory in a torrent file.)</p></div>
  1837. <div class="para"><p>Usually a control file is deleted once download completed.
  1838. If aria2 decides that download cannot be resumed(for example, when downloading
  1839. a file from a HTTP server which doesn't support resume), a control file is
  1840. not created.</p></div>
  1841. <div class="para"><p>Normally if you lose a control file, you cannot resume download.
  1842. But if you have a torrent or metalink with chunk checksums for the file,
  1843. you can resume the download without a control file by giving
  1844. -V option to aria2c in command-line.</p></div>
  1845. </div>
  1846. <h2 id="_seeding_downloaded_file_in_bittorrent">SEEDING DOWNLOADED FILE IN BITTORRENT</h2>
  1847. <div class="sectionbody">
  1848. <div class="para"><p>You can seed downloaded file using -V option.</p></div>
  1849. <div class="listingblock">
  1850. <div class="content">
  1851. <pre><tt>aria2c -V file.torrent</tt></pre>
  1852. </div></div>
  1853. </div>
  1854. <h2 id="_input_file">INPUT FILE</h2>
  1855. <div class="sectionbody">
  1856. <div class="para"><p>The input file can contain a list of URIs for aria2 to download.
  1857. You can specify multiple URIs for a single entity:
  1858. separate URIs on a single line using the TAB character.</p></div>
  1859. <div class="para"><p>Each line is treated as if it is provided in command-line argument.
  1860. Therefore they are affected by <strong>-Z</strong> and <strong>-P</strong> options.
  1861. The additional <strong>out</strong> and <strong>dir</strong> options can be specified after each line of
  1862. URIs. This optional line must start with white space(s).</p></div>
  1863. <div class="para"><p>For example, the content of uri.txt is</p></div>
  1864. <div class="listingblock">
  1865. <div class="content">
  1866. <pre><tt>http://server/file.iso http://mirror/file.iso
  1867. dir=/iso_images
  1868. out=file.img
  1869. http://foo/bar</tt></pre>
  1870. </div></div>
  1871. <div class="para"><p>If aria2 is executed with <strong>-i</strong> uri.txt <strong>-d</strong> /tmp options,
  1872. then <em>file.iso</em> is saved as <em>/iso_images/file.img</em> and it is downloaded from
  1873. http://server/file.iso and http://mirror/file.iso.
  1874. The file <em>bar</em> is downloaded from http://foo/bar and saved as <em>/tmp/bar</em>.</p></div>
  1875. <div class="para"><p>In some cases, <strong>out</strong> parameter has no effect.
  1876. See note of <strong>--out</strong> option for the restrictions.</p></div>
  1877. </div>
  1878. <h2 id="_server_performance_profile">SERVER PERFORMANCE PROFILE</h2>
  1879. <div class="sectionbody">
  1880. <div class="para"><p>This section describes the format of server performance profile.
  1881. The file is plain text and each line has several NAME=VALUE pair, delimited by
  1882. comma.
  1883. Currently following NAMEs are recognized:</p></div>
  1884. <div class="vlist"><dl>
  1885. <dt>
  1886. host
  1887. </dt>
  1888. <dd>
  1889. <p>
  1890. Hostname of the server. Required.
  1891. </p>
  1892. </dd>
  1893. <dt>
  1894. protocol
  1895. </dt>
  1896. <dd>
  1897. <p>
  1898. Protocol for this profile, such as ftp, http. Required.
  1899. </p>
  1900. </dd>
  1901. <dt>
  1902. dl_speed
  1903. </dt>
  1904. <dd>
  1905. <p>
  1906. The average download speed observed in the previous download in bytes per sec.
  1907. Required.
  1908. </p>
  1909. </dd>
  1910. <dt>
  1911. last_updated
  1912. </dt>
  1913. <dd>
  1914. <p>
  1915. Last contact time in GMT with this server, specified in the seconds from the
  1916. Epoch. Required.
  1917. </p>
  1918. </dd>
  1919. <dt>
  1920. status
  1921. </dt>
  1922. <dd>
  1923. <p>
  1924. ERROR is set when server cannot be reached or out-of-service or timeout
  1925. occurred. Otherwise, OK is set.
  1926. </p>
  1927. </dd>
  1928. </dl></div>
  1929. <div class="para"><p>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.</p></div>
  1930. <div class="para"><p>An example follows:</p></div>
  1931. <div class="listingblock">
  1932. <div class="content">
  1933. <pre><tt>host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  1934. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR</tt></pre>
  1935. </div></div>
  1936. </div>
  1937. <h2 id="_files">FILES</h2>
  1938. <div class="sectionbody">
  1939. <h3 id="_aria2_conf">aria2.conf</h3><div style="clear:left"></div>
  1940. <div class="para"><p>User configuration file.
  1941. It must be placed under $HOME/.aria2 and must be named aria2.conf.
  1942. In each line, there is 1 parameter whose syntax is name=value pair,
  1943. where name is the long command-line option name without <em>--</em> prefix.
  1944. The lines beginning <em>#</em> are treated as comments.</p></div>
  1945. <div class="listingblock">
  1946. <div class="content">
  1947. <pre><tt># sample configuration file for aria2c
  1948. listen-port=60000
  1949. dht-listen-port=60000
  1950. seed-ratio=1.0
  1951. max-upload-limit=50K
  1952. ftp-pasv=true</tt></pre>
  1953. </div></div>
  1954. <h3 id="_dht_dat">dht.dat</h3><div style="clear:left"></div>
  1955. <div class="para"><p>By default, the routing table of DHT is saved to the path $HOME/.aria2/dht.dat.</p></div>
  1956. </div>
  1957. <h2 id="_environment">ENVIRONMENT</h2>
  1958. <div class="sectionbody">
  1959. <div class="para"><p>aria2 recognizes the following environment variables.</p></div>
  1960. <div class="vlist"><dl>
  1961. <dt>
  1962. http_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1963. </dt>
  1964. <dd>
  1965. <p>
  1966. Specify proxy server for use in HTTP.
  1967. Overrides http-proxy value in configuration file.
  1968. The command-line option <strong>--http-proxy</strong> overrides this value.
  1969. </p>
  1970. </dd>
  1971. <dt>
  1972. https_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1973. </dt>
  1974. <dd>
  1975. <p>
  1976. Specify proxy server for use in HTTPS.
  1977. Overrides https-proxy value in configuration file.
  1978. The command-line option <strong>--https-proxy</strong> overrides this value.
  1979. </p>
  1980. </dd>
  1981. <dt>
  1982. ftp_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1983. </dt>
  1984. <dd>
  1985. <p>
  1986. Specify proxy server for use in FTP.
  1987. Overrides ftp-proxy value in configuration file.
  1988. The command-line option <strong>--ftp-proxy</strong> overrides this value.
  1989. </p>
  1990. </dd>
  1991. <dt>
  1992. all_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1993. </dt>
  1994. <dd>
  1995. <p>
  1996. Specify proxy server for use if no protocol-specific proxy is specified.
  1997. Overrides all-proxy value in configuration file.
  1998. The command-line option <strong>--all-proxy</strong> overrides this value.
  1999. </p>
  2000. </dd>
  2001. <dt>
  2002. no_proxy [DOMAIN,&#8230;]
  2003. </dt>
  2004. <dd>
  2005. <p>
  2006. Specify comma-separated hostname or domains to which proxy should not be used.
  2007. Overrides no-proxy value in configuration file.
  2008. The command-line option <strong>--no-proxy</strong> overrides this value.
  2009. </p>
  2010. </dd>
  2011. </dl></div>
  2012. </div>
  2013. <h2 id="_exit_codes">EXIT CODES</h2>
  2014. <div class="sectionbody">
  2015. <div class="para"><p>Because aria2 can handle multiple downloads at once, it encounters
  2016. lots of errors in a session. aria2 returns the following exit codes
  2017. based on the last error encountered.</p></div>
  2018. <div class="vlist"><dl>
  2019. <dt>
  2020. 0
  2021. </dt>
  2022. <dd>
  2023. <p>
  2024. If all downloads are successful.
  2025. </p>
  2026. </dd>
  2027. <dt>
  2028. 1
  2029. </dt>
  2030. <dd>
  2031. <p>
  2032. If an unknown error occurs.
  2033. </p>
  2034. </dd>
  2035. <dt>
  2036. 2
  2037. </dt>
  2038. <dd>
  2039. <p>
  2040. If time out occurs.
  2041. </p>
  2042. </dd>
  2043. <dt>
  2044. 3
  2045. </dt>
  2046. <dd>
  2047. <p>
  2048. If a resource is not found.
  2049. </p>
  2050. </dd>
  2051. <dt>
  2052. 4
  2053. </dt>
  2054. <dd>
  2055. <p>
  2056. If aria2 sees the specfied number of "resource not found" error.
  2057. See <strong>--max-file-not-found</strong> option).
  2058. </p>
  2059. </dd>
  2060. <dt>
  2061. 5
  2062. </dt>
  2063. <dd>
  2064. <p>
  2065. If a download aborts because download speed is too slow.
  2066. See <strong>--lowest-speed-limit</strong> option)
  2067. </p>
  2068. </dd>
  2069. <dt>
  2070. 6
  2071. </dt>
  2072. <dd>
  2073. <p>
  2074. If network problem occurs.
  2075. </p>
  2076. </dd>
  2077. <dt>
  2078. 7
  2079. </dt>
  2080. <dd>
  2081. <p>
  2082. If there are unfinished downloads. This error is only reported if
  2083. all finished downloads are successful and there are unfinished
  2084. downloads in a queue when aria2 exits by pressing Ctrl-C by an user
  2085. or sending TERM or INT signal.
  2086. </p>
  2087. </dd>
  2088. </dl></div>
  2089. <div class="admonitionblock">
  2090. <table><tr>
  2091. <td class="icon">
  2092. <div class="title">Note</div>
  2093. </td>
  2094. <td class="content">An error occurred in a finished download will not be reported
  2095. as exit status.</td>
  2096. </tr></table>
  2097. </div>
  2098. </div>
  2099. <h2 id="_resources">RESOURCES</h2>
  2100. <div class="sectionbody">
  2101. <div class="para"><p>Project web site: <a href="http://aria2.sourceforge.net/">http://aria2.sourceforge.net/</a></p></div>
  2102. <div class="para"><p>metalink: <a href="http://www.metalinker.org/">http://www.metalinker.org/</a></p></div>
  2103. </div>
  2104. <h2 id="_reporting_bugs">REPORTING BUGS</h2>
  2105. <div class="sectionbody">
  2106. <div class="para"><p>Report bugs to Tatsuhiro Tsujikawa &lt;t-tujikawa at users.sourceforge.net&gt;</p></div>
  2107. </div>
  2108. <h2 id="_author">AUTHOR</h2>
  2109. <div class="sectionbody">
  2110. <div class="para"><p>Tatsuhiro Tsujikawa &lt;t-tujikawa at users.sourceforge.net&gt;</p></div>
  2111. </div>
  2112. <h2 id="_copyright">COPYRIGHT</h2>
  2113. <div class="sectionbody">
  2114. <div class="para"><p>Copyright &#169; 2006, 2008 Tatsuhiro Tsujikawa</p></div>
  2115. <div class="para"><p>This program is free software; you can redistribute it and/or modify
  2116. it under the terms of the GNU General Public License as published by
  2117. the Free Software Foundation; either version 2 of the License, or
  2118. (at your option) any later version.</p></div>
  2119. <div class="para"><p>This program is distributed in the hope that it will be useful,
  2120. but WITHOUT ANY WARRANTY; without even the implied warranty of
  2121. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  2122. GNU General Public License for more details.</p></div>
  2123. <div class="para"><p>You should have received a copy of the GNU General Public License
  2124. along with this program; if not, write to the Free Software
  2125. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</p></div>
  2126. <div class="para"><p>In addition, as a special exception, the copyright holders give
  2127. permission to link the code of portions of this program with the
  2128. OpenSSL library under certain conditions as described in each
  2129. individual source file, and distribute linked combinations
  2130. including the two.
  2131. You must obey the GNU General Public License in all respects
  2132. for all of the code used other than OpenSSL. If you modify
  2133. file(s) with this exception, you may extend this exception to your
  2134. version of the file(s), but you are not obligated to do so. If you
  2135. do not wish to do so, delete this exception statement from your
  2136. version. If you delete this exception statement from all source
  2137. files in the program, then also delete it here.</p></div>
  2138. </div>
  2139. <div id="footer">
  2140. <div id="footer-text">
  2141. Last updated 2009-01-19 23:13:30 JST
  2142. </div>
  2143. </div>
  2144. </body>
  2145. </html>