aria2c.1.html 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265
  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. <em>METHOD</em> is either <em>get</em> or
  519. <em>tunnel</em>. HTTPS downloads always use <em>tunnel</em> regardless of this
  520. option.
  521. Default: <em>get</em>
  522. </p>
  523. </dd>
  524. <dt>
  525. <strong>-R</strong>, <strong>--remote-time</strong>[=<em>true</em>|<em>false</em>]
  526. </dt>
  527. <dd>
  528. <p>
  529. Retrieve timestamp of the remote file from the remote HTTP/FTP
  530. server and if it is available, apply it to the local file.
  531. Default: <em>false</em>
  532. </p>
  533. </dd>
  534. <dt>
  535. <strong>--retry-wait</strong>=SEC
  536. </dt>
  537. <dd>
  538. <p>
  539. Set the seconds to wait to retry after an error has occured.
  540. Specify a value between <em>0</em> and <em>60</em>.
  541. Default: <em>5</em>
  542. </p>
  543. </dd>
  544. <dt>
  545. <strong>--server-stat-of</strong>=FILE
  546. </dt>
  547. <dd>
  548. <p>
  549. Specify the filename to which performance profile of the servers is
  550. saved. You can load saved data using <strong>--server-stat-if</strong> option. See
  551. SERVER PERFORMANCE PROFILE section below for file format.
  552. </p>
  553. </dd>
  554. <dt>
  555. <strong>--server-stat-if</strong>=FILE
  556. </dt>
  557. <dd>
  558. <p>
  559. Specify the filename to load performance profile of the servers. The
  560. loaded data will be used in some URI selector such as <em>feedback</em>.
  561. See also <strong>--uri-selector</strong> option. See SERVER PERFORMANCE PROFILE
  562. section below for file format.
  563. </p>
  564. </dd>
  565. <dt>
  566. <strong>--server-stat-timeout</strong>=SEC
  567. </dt>
  568. <dd>
  569. <p>
  570. Specifies timeout in seconds to invalidate performance profile of
  571. the servers since the last contact to them.
  572. Default: <em>86400</em> (24hours)
  573. </p>
  574. </dd>
  575. <dt>
  576. <strong>-s</strong>, <strong>--split</strong>=N
  577. </dt>
  578. <dd>
  579. <p>
  580. Download a file using N connections.
  581. If more than N URLs are given, first N URLs are used and remaining URLs are
  582. used for backup.
  583. If less than N URLs are given, those URLs are used more than once so that N
  584. connections total are made simultaneously.
  585. Please see <strong>-j</strong> option too.
  586. Please note that in Metalink download, this option has no effect and use
  587. <strong>-C</strong> option instead.
  588. Default: <em>5</em>
  589. </p>
  590. </dd>
  591. <dt>
  592. <strong>-t</strong>, <strong>--timeout</strong>=SEC
  593. </dt>
  594. <dd>
  595. <p>
  596. Set timeout in seconds.
  597. Default: <em>60</em>
  598. </p>
  599. </dd>
  600. <dt>
  601. <strong>--uri-selector</strong>=SELECTOR
  602. </dt>
  603. <dd>
  604. <p>
  605. Specify URI selection algorithm. The possible values are <em>inorder</em>,
  606. <em>feedback</em> and <em>adaptive</em>. If <em>inorder</em> is given, URI is tried in
  607. the order appeared in the URI list. If <em>feedback</em> is given, aria2
  608. uses download speed observed in the previous downloads and choose
  609. fastest server in the URI list. This also effectively skips dead
  610. mirrors. The observed download speed is a part of performance
  611. profile of servers mentioned in <strong>--server-stat-of</strong> and
  612. <strong>--server-stat-if</strong> options. If <em>adaptive</em> is given, selects one of
  613. the best mirrors for the first and reserved connections. For
  614. supplementary ones, it returns mirrors which has not been tested
  615. yet, and if each of them has already been tested, returns mirrors
  616. which has to be tested again. Otherwise, it doesn't select anymore
  617. mirrors. Like <em>feedback</em>, it uses a performance profile of servers.
  618. Default: <em>inorder</em>
  619. </p>
  620. </dd>
  621. </dl></div>
  622. <h3 id="_http_specific_options">HTTP Specific Options</h3><div style="clear:left"></div>
  623. <div class="vlist"><dl>
  624. <dt>
  625. <strong>--ca-certificate</strong>=FILE
  626. </dt>
  627. <dd>
  628. <p>
  629. Use the certificate authorities in FILE to verify the peers.
  630. The certificate file must be in PEM format and can contain multiple CA
  631. certificates.
  632. Use <strong>--check-certificate</strong> option to enable verification.
  633. </p>
  634. </dd>
  635. <dt>
  636. <strong>--certificate</strong>=FILE
  637. </dt>
  638. <dd>
  639. <p>
  640. Use the client certificate in FILE.
  641. The certificate must be in PEM format.
  642. You may use <strong>--private-key</strong> option to specify the private key.
  643. </p>
  644. </dd>
  645. <dt>
  646. <strong>--check-certificate</strong>[=<em>true</em>|<em>false</em>]
  647. </dt>
  648. <dd>
  649. <p>
  650. Verify the peer using certificates specified in <strong>--ca-certificate</strong> option.
  651. Default: <em>true</em>
  652. </p>
  653. </dd>
  654. <dt>
  655. <strong>--http-auth-scheme</strong>=SCHEME
  656. </dt>
  657. <dd>
  658. <p>
  659. Set HTTP authentication scheme.
  660. Currently, <em>basic</em> is the only supported scheme.
  661. Default: <em>basic</em>
  662. </p>
  663. </dd>
  664. <dt>
  665. <strong>--http-user</strong>=USER
  666. </dt>
  667. <dd>
  668. <p>
  669. Set HTTP user. This affects all URLs.
  670. </p>
  671. </dd>
  672. <dt>
  673. <strong>--http-passwd</strong>=PASSWD
  674. </dt>
  675. <dd>
  676. <p>
  677. Set HTTP password. This affects all URLs.
  678. </p>
  679. </dd>
  680. <dt>
  681. <strong>--http-proxy</strong>=PROXY
  682. </dt>
  683. <dd>
  684. <p>
  685. Use this proxy server for HTTP. See also <strong>--all-proxy</strong> option.
  686. This affects all URLs.
  687. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  688. </p>
  689. </dd>
  690. <dt>
  691. <strong>--https-proxy</strong>=PROXY
  692. </dt>
  693. <dd>
  694. <p>
  695. Use this proxy server for HTTPS. See also <strong>--all-proxy</strong> option.
  696. This affects all URLs.
  697. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  698. </p>
  699. </dd>
  700. <dt>
  701. <strong>--private-key</strong>=FILE
  702. </dt>
  703. <dd>
  704. <p>
  705. Use the private key in FILE.
  706. The private key must be decrypted and in PEM format.
  707. The behavior when encrypted one is given is undefined.
  708. See also <strong>--certificate</strong> option.
  709. </p>
  710. </dd>
  711. <dt>
  712. <strong>--referer</strong>=REFERER
  713. </dt>
  714. <dd>
  715. <p>
  716. Set Referer. This affects all URLs.
  717. </p>
  718. </dd>
  719. <dt>
  720. <strong>--enable-http-keep-alive</strong>[=<em>true</em>|<em>false</em>]
  721. </dt>
  722. <dd>
  723. <p>
  724. Enable HTTP/1.1 persistent connection.
  725. Default: <em>true</em>
  726. </p>
  727. </dd>
  728. <dt>
  729. <strong>--enable-http-pipelining</strong>[=<em>true</em>|<em>false</em>]
  730. </dt>
  731. <dd>
  732. <p>
  733. Enable HTTP/1.1 pipelining.
  734. Default: <em>false</em>
  735. </p>
  736. </dd>
  737. <dt>
  738. <strong>--header</strong>=HEADER
  739. </dt>
  740. <dd>
  741. <p>
  742. Append HEADER to HTTP request header.
  743. You can use this option repeatedly to specify more than one header:
  744. aria2c <strong>--header</strong>="X-A: b78" <strong>--header</strong>="X-B: 9J1" http://host/file
  745. </p>
  746. </dd>
  747. <dt>
  748. <strong>--load-cookies</strong>=FILE
  749. </dt>
  750. <dd>
  751. <p>
  752. Load Cookies from FILE using the Firefox3 format (SQLite3) and the
  753. Mozilla/Firefox(1.x/2.x)/Netscape format.
  754. </p>
  755. </dd>
  756. </dl></div>
  757. <div class="admonitionblock">
  758. <table><tr>
  759. <td class="icon">
  760. <div class="title">Note</div>
  761. </td>
  762. <td class="content">If aria2 is built without libsqlite3, then it doesn't support Firefox3 cookie format.</td>
  763. </tr></table>
  764. </div>
  765. <div class="vlist"><dl>
  766. <dt>
  767. <strong>--use-head</strong>[=<em>true</em>|<em>false</em>]
  768. </dt>
  769. <dd>
  770. <p>
  771. Use HEAD method for the first request to the HTTP server.
  772. Default: <em>true</em>
  773. </p>
  774. </dd>
  775. <dt>
  776. <strong>-U</strong>, <strong>--user-agent</strong>=USER_AGENT
  777. </dt>
  778. <dd>
  779. <p>
  780. Set user agent for HTTP(S) downloads.
  781. </p>
  782. </dd>
  783. </dl></div>
  784. <h3 id="_ftp_specific_options">FTP Specific Options</h3><div style="clear:left"></div>
  785. <div class="vlist"><dl>
  786. <dt>
  787. <strong>--ftp-user</strong>=USER
  788. </dt>
  789. <dd>
  790. <p>
  791. Set FTP user. This affects all URLs.
  792. Default: <em>anonymous</em>
  793. </p>
  794. </dd>
  795. <dt>
  796. <strong>--ftp-passwd</strong>=PASSWD
  797. </dt>
  798. <dd>
  799. <p>
  800. Set FTP password. This affects all URLs.
  801. Default: <em>ARIA2USER@</em>
  802. </p>
  803. </dd>
  804. <dt>
  805. <strong>-p</strong>, <strong>--ftp-pasv</strong>[=<em>true</em>|<em>false</em>]
  806. </dt>
  807. <dd>
  808. <p>
  809. Use the passive mode in FTP.
  810. If <em>false</em> is given, the active mode will be used.
  811. Default: <em>true</em>
  812. </p>
  813. </dd>
  814. <dt>
  815. <strong>--ftp-proxy</strong>=PROXY
  816. </dt>
  817. <dd>
  818. <p>
  819. Use this proxy server for FTP. See also <strong>--all-proxy</strong> option.
  820. This affects all URLs.
  821. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  822. </p>
  823. </dd>
  824. <dt>
  825. <strong>--ftp-type</strong>=TYPE
  826. </dt>
  827. <dd>
  828. <p>
  829. Set FTP transfer type. TYPE is either <em>binary</em> or <em>ascii</em>.
  830. Default: <em>binary</em>
  831. </p>
  832. </dd>
  833. <dt>
  834. <strong>--ftp-reuse-connection</strong>[=<em>true</em>|<em>false</em>]
  835. </dt>
  836. <dd>
  837. <p>
  838. Reuse connection in FTP.
  839. Default: <em>true</em>
  840. </p>
  841. </dd>
  842. <dt>
  843. <strong>-n</strong>, <strong>--no-netrc</strong>
  844. </dt>
  845. <dd>
  846. <p>
  847. Disables netrc support. netrc support is enabled by default.
  848. </p>
  849. </dd>
  850. </dl></div>
  851. <h3 id="_bittorrent_metalink_options">BitTorrent/Metalink Options</h3><div style="clear:left"></div>
  852. <div class="vlist"><dl>
  853. <dt>
  854. <strong>--select-file</strong>=INDEX&#8230;
  855. </dt>
  856. <dd>
  857. <p>
  858. Set file to download by specifying its index.
  859. You can find the file index using the <strong>--show-files</strong> option.
  860. Multiple indexes can be specified by using ",", for example: <em>3,6</em>.
  861. You can also use "-" to specify a range: <em>1-5</em>.
  862. "," and "-" can be used together: <em>1-5,8,9</em>.
  863. When used with the -M option, index may vary depending on the query
  864. (see <strong>--metalink-</strong>* options).
  865. </p>
  866. </dd>
  867. </dl></div>
  868. <div class="admonitionblock">
  869. <table><tr>
  870. <td class="icon">
  871. <div class="title">Note</div>
  872. </td>
  873. <td class="content">In multi file torrent, the adjacent files specified by this option may
  874. also be downloaded. This is by design, not a bug.
  875. A single piece may include several files or part of files, and aria2
  876. writes the piece to the appropriate files.</td>
  877. </tr></table>
  878. </div>
  879. <div class="vlist"><dl>
  880. <dt>
  881. <strong>-S</strong>, <strong>--show-files</strong>
  882. </dt>
  883. <dd>
  884. <p>
  885. Print file listing of .torrent or .metalink file and exit.
  886. In case of .torrent file, additional information
  887. (infohash, piece length, etc) is also printed.
  888. </p>
  889. </dd>
  890. </dl></div>
  891. <h3 id="_bittorrent_specific_options">BitTorrent Specific Options</h3><div style="clear:left"></div>
  892. <div class="vlist"><dl>
  893. <dt>
  894. <strong>--bt-external-ip</strong>=IPADDRESS
  895. </dt>
  896. <dd>
  897. <p>
  898. Specify the external IP address to report to a BitTorrent
  899. tracker. Although this function is named "external", it can accept
  900. any kind of IP addresses. IPADDRESS must be a numeric IP address.
  901. </p>
  902. </dd>
  903. <dt>
  904. <strong>--bt-hash-check-seed</strong>[=<em>true</em>|<em>false</em>]
  905. </dt>
  906. <dd>
  907. <p>
  908. If <em>true</em> is given, after hash check using <strong>--check-integrity</strong> option and
  909. file is complete, continue to seed file. If you want to check file
  910. and download it only when it is damaged or incomplete, set this
  911. option to <em>false</em>. This option has effect only on BitTorrent download.
  912. Default: <em>true</em>
  913. </p>
  914. </dd>
  915. <dt>
  916. <strong>--bt-max-open-files</strong>=NUM
  917. </dt>
  918. <dd>
  919. <p>
  920. Specify maximum number of files to open in each BitTorrent download.
  921. Default: <em>100</em>
  922. </p>
  923. </dd>
  924. <dt>
  925. <strong>--bt-max-peers</strong>=NUM
  926. </dt>
  927. <dd>
  928. <p>
  929. Specify the maximum number of peers per torrent. <em>0</em> means
  930. unlimited. See also <strong>--bt-request-peer-speed-limit</strong> option.
  931. Default: <em>55</em>
  932. </p>
  933. </dd>
  934. <dt>
  935. <strong>--bt-min-crypto-level</strong>=<em>plain</em>|<em>arc4</em>
  936. </dt>
  937. <dd>
  938. <p>
  939. Set minimum level of encryption method.
  940. If several encryption methods are provided by a peer, aria2 chooses the lowest
  941. one which satisfies the given level.
  942. Default: <em>plain</em>
  943. </p>
  944. </dd>
  945. <dt>
  946. <strong>--bt-require-crypto</strong>=<em>true</em>|<em>false</em>
  947. </dt>
  948. <dd>
  949. <p>
  950. If true is given, aria2 doesn't accept and establish connection with legacy
  951. BitTorrent handshake(\19BitTorrent protocol).
  952. Thus aria2 always uses Obfuscation handshake.
  953. Default: <em>false</em>
  954. </p>
  955. </dd>
  956. <dt>
  957. <strong>--bt-request-peer-speed-limit</strong>=SPEED
  958. </dt>
  959. <dd>
  960. <p>
  961. If the whole download speed of every torrent is lower than SPEED,
  962. aria2 temporarily increases the number of peers to try for more
  963. download speed. Configuring this option with your preferred download
  964. speed can increase your download speed in some cases.
  965. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  966. Default: <em>50K</em>
  967. </p>
  968. </dd>
  969. <dt>
  970. <strong>--bt-seed-unverified</strong>[=<em>true</em>|<em>false</em>]
  971. </dt>
  972. <dd>
  973. <p>
  974. Seed previously downloaded files without verifying piece hashes.
  975. Default: <em>false</em>
  976. </p>
  977. </dd>
  978. <dt>
  979. <strong>--dht-entry-point</strong>=HOST:PORT
  980. </dt>
  981. <dd>
  982. <p>
  983. Set host and port as an entry point to DHT network.
  984. </p>
  985. </dd>
  986. <dt>
  987. <strong>--dht-file-path</strong>=PATH
  988. </dt>
  989. <dd>
  990. <p>
  991. Change the DHT routing table file to PATH.
  992. Default: <em>$HOME/.aria2/dht.dat</em>
  993. </p>
  994. </dd>
  995. <dt>
  996. <strong>--dht-listen-port</strong>=PORT&#8230;
  997. </dt>
  998. <dd>
  999. <p>
  1000. Set UDP listening port for DHT.
  1001. Multiple ports can be specified by using ",", for example: <em>6881,6885</em>.
  1002. You can also use "-" to specify a range: <em>6881-6999</em>. "," and "-" can be used
  1003. together.
  1004. Default: <em>6881-6999</em>
  1005. </p>
  1006. </dd>
  1007. </dl></div>
  1008. <div class="admonitionblock">
  1009. <table><tr>
  1010. <td class="icon">
  1011. <div class="title">Note</div>
  1012. </td>
  1013. <td class="content">Make sure that the specified ports are open for incoming UDP traffic.</td>
  1014. </tr></table>
  1015. </div>
  1016. <div class="vlist"><dl>
  1017. <dt>
  1018. <strong>--direct-file-mapping</strong>=<em>true</em>|<em>false</em>
  1019. </dt>
  1020. <dd>
  1021. <p>
  1022. Directly read from and write to each file mentioned in .torrent file.
  1023. Use this option if lots of files are listed in .torrent file and aria2
  1024. complains it cannot open files anymore.
  1025. Default: <em>true</em>
  1026. </p>
  1027. </dd>
  1028. <dt>
  1029. <strong>--enable-dht</strong>[=<em>true</em>|<em>false</em>]
  1030. </dt>
  1031. <dd>
  1032. <p>
  1033. Enable DHT functionality. If a private flag is set in a torrent, aria2
  1034. doesn't use DHT for that download even if <em>true</em> is given.
  1035. Default: <em>false</em>
  1036. </p>
  1037. </dd>
  1038. <dt>
  1039. <strong>--enable-peer-exchange</strong>[=<em>true</em>|<em>false</em>]
  1040. </dt>
  1041. <dd>
  1042. <p>
  1043. Enable Peer Exchange extension. If a private flag is set in a torrent, this
  1044. feature is disabled for that download even if <em>true</em> is given.
  1045. Default: <em>true</em>
  1046. </p>
  1047. </dd>
  1048. <dt>
  1049. <strong>--follow-torrent</strong>=<em>true</em>|<em>false</em>|<em>mem</em>
  1050. </dt>
  1051. <dd>
  1052. <p>
  1053. If <em>true</em> or <em>mem</em> is specified, when a file whose suffix is ".torrent" or content
  1054. type is "application/x-bittorrent" is downloaded, aria2 parses it as a torrent
  1055. file and downloads files mentioned in it.
  1056. If <em>mem</em> is specified, a torrent file is not written to the disk, but is just
  1057. kept in memory.
  1058. If <em>false</em> is specified, the action mentioned above is not taken.
  1059. Default: <em>true</em>
  1060. </p>
  1061. </dd>
  1062. <dt>
  1063. <strong>--listen-port</strong>=PORT&#8230;
  1064. </dt>
  1065. <dd>
  1066. <p>
  1067. Set TCP port number for BitTorrent downloads.
  1068. Multiple ports can be specified by using ",", for example: <em>6881,6885</em>.
  1069. You can also use "-" to specify a range: <em>6881-6999</em>.
  1070. "," and "-" can be used together: <em>6881-6889,6999</em>.
  1071. Default: <em>6881-6999</em>
  1072. </p>
  1073. </dd>
  1074. </dl></div>
  1075. <div class="admonitionblock">
  1076. <table><tr>
  1077. <td class="icon">
  1078. <div class="title">Note</div>
  1079. </td>
  1080. <td class="content">Make sure that the specified ports are open for incoming TCP traffic.</td>
  1081. </tr></table>
  1082. </div>
  1083. <div class="vlist"><dl>
  1084. <dt>
  1085. <strong>--max-overall-upload-limit</strong>=SPEED
  1086. </dt>
  1087. <dd>
  1088. <p>
  1089. Set max overall upload speed in bytes/sec.
  1090. <em>0</em> means unrestricted.
  1091. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1092. To limit the upload speed per torrent, use <strong>--max-upload-limit</strong> option.
  1093. If non-zero value is specified, <strong>--max-upload-limit</strong> option is ignored.
  1094. Default: <em>0</em>
  1095. </p>
  1096. </dd>
  1097. <dt>
  1098. <strong>-u</strong>, <strong>--max-upload-limit</strong>=SPEED
  1099. </dt>
  1100. <dd>
  1101. <p>
  1102. Set max upload speed per each torrent in bytes/sec.
  1103. <em>0</em> means unrestricted.
  1104. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1105. To limit the overall upload speed, use <strong>--max-overall-upload-limit</strong> option.
  1106. Default: <em>0</em>
  1107. </p>
  1108. </dd>
  1109. <dt>
  1110. <strong>--peer-id-prefix</strong>=PEERI_ID_PREFIX
  1111. </dt>
  1112. <dd>
  1113. <p>
  1114. Specify the prefix of peer ID. The peer ID in BitTorrent is 20 byte length.
  1115. If more than 20 bytes are specified, only first 20 bytes are used.
  1116. If less than 20 bytes are specified, the random alphabet characters are
  1117. added to make it's length 20 bytes.
  1118. Default: <em>-aria2-</em>
  1119. </p>
  1120. </dd>
  1121. <dt>
  1122. <strong>--seed-ratio</strong>=RATIO
  1123. </dt>
  1124. <dd>
  1125. <p>
  1126. Specify share ratio. Seed completed torrents until share ratio reaches
  1127. RATIO.
  1128. You are strongly encouraged to specify equals or more than <em>1.0</em> here.
  1129. Specify <em>0.0</em> if you intend to do seeding regardless of share ratio.
  1130. If <strong>--seed-time</strong> option is specified along with this option, seeding ends when
  1131. at least one of the conditions is satisfied.
  1132. Default: <em>1.0</em>
  1133. </p>
  1134. </dd>
  1135. <dt>
  1136. <strong>--seed-time</strong>=MINUTES
  1137. </dt>
  1138. <dd>
  1139. <p>
  1140. Specify seeding time in minutes. Also see the <strong>--seed-ratio</strong> option.
  1141. </p>
  1142. </dd>
  1143. <dt>
  1144. <strong>-T</strong>, <strong>--torrent-file</strong>=TORRENT_FILE
  1145. </dt>
  1146. <dd>
  1147. <p>
  1148. The path to the .torrent file.
  1149. You are not required to use this option because you can specify a torrent file without -T.
  1150. </p>
  1151. </dd>
  1152. </dl></div>
  1153. <h3 id="_metalink_specific_options">Metalink Specific Options</h3><div style="clear:left"></div>
  1154. <div class="vlist"><dl>
  1155. <dt>
  1156. <strong>--follow-metalink</strong>=<em>true</em>|<em>false</em>|<em>mem</em>
  1157. </dt>
  1158. <dd>
  1159. <p>
  1160. If <em>true</em> or <em>mem</em> is specified, when a file whose suffix is ".metaink" or content
  1161. type of "application/metalink+xml" is downloaded, aria2 parses it as a metalink
  1162. file and downloads files mentioned in it.
  1163. If <em>mem</em> is specified, a metalink file is not written to the disk, but is just
  1164. kept in memory.
  1165. If <em>false</em> is specified, the action mentioned above is not taken.
  1166. Default: <em>true</em>
  1167. </p>
  1168. </dd>
  1169. <dt>
  1170. <strong>-M</strong>, <strong>--metalink-file</strong>=METALINK_FILE
  1171. </dt>
  1172. <dd>
  1173. <p>
  1174. The file path to .metalink file. You are not required to use this option because you can
  1175. specify a metalink file without -M.
  1176. </p>
  1177. </dd>
  1178. <dt>
  1179. <strong>-C</strong>, <strong>--metalink-servers</strong>=NUM_SERVERS
  1180. </dt>
  1181. <dd>
  1182. <p>
  1183. The number of servers to connect to simultaneously.
  1184. Some Metalinks regulate the number of servers to connect.
  1185. aria2 strictly respects them.
  1186. This means that if Metalink defines the maxconnections attribute lower
  1187. than NUM_SERVERS, then aria2 uses the value of maxconnections attribute
  1188. instead of NUM_SERVERS.
  1189. See also <strong>-s</strong> and <strong>-j</strong> options.
  1190. Default: <em>5</em>
  1191. </p>
  1192. </dd>
  1193. <dt>
  1194. <strong>--metalink-language</strong>=LANGUAGE
  1195. </dt>
  1196. <dd>
  1197. <p>
  1198. The language of the file to download.
  1199. </p>
  1200. </dd>
  1201. <dt>
  1202. <strong>--metalink-location</strong>=LOCATION[,&#8230;]
  1203. </dt>
  1204. <dd>
  1205. <p>
  1206. The location of the preferred server.
  1207. A comma-delimited list of locations is acceptable, for example, <em>JP,US</em>.
  1208. </p>
  1209. </dd>
  1210. <dt>
  1211. <strong>--metalink-os</strong>=OS
  1212. </dt>
  1213. <dd>
  1214. <p>
  1215. The operating system of the file to download.
  1216. </p>
  1217. </dd>
  1218. <dt>
  1219. <strong>--metalink-version</strong>=VERSION
  1220. </dt>
  1221. <dd>
  1222. <p>
  1223. The version of the file to download.
  1224. </p>
  1225. </dd>
  1226. <dt>
  1227. <strong>--metalink-preferred-protocol</strong>=PROTO
  1228. </dt>
  1229. <dd>
  1230. <p>
  1231. Specify preferred protocol.
  1232. The possible values are <em>http</em>, <em>https</em>, <em>ftp</em> and <em>none</em>.
  1233. Specify <em>none</em> to disable this feature.
  1234. Default: <em>none</em>
  1235. </p>
  1236. </dd>
  1237. <dt>
  1238. <strong>--metalink-enable-unique-protocol</strong>=<em>true</em>|<em>false</em>
  1239. </dt>
  1240. <dd>
  1241. <p>
  1242. If <em>true</em> is given and several protocols are available for a mirror in a
  1243. metalink file, aria2 uses one of them.
  1244. Use <strong>--metalink-preferred-protocol</strong> option to specify the preference of
  1245. protocol.
  1246. Default: <em>true</em>
  1247. </p>
  1248. </dd>
  1249. </dl></div>
  1250. <h3 id="_advanced_options">Advanced Options</h3><div style="clear:left"></div>
  1251. <div class="vlist"><dl>
  1252. <dt>
  1253. <strong>--allow-overwrite</strong>=<em>true</em>|<em>false</em>
  1254. </dt>
  1255. <dd>
  1256. <p>
  1257. If <em>false</em> is given, aria2 doesn't download a file which already exists but
  1258. the corresponding .aria2 file doesn't exist.
  1259. In HTTP(S)/FTP download, if <strong>--auto-file-renaming</strong>=<em>true</em> then,
  1260. file name will be renamed. See <strong>--auto-file-renaming</strong> for details.
  1261. Default: <em>false</em>
  1262. </p>
  1263. </dd>
  1264. <dt>
  1265. <strong>--allow-piece-length-change</strong>=<em>true</em>|<em>false</em>
  1266. </dt>
  1267. <dd>
  1268. <p>
  1269. If false is given, aria2 aborts download when a piece length is different
  1270. from one in a control file.
  1271. If true is given, you can proceed but some download progress will be lost.
  1272. Default: <em>false</em>
  1273. </p>
  1274. </dd>
  1275. <dt>
  1276. <strong>--async-dns</strong>[=<em>true</em>|<em>false</em>]
  1277. </dt>
  1278. <dd>
  1279. <p>
  1280. Enable asynchronous DNS.
  1281. Default: <em>true</em>
  1282. </p>
  1283. </dd>
  1284. <dt>
  1285. <strong>--auto-file-renaming</strong>[=<em>true</em>|<em>false</em>]
  1286. </dt>
  1287. <dd>
  1288. <p>
  1289. Rename file name if the same file already exists.
  1290. This option works only in HTTP(S)/FTP download.
  1291. The new file name has a dot and a number(1..9999) appended.
  1292. Default: <em>true</em>
  1293. </p>
  1294. </dd>
  1295. <dt>
  1296. <strong>--auto-save-interval</strong>=SEC
  1297. </dt>
  1298. <dd>
  1299. <p>
  1300. Save a control file(*.aria2) every SEC seconds.
  1301. If <em>0</em> is given, a control file is not saved during download. aria2 saves a
  1302. control file when it stops regardless of the value.
  1303. The possible values are between <em>0</em> to <em>600</em>.
  1304. Default: <em>60</em>
  1305. </p>
  1306. </dd>
  1307. <dt>
  1308. <strong>--conf-path</strong>=PATH
  1309. </dt>
  1310. <dd>
  1311. <p>
  1312. Change the configuration file path to PATH.
  1313. Default: <em>$HOME/.aria2/aria2.conf</em>
  1314. </p>
  1315. </dd>
  1316. <dt>
  1317. <strong>-D</strong>, <strong>--daemon</strong>
  1318. </dt>
  1319. <dd>
  1320. <p>
  1321. Run as daemon.
  1322. </p>
  1323. </dd>
  1324. <dt>
  1325. <strong>--enable-direct-io</strong>[=<em>true</em>|<em>false</em>]
  1326. </dt>
  1327. <dd>
  1328. <p>
  1329. Enable directI/O, which lowers cpu usage while allocating/checking files.
  1330. Turn off if you encounter any error.
  1331. Default: <em>true</em>
  1332. </p>
  1333. </dd>
  1334. <dt>
  1335. <strong>--enable-http-server</strong>[=<em>true</em>|<em>false</em>]
  1336. </dt>
  1337. <dd>
  1338. <p>
  1339. Enable the built-in HTTP server. Currently, this is the experimental
  1340. feature and it just provides the current download progress. Use your
  1341. web browser(console-based ones, such as elinks, w3m, are
  1342. recommended) to connect the server and see what's what. See also
  1343. <strong>--http-server-listen-port</strong> option. Default: <em>false</em>
  1344. </p>
  1345. </dd>
  1346. <dt>
  1347. <strong>--event-poll</strong>=POLL
  1348. </dt>
  1349. <dd>
  1350. <p>
  1351. Specify the method for polling events. The possible Values are
  1352. <em>epoll</em> and <em>select</em>. If you use recent Linux that has epoll, then
  1353. the default value is <em>epoll</em>. Otherwise, the default value is
  1354. <em>select</em>.
  1355. </p>
  1356. </dd>
  1357. <dt>
  1358. <strong>--file-allocation</strong>=METHOD
  1359. </dt>
  1360. <dd>
  1361. <p>
  1362. Specify file allocation method. METHOD is either <em>none</em> or <em>prealloc</em>.
  1363. <em>none</em> doesn't pre-allocate file space. <em>prealloc</em> pre-allocates file space
  1364. before download begins. This may take some time depending on the size of the
  1365. file.
  1366. Default: <em>prealloc</em>
  1367. </p>
  1368. </dd>
  1369. <dt>
  1370. <strong>--log-level</strong>=LEVEL
  1371. </dt>
  1372. <dd>
  1373. <p>
  1374. Set log level to output.
  1375. LEVEL is either <em>debug</em>, <em>info</em>, <em>notice</em>, <em>warn</em> or <em>error</em>.
  1376. Default: <em>debug</em>
  1377. </p>
  1378. </dd>
  1379. <dt>
  1380. <strong>--summary-interval</strong>=SEC
  1381. </dt>
  1382. <dd>
  1383. <p>
  1384. Set interval in seconds to output download progress summary.
  1385. Setting <em>0</em> suppresses the output.
  1386. Default: <em>60</em>
  1387. </p>
  1388. </dd>
  1389. </dl></div>
  1390. <div class="admonitionblock">
  1391. <table><tr>
  1392. <td class="icon">
  1393. <div class="title">Note</div>
  1394. </td>
  1395. <td class="content">In multi file torrent downloads, the files adjacent forward to the specified files
  1396. are also allocated if they share the same piece.</td>
  1397. </tr></table>
  1398. </div>
  1399. <div class="vlist"><dl>
  1400. <dt>
  1401. <strong>-Z</strong>, <strong>--force-sequential</strong>[=<em>true</em>|<em>false</em>]
  1402. </dt>
  1403. <dd>
  1404. <p>
  1405. Fetch URIs in the command-line sequentially and download each URI in a
  1406. separate session, like the usual command-line download utilities.
  1407. Default: <em>false</em>
  1408. </p>
  1409. </dd>
  1410. <dt>
  1411. <strong>--http-server-listen-port</strong>=PORT
  1412. </dt>
  1413. <dd>
  1414. <p>
  1415. Specify a port number for the built-in HTTP Server to listen to.
  1416. See also <strong>--enable-http-server</strong> option. The possible Values are
  1417. <em>1024</em>-<em>65535</em>. Default: <em>6800</em>
  1418. </p>
  1419. </dd>
  1420. <dt>
  1421. <strong>--max-download-limit</strong>=SPEED
  1422. </dt>
  1423. <dd>
  1424. <p>
  1425. Set max download speed in bytes per sec. <em>0</em> means unrestricted.
  1426. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1427. Default: <em>0</em>
  1428. </p>
  1429. </dd>
  1430. <dt>
  1431. <strong>--no-conf</strong>
  1432. </dt>
  1433. <dd>
  1434. <p>
  1435. Disable loading aria2.conf file.
  1436. </p>
  1437. </dd>
  1438. <dt>
  1439. <strong>--no-file-allocation-limit</strong>=SIZE
  1440. </dt>
  1441. <dd>
  1442. <p>
  1443. No file allocation is made for files whose size is smaller than SIZE.
  1444. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1445. Default: <em>5M</em>
  1446. </p>
  1447. </dd>
  1448. <dt>
  1449. <strong>-P</strong>, <strong>--parameterized-uri</strong>[=<em>true</em>|<em>false</em>]
  1450. </dt>
  1451. <dd>
  1452. <p>
  1453. Enable parameterized URI support.
  1454. You can specify set of parts: <em>http://{sv1,sv2,sv3}/foo.iso</em>.
  1455. Also you can specify numeric sequences with step counter:
  1456. <em>http://host/image[000-100:2].img</em>.
  1457. A step counter can be omitted.
  1458. If all URIs do not point to the same file, such as the second example above,
  1459. -Z option is required.
  1460. Default: <em>false</em>
  1461. </p>
  1462. </dd>
  1463. <dt>
  1464. <strong>-q</strong>, <strong>--quiet</strong>[=<em>true</em>|<em>false</em>]
  1465. </dt>
  1466. <dd>
  1467. <p>
  1468. Make aria2 quiet (no console output).
  1469. Default: <em>false</em>
  1470. </p>
  1471. </dd>
  1472. <dt>
  1473. <strong>--realtime-chunk-checksum</strong>=<em>true</em>|<em>false</em>
  1474. </dt>
  1475. <dd>
  1476. <p>
  1477. Validate chunk of data by calculating checksum while downloading a file if
  1478. chunk checksums are provided.
  1479. Default: <em>true</em>
  1480. </p>
  1481. </dd>
  1482. <dt>
  1483. <strong>--stop</strong>=SEC
  1484. </dt>
  1485. <dd>
  1486. <p>
  1487. Stop application after SEC seconds has passed.
  1488. If <em>0</em> is given, this feature is disabled.
  1489. Default: <em>0</em>
  1490. </p>
  1491. </dd>
  1492. <dt>
  1493. <strong>-v</strong>, <strong>--version</strong>
  1494. </dt>
  1495. <dd>
  1496. <p>
  1497. Print the version number, copyright and the configuration information and
  1498. exit.
  1499. </p>
  1500. </dd>
  1501. </dl></div>
  1502. <h3 id="_options_that_take_an_optional_argument">OPTIONS THAT TAKE AN OPTIONAL ARGUMENT</h3><div style="clear:left"></div>
  1503. <div class="para"><p>The options that have its argument surrounded by square brackets([])
  1504. take an optional argument. Usually omiting the argument is evaluated to <em>true</em>.
  1505. If you use short form of these options(such as <em>-V</em>) and give
  1506. an argument, then the option name and its argument should be concatenated(e.g.
  1507. <em>-Vfalse</em>). If any spaces are inserted between the option name and the argument,
  1508. the argument will be treated as URI and usually this is not what you expect.</p></div>
  1509. <h3 id="_url_torrent_file_metalink_file">URL, TORRENT_FILE, METALINK_FILE</h3><div style="clear:left"></div>
  1510. <div class="para"><p>You can specify multiple URLs in command-line.
  1511. Unless you specify <strong>-Z</strong> option, all URLs must point to the same file or downloading will fail.</p></div>
  1512. <div class="para"><p>You can also specify arbitrary number of torrent files and metalink files
  1513. stored on a local drive. Please note that they are always treated as a
  1514. separate download.</p></div>
  1515. <div class="para"><p>You can specify both torrent file with -T option and URLs. By doing this,
  1516. you can download a file from both torrent swarm and HTTP(S)/FTP server at the same time,
  1517. while the data from HTTP(S)/FTP are uploaded to the torrent swarm. Note that
  1518. only single file torrent can be integrated with HTTP(S)/FTP.</p></div>
  1519. <div class="admonitionblock">
  1520. <table><tr>
  1521. <td class="icon">
  1522. <div class="title">Note</div>
  1523. </td>
  1524. <td class="content">Make sure that URL is quoted with single(') or double(") quotation if it
  1525. contains "&amp;" or any characters that have special meaning in shell.</td>
  1526. </tr></table>
  1527. </div>
  1528. </div>
  1529. <h2 id="_examples">EXAMPLES</h2>
  1530. <div class="sectionbody">
  1531. <h3 id="_http_ftp_segmented_download">HTTP/FTP Segmented Download</h3><div style="clear:left"></div>
  1532. <h4 id="_download_a_file">Download a file</h4>
  1533. <div class="listingblock">
  1534. <div class="content">
  1535. <pre><tt>aria2c http://host/file.zip</tt></pre>
  1536. </div></div>
  1537. <div class="admonitionblock">
  1538. <table><tr>
  1539. <td class="icon">
  1540. <div class="title">Note</div>
  1541. </td>
  1542. <td class="content">aria2 uses 5 connections to download 1 file by default.</td>
  1543. </tr></table>
  1544. </div>
  1545. <h4 id="_download_a_file_using_1_connection">Download a file using 1 connection</h4>
  1546. <div class="listingblock">
  1547. <div class="content">
  1548. <pre><tt>aria2c -s1 http://host/file.zip</tt></pre>
  1549. </div></div>
  1550. <div class="admonitionblock">
  1551. <table><tr>
  1552. <td class="icon">
  1553. <div class="title">Note</div>
  1554. </td>
  1555. <td class="content">aria2 uses 5 connections to download 1 file by default.
  1556. -s1 limits the number of connections to just 1.</td>
  1557. </tr></table>
  1558. </div>
  1559. <div class="admonitionblock">
  1560. <table><tr>
  1561. <td class="icon">
  1562. <div class="title">Note</div>
  1563. </td>
  1564. <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>
  1565. </tr></table>
  1566. </div>
  1567. <h4 id="_download_a_file_from_2_different_http_servers">Download a file from 2 different HTTP servers</h4>
  1568. <div class="listingblock">
  1569. <div class="content">
  1570. <pre><tt>aria2c http://host/file.zip http://mirror/file.zip</tt></pre>
  1571. </div></div>
  1572. <h4 id="_download_a_file_from_http_and_ftp_servers">Download a file from HTTP and FTP servers</h4>
  1573. <div class="listingblock">
  1574. <div class="content">
  1575. <pre><tt>aria2c http://host1/file.zip ftp://host2/file.zip</tt></pre>
  1576. </div></div>
  1577. <h4 id="_download_files_listed_in_a_text_file_concurrently">Download files listed in a text file concurrently</h4>
  1578. <div class="listingblock">
  1579. <div class="content">
  1580. <pre><tt>aria2c -ifiles.txt -j2</tt></pre>
  1581. </div></div>
  1582. <div class="admonitionblock">
  1583. <table><tr>
  1584. <td class="icon">
  1585. <div class="title">Note</div>
  1586. </td>
  1587. <td class="content">-j option specifies the number of parallel downloads.</td>
  1588. </tr></table>
  1589. </div>
  1590. <h4 id="_using_proxy">Using proxy</h4>
  1591. <div class="para"><p>For HTTP:</p></div>
  1592. <div class="listingblock">
  1593. <div class="content">
  1594. <pre><tt>aria2c --http-proxy=http://proxy:8080 http://host/file</tt></pre>
  1595. </div></div>
  1596. <div class="para"><p>For FTP:</p></div>
  1597. <div class="listingblock">
  1598. <div class="content">
  1599. <pre><tt>aria2c --ftp-proxy=http://proxy:8080 ftp://host/file</tt></pre>
  1600. </div></div>
  1601. <div class="admonitionblock">
  1602. <table><tr>
  1603. <td class="icon">
  1604. <div class="title">Note</div>
  1605. </td>
  1606. <td class="content">See <strong>--http-proxy</strong>, <strong>--https-proxy</strong>, <strong>--ftp-proxy</strong> and <strong>--all-proxy</strong> for
  1607. details.
  1608. You can specify proxy in the environment variables. See ENVIRONMENT section.</td>
  1609. </tr></table>
  1610. </div>
  1611. <h4 id="_proxy_with_authorization">Proxy with authorization</h4>
  1612. <div class="listingblock">
  1613. <div class="content">
  1614. <pre><tt>aria2c --http-proxy=http://username:password@proxy:8080 http://host/file</tt></pre>
  1615. </div></div>
  1616. <h3 id="_metalink_download">Metalink Download</h3><div style="clear:left"></div>
  1617. <h4 id="_download_files_with_remote_metalink">Download files with remote Metalink</h4>
  1618. <div class="listingblock">
  1619. <div class="content">
  1620. <pre><tt>aria2c --follow-metalink=mem http://host/file.metalink</tt></pre>
  1621. </div></div>
  1622. <h4 id="_download_using_a_local_metalink_file">Download using a local metalink file</h4>
  1623. <div class="listingblock">
  1624. <div class="content">
  1625. <pre><tt>aria2c -p --lowest-speed-limit=4000 file.metalink</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">To pause a download, press Ctrl-C.
  1633. You can resume the transfer by running aria2c with the same argument in the same
  1634. directory.</td>
  1635. </tr></table>
  1636. </div>
  1637. <h4 id="_download_several_local_metalink_files">Download several local metalink files</h4>
  1638. <div class="listingblock">
  1639. <div class="content">
  1640. <pre><tt>aria2c -j2 file1.metalink file2.metalink</tt></pre>
  1641. </div></div>
  1642. <h4 id="_download_only_selected_files_using_index">Download only selected files using index</h4>
  1643. <div class="listingblock">
  1644. <div class="content">
  1645. <pre><tt>aria2c --select-file=1-4,8 file.metalink</tt></pre>
  1646. </div></div>
  1647. <div class="admonitionblock">
  1648. <table><tr>
  1649. <td class="icon">
  1650. <div class="title">Note</div>
  1651. </td>
  1652. <td class="content">The index is printed to the console using -S option.</td>
  1653. </tr></table>
  1654. </div>
  1655. <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>
  1656. <div class="listingblock">
  1657. <div class="content">
  1658. <pre><tt>aria2c --metalink-location=JP,US --metalink-version=1.1 --metalink-language=en-US file.metalink</tt></pre>
  1659. </div></div>
  1660. <h3 id="_bittorrent_download">BitTorrent Download</h3><div style="clear:left"></div>
  1661. <h4 id="_download_files_from_remote_bittorrent_file">Download files from remote BitTorrent file</h4>
  1662. <div class="listingblock">
  1663. <div class="content">
  1664. <pre><tt>aria2c --follow-torrent=mem http://host/file.torrent</tt></pre>
  1665. </div></div>
  1666. <h4 id="_download_using_a_local_torrent_file">Download using a local torrent file</h4>
  1667. <div class="listingblock">
  1668. <div class="content">
  1669. <pre><tt>aria2c --max-upload-limit=40K file.torrent</tt></pre>
  1670. </div></div>
  1671. <div class="admonitionblock">
  1672. <table><tr>
  1673. <td class="icon">
  1674. <div class="title">Note</div>
  1675. </td>
  1676. <td class="content">--max-upload-limit specifies the max of upload rate.</td>
  1677. </tr></table>
  1678. </div>
  1679. <div class="admonitionblock">
  1680. <table><tr>
  1681. <td class="icon">
  1682. <div class="title">Note</div>
  1683. </td>
  1684. <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>
  1685. </tr></table>
  1686. </div>
  1687. <h4 id="_download_2_torrents">Download 2 torrents</h4>
  1688. <div class="listingblock">
  1689. <div class="content">
  1690. <pre><tt>aria2c -j2 file1.torrent file2.torrent</tt></pre>
  1691. </div></div>
  1692. <h4 id="_download_a_file_using_torrent_and_http_ftp_server">Download a file using torrent and HTTP/FTP server</h4>
  1693. <div class="listingblock">
  1694. <div class="content">
  1695. <pre><tt>aria2c -Ttest.torrent http://host1/file ftp://host2/file</tt></pre>
  1696. </div></div>
  1697. <div class="admonitionblock">
  1698. <table><tr>
  1699. <td class="icon">
  1700. <div class="title">Note</div>
  1701. </td>
  1702. <td class="content">Downloading multi file torrent with HTTP/FTP is not supported.</td>
  1703. </tr></table>
  1704. </div>
  1705. <h4 id="_download_only_selected_files_using_index_usually_called_selectable_download">Download only selected files using index(usually called "selectable download")</h4>
  1706. <div class="listingblock">
  1707. <div class="content">
  1708. <pre><tt>aria2c --select-file=1-4,8 file.torrent</tt></pre>
  1709. </div></div>
  1710. <div class="admonitionblock">
  1711. <table><tr>
  1712. <td class="icon">
  1713. <div class="title">Note</div>
  1714. </td>
  1715. <td class="content">The index is printed to the console using -S option.</td>
  1716. </tr></table>
  1717. </div>
  1718. <h4 id="_change_the_listening_port_for_incoming_peer">Change the listening port for incoming peer</h4>
  1719. <div class="listingblock">
  1720. <div class="content">
  1721. <pre><tt>aria2c --listen-port=7000-7001,8000 file.torrent</tt></pre>
  1722. </div></div>
  1723. <div class="admonitionblock">
  1724. <table><tr>
  1725. <td class="icon">
  1726. <div class="title">Note</div>
  1727. </td>
  1728. <td class="content">Since aria2 doesn't configure firewall or router for port forwarding, it's up
  1729. to you to do it manually.</td>
  1730. </tr></table>
  1731. </div>
  1732. <h4 id="_specify_the_condition_to_stop_program_after_torrent_download_finished">Specify the condition to stop program after torrent download finished</h4>
  1733. <div class="listingblock">
  1734. <div class="content">
  1735. <pre><tt>aria2c --seed-time=120 --seed-ratio=1.0 file.torrent</tt></pre>
  1736. </div></div>
  1737. <div class="admonitionblock">
  1738. <table><tr>
  1739. <td class="icon">
  1740. <div class="title">Note</div>
  1741. </td>
  1742. <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>
  1743. </tr></table>
  1744. </div>
  1745. <h4 id="_throttle_upload_speed">Throttle upload speed</h4>
  1746. <div class="listingblock">
  1747. <div class="content">
  1748. <pre><tt>aria2c --max-upload-limit=100K file.torrent</tt></pre>
  1749. </div></div>
  1750. <h4 id="_enable_dht">Enable DHT</h4>
  1751. <div class="listingblock">
  1752. <div class="content">
  1753. <pre><tt>aria2c --enable-dht --dht-listen-port=6881 file.torrent</tt></pre>
  1754. </div></div>
  1755. <div class="admonitionblock">
  1756. <table><tr>
  1757. <td class="icon">
  1758. <div class="title">Note</div>
  1759. </td>
  1760. <td class="content">DHT uses udp port. Since aria2 doesn't configure firewall or router for port
  1761. forwarding, it's up to you to do it manually.</td>
  1762. </tr></table>
  1763. </div>
  1764. <h3 id="_more_advanced_http_features">More advanced HTTP features</h3><div style="clear:left"></div>
  1765. <h4 id="_load_cookies">Load cookies</h4>
  1766. <div class="listingblock">
  1767. <div class="content">
  1768. <pre><tt>aria2c --load-cookies=cookies.txt http://host/file.zip</tt></pre>
  1769. </div></div>
  1770. <div class="admonitionblock">
  1771. <table><tr>
  1772. <td class="icon">
  1773. <div class="title">Note</div>
  1774. </td>
  1775. <td class="content">You can use Firefox/Mozilla's cookie file without modification.</td>
  1776. </tr></table>
  1777. </div>
  1778. <h4 id="_resume_download_started_by_web_browsers_or_another_programs">Resume download started by web browsers or another programs</h4>
  1779. <div class="listingblock">
  1780. <div class="content">
  1781. <pre><tt>aria2c -c -s2 http://host/partiallydownloadedfile.zip</tt></pre>
  1782. </div></div>
  1783. <h4 id="_client_certificate_authorization_for_ssl_tls">Client certificate authorization for SSL/TLS</h4>
  1784. <div class="listingblock">
  1785. <div class="content">
  1786. <pre><tt>aria2c --certificate=/path/to/mycert.pem --private-key=/path/to/mykey.pem https://host/file</tt></pre>
  1787. </div></div>
  1788. <div class="admonitionblock">
  1789. <table><tr>
  1790. <td class="icon">
  1791. <div class="title">Note</div>
  1792. </td>
  1793. <td class="content">The file specified in <strong>--private-key</strong> must be decrypted. The behavior when
  1794. encrypted one is given is undefined.</td>
  1795. </tr></table>
  1796. </div>
  1797. <h4 id="_verify_peer_in_ssl_tls_using_given_ca_certificates">Verify peer in SSL/TLS using given CA certificates</h4>
  1798. <div class="listingblock">
  1799. <div class="content">
  1800. <pre><tt>aria2c --ca-certificate=/path/to/ca-certificates.crt --check-certificate https://host/file</tt></pre>
  1801. </div></div>
  1802. <h3 id="_and_more_advanced_features">And more advanced features</h3><div style="clear:left"></div>
  1803. <h4 id="_throttle_download_speed">Throttle download speed</h4>
  1804. <div class="listingblock">
  1805. <div class="content">
  1806. <pre><tt>aria2c --max-download-limit=100K file.metalink</tt></pre>
  1807. </div></div>
  1808. <h4 id="_repair_a_damaged_download_using_v_option">Repair a damaged download using -V option</h4>
  1809. <div class="listingblock">
  1810. <div class="content">
  1811. <pre><tt>aria2c -V file.metalink</tt></pre>
  1812. </div></div>
  1813. <div class="admonitionblock">
  1814. <table><tr>
  1815. <td class="icon">
  1816. <div class="title">Note</div>
  1817. </td>
  1818. <td class="content">This option is only available used with BitTorrent or metalink with chunk
  1819. checksums.</td>
  1820. </tr></table>
  1821. </div>
  1822. <h4 id="_drop_connection_if_download_speed_is_lower_than_specified_value">Drop connection if download speed is lower than specified value</h4>
  1823. <div class="listingblock">
  1824. <div class="content">
  1825. <pre><tt>aria2c --lowest-speed-limit=10K file.metalink</tt></pre>
  1826. </div></div>
  1827. <h4 id="_parameterized_uri_support">Parameterized URI support</h4>
  1828. <div class="para"><p>You can specify set of parts:</p></div>
  1829. <div class="listingblock">
  1830. <div class="content">
  1831. <pre><tt>aria2c -P http://{host1,host2,host3}/file.iso</tt></pre>
  1832. </div></div>
  1833. <div class="para"><p>You can specify numeric sequence:</p></div>
  1834. <div class="listingblock">
  1835. <div class="content">
  1836. <pre><tt>aria2c -Z -P http://host/image[000-100].png</tt></pre>
  1837. </div></div>
  1838. <div class="admonitionblock">
  1839. <table><tr>
  1840. <td class="icon">
  1841. <div class="title">Note</div>
  1842. </td>
  1843. <td class="content">-Z option is required if the all URIs don't point to the same file, such as the above example.</td>
  1844. </tr></table>
  1845. </div>
  1846. <div class="para"><p>You can specify step counter:</p></div>
  1847. <div class="listingblock">
  1848. <div class="content">
  1849. <pre><tt>aria2c -Z -P http://host/image[A-Z:2].png</tt></pre>
  1850. </div></div>
  1851. <h4 id="_parallel_downloads_of_arbitrary_number_of_url_metalink_torrent">Parallel downloads of arbitrary number of URL,metalink,torrent</h4>
  1852. <div class="listingblock">
  1853. <div class="content">
  1854. <pre><tt>aria2c -j3 -Z http://host/file1 file2.torrent file3.metalink</tt></pre>
  1855. </div></div>
  1856. <h4 id="_bittorrent_encryption">BitTorrent Encryption</h4>
  1857. <div class="para"><p>Encrypt whole payload using ARC4:</p></div>
  1858. <div class="listingblock">
  1859. <div class="content">
  1860. <pre><tt>aria2c --bt-min-crypto-level=arc4 --bt-require-crypto=true file.torrent</tt></pre>
  1861. </div></div>
  1862. </div>
  1863. <h2 id="_resume_download">RESUME DOWNLOAD</h2>
  1864. <div class="sectionbody">
  1865. <div class="para"><p>Usually, you can resume transfer by just issuing same command(aria2c URL)
  1866. if the previous transfer is made by aria2.</p></div>
  1867. <div class="para"><p>If the previous transfer is made by a browser or wget like sequential
  1868. download manager, then use -c option to continue the transfer(aria2c -c URL).</p></div>
  1869. </div>
  1870. <h2 id="_control_file">CONTROL FILE</h2>
  1871. <div class="sectionbody">
  1872. <div class="para"><p>aria2 uses a control file to track the progress of a download.
  1873. A control file is placed in the same directory as the downloading file and
  1874. its filename is the filename of downloading file with ".aria2" appended.
  1875. For example, if you are downloading file.zip, then the control file should be
  1876. file.zip.aria2.
  1877. (There is a exception for this naming convention.
  1878. If you are downloading a multi torrent, its control file is the "top directory"
  1879. name of the torrent with ".aria2" appended.
  1880. The "top directory" name is a value of "name" key in "info" directory in a torrent file.)</p></div>
  1881. <div class="para"><p>Usually a control file is deleted once download completed.
  1882. If aria2 decides that download cannot be resumed(for example, when downloading
  1883. a file from a HTTP server which doesn't support resume), a control file is
  1884. not created.</p></div>
  1885. <div class="para"><p>Normally if you lose a control file, you cannot resume download.
  1886. But if you have a torrent or metalink with chunk checksums for the file,
  1887. you can resume the download without a control file by giving
  1888. -V option to aria2c in command-line.</p></div>
  1889. </div>
  1890. <h2 id="_seeding_downloaded_file_in_bittorrent">SEEDING DOWNLOADED FILE IN BITTORRENT</h2>
  1891. <div class="sectionbody">
  1892. <div class="para"><p>You can seed downloaded file using -V option.</p></div>
  1893. <div class="listingblock">
  1894. <div class="content">
  1895. <pre><tt>aria2c -V file.torrent</tt></pre>
  1896. </div></div>
  1897. </div>
  1898. <h2 id="_input_file">INPUT FILE</h2>
  1899. <div class="sectionbody">
  1900. <div class="para"><p>The input file can contain a list of URIs for aria2 to download.
  1901. You can specify multiple URIs for a single entity:
  1902. separate URIs on a single line using the TAB character.</p></div>
  1903. <div class="para"><p>Each line is treated as if it is provided in command-line argument.
  1904. Therefore they are affected by <strong>-Z</strong> and <strong>-P</strong> options.
  1905. The additional <strong>out</strong> and <strong>dir</strong> options can be specified after each line of
  1906. URIs. This optional line must start with white space(s).</p></div>
  1907. <div class="para"><p>For example, the content of uri.txt is</p></div>
  1908. <div class="listingblock">
  1909. <div class="content">
  1910. <pre><tt>http://server/file.iso http://mirror/file.iso
  1911. dir=/iso_images
  1912. out=file.img
  1913. http://foo/bar</tt></pre>
  1914. </div></div>
  1915. <div class="para"><p>If aria2 is executed with <strong>-i</strong> uri.txt <strong>-d</strong> /tmp options,
  1916. then <em>file.iso</em> is saved as <em>/iso_images/file.img</em> and it is downloaded from
  1917. http://server/file.iso and http://mirror/file.iso.
  1918. The file <em>bar</em> is downloaded from http://foo/bar and saved as <em>/tmp/bar</em>.</p></div>
  1919. <div class="para"><p>In some cases, <strong>out</strong> parameter has no effect.
  1920. See note of <strong>--out</strong> option for the restrictions.</p></div>
  1921. </div>
  1922. <h2 id="_server_performance_profile">SERVER PERFORMANCE PROFILE</h2>
  1923. <div class="sectionbody">
  1924. <div class="para"><p>This section describes the format of server performance profile.
  1925. The file is plain text and each line has several NAME=VALUE pair, delimited by
  1926. comma.
  1927. Currently following NAMEs are recognized:</p></div>
  1928. <div class="vlist"><dl>
  1929. <dt>
  1930. host
  1931. </dt>
  1932. <dd>
  1933. <p>
  1934. Hostname of the server. Required.
  1935. </p>
  1936. </dd>
  1937. <dt>
  1938. protocol
  1939. </dt>
  1940. <dd>
  1941. <p>
  1942. Protocol for this profile, such as ftp, http. Required.
  1943. </p>
  1944. </dd>
  1945. <dt>
  1946. dl_speed
  1947. </dt>
  1948. <dd>
  1949. <p>
  1950. The average download speed observed in the previous download in bytes per sec.
  1951. Required.
  1952. </p>
  1953. </dd>
  1954. <dt>
  1955. sc_avg_speed
  1956. </dt>
  1957. <dd>
  1958. <p>
  1959. The average download speed observed in the previous download in
  1960. bytes per sec. This value is only updated if the download is done in
  1961. single connection environment and only used by
  1962. AdaptiveURISelector. Optional.
  1963. </p>
  1964. </dd>
  1965. <dt>
  1966. mc_avg_speed
  1967. </dt>
  1968. <dd>
  1969. <p>
  1970. The average download speed observed in the previous download in
  1971. bytes per sec. This value is only updated if the download is done in
  1972. multi connection environment and only used by
  1973. AdaptiveURISelector. Optional.
  1974. </p>
  1975. </dd>
  1976. <dt>
  1977. counter
  1978. </dt>
  1979. <dd>
  1980. <p>
  1981. How many times the server is used. Currently this value is only used
  1982. by AdaptiveURISelector. Optional.
  1983. </p>
  1984. </dd>
  1985. <dt>
  1986. last_updated
  1987. </dt>
  1988. <dd>
  1989. <p>
  1990. Last contact time in GMT with this server, specified in the seconds from the
  1991. Epoch. Required.
  1992. </p>
  1993. </dd>
  1994. <dt>
  1995. status
  1996. </dt>
  1997. <dd>
  1998. <p>
  1999. ERROR is set when server cannot be reached or out-of-service or timeout
  2000. occurred. Otherwise, OK is set.
  2001. </p>
  2002. </dd>
  2003. </dl></div>
  2004. <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>
  2005. <div class="para"><p>An example follows:</p></div>
  2006. <div class="listingblock">
  2007. <div class="content">
  2008. <pre><tt>host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  2009. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR</tt></pre>
  2010. </div></div>
  2011. </div>
  2012. <h2 id="_files">FILES</h2>
  2013. <div class="sectionbody">
  2014. <h3 id="_aria2_conf">aria2.conf</h3><div style="clear:left"></div>
  2015. <div class="para"><p>By default, aria2 parses <em>$HOME/.aria2/aria2.conf</em> as a configuraiton
  2016. file. You can specify the path to configuration file using
  2017. <strong>--conf-path</strong> option. If you don't want to use the configuraitonf
  2018. file, use <strong>--no-conf</strong> option.</p></div>
  2019. <div class="para"><p>The configuration file is a text file and has 1 option per each
  2020. line. In each line, you can specify name-value pair in the format:
  2021. NAME=VALUE, where name is the long command-line option name without
  2022. "--" prefix. You can use same syntax for the command-line option. The
  2023. lines beginning "#" are treated as comments.</p></div>
  2024. <div class="listingblock">
  2025. <div class="content">
  2026. <pre><tt># sample configuration file for aria2c
  2027. listen-port=60000
  2028. dht-listen-port=60000
  2029. seed-ratio=1.0
  2030. max-upload-limit=50K
  2031. ftp-pasv=true</tt></pre>
  2032. </div></div>
  2033. <h3 id="_dht_dat">dht.dat</h3><div style="clear:left"></div>
  2034. <div class="para"><p>By default, the routing table of DHT is saved to the path $HOME/.aria2/dht.dat.</p></div>
  2035. </div>
  2036. <h2 id="_environment">ENVIRONMENT</h2>
  2037. <div class="sectionbody">
  2038. <div class="para"><p>aria2 recognizes the following environment variables.</p></div>
  2039. <div class="vlist"><dl>
  2040. <dt>
  2041. http_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  2042. </dt>
  2043. <dd>
  2044. <p>
  2045. Specify proxy server for use in HTTP.
  2046. Overrides http-proxy value in configuration file.
  2047. The command-line option <strong>--http-proxy</strong> overrides this value.
  2048. </p>
  2049. </dd>
  2050. <dt>
  2051. https_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  2052. </dt>
  2053. <dd>
  2054. <p>
  2055. Specify proxy server for use in HTTPS.
  2056. Overrides https-proxy value in configuration file.
  2057. The command-line option <strong>--https-proxy</strong> overrides this value.
  2058. </p>
  2059. </dd>
  2060. <dt>
  2061. ftp_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  2062. </dt>
  2063. <dd>
  2064. <p>
  2065. Specify proxy server for use in FTP.
  2066. Overrides ftp-proxy value in configuration file.
  2067. The command-line option <strong>--ftp-proxy</strong> overrides this value.
  2068. </p>
  2069. </dd>
  2070. <dt>
  2071. all_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  2072. </dt>
  2073. <dd>
  2074. <p>
  2075. Specify proxy server for use if no protocol-specific proxy is specified.
  2076. Overrides all-proxy value in configuration file.
  2077. The command-line option <strong>--all-proxy</strong> overrides this value.
  2078. </p>
  2079. </dd>
  2080. <dt>
  2081. no_proxy [DOMAIN,&#8230;]
  2082. </dt>
  2083. <dd>
  2084. <p>
  2085. Specify comma-separated hostname or domains to which proxy should not be used.
  2086. Overrides no-proxy value in configuration file.
  2087. The command-line option <strong>--no-proxy</strong> overrides this value.
  2088. </p>
  2089. </dd>
  2090. </dl></div>
  2091. </div>
  2092. <h2 id="_exit_codes">EXIT CODES</h2>
  2093. <div class="sectionbody">
  2094. <div class="para"><p>Because aria2 can handle multiple downloads at once, it encounters
  2095. lots of errors in a session. aria2 returns the following exit codes
  2096. based on the last error encountered.</p></div>
  2097. <div class="vlist"><dl>
  2098. <dt>
  2099. 0
  2100. </dt>
  2101. <dd>
  2102. <p>
  2103. If all downloads are successful.
  2104. </p>
  2105. </dd>
  2106. <dt>
  2107. 1
  2108. </dt>
  2109. <dd>
  2110. <p>
  2111. If an unknown error occurs.
  2112. </p>
  2113. </dd>
  2114. <dt>
  2115. 2
  2116. </dt>
  2117. <dd>
  2118. <p>
  2119. If time out occurs.
  2120. </p>
  2121. </dd>
  2122. <dt>
  2123. 3
  2124. </dt>
  2125. <dd>
  2126. <p>
  2127. If a resource is not found.
  2128. </p>
  2129. </dd>
  2130. <dt>
  2131. 4
  2132. </dt>
  2133. <dd>
  2134. <p>
  2135. If aria2 sees the specfied number of "resource not found" error.
  2136. See <strong>--max-file-not-found</strong> option).
  2137. </p>
  2138. </dd>
  2139. <dt>
  2140. 5
  2141. </dt>
  2142. <dd>
  2143. <p>
  2144. If a download aborts because download speed is too slow.
  2145. See <strong>--lowest-speed-limit</strong> option)
  2146. </p>
  2147. </dd>
  2148. <dt>
  2149. 6
  2150. </dt>
  2151. <dd>
  2152. <p>
  2153. If network problem occurs.
  2154. </p>
  2155. </dd>
  2156. <dt>
  2157. 7
  2158. </dt>
  2159. <dd>
  2160. <p>
  2161. If there are unfinished downloads. This error is only reported if
  2162. all finished downloads are successful and there are unfinished
  2163. downloads in a queue when aria2 exits by pressing Ctrl-C by an user
  2164. or sending TERM or INT signal.
  2165. </p>
  2166. </dd>
  2167. </dl></div>
  2168. <div class="admonitionblock">
  2169. <table><tr>
  2170. <td class="icon">
  2171. <div class="title">Note</div>
  2172. </td>
  2173. <td class="content">An error occurred in a finished download will not be reported
  2174. as exit status.</td>
  2175. </tr></table>
  2176. </div>
  2177. </div>
  2178. <h2 id="_resources">RESOURCES</h2>
  2179. <div class="sectionbody">
  2180. <div class="para"><p>Project web site: <a href="http://aria2.sourceforge.net/">http://aria2.sourceforge.net/</a></p></div>
  2181. <div class="para"><p>metalink: <a href="http://www.metalinker.org/">http://www.metalinker.org/</a></p></div>
  2182. </div>
  2183. <h2 id="_reporting_bugs">REPORTING BUGS</h2>
  2184. <div class="sectionbody">
  2185. <div class="para"><p>Report bugs to Tatsuhiro Tsujikawa &lt;t-tujikawa at users.sourceforge.net&gt;</p></div>
  2186. </div>
  2187. <h2 id="_author">AUTHOR</h2>
  2188. <div class="sectionbody">
  2189. <div class="para"><p>Tatsuhiro Tsujikawa &lt;t-tujikawa at users.sourceforge.net&gt;</p></div>
  2190. </div>
  2191. <h2 id="_copyright">COPYRIGHT</h2>
  2192. <div class="sectionbody">
  2193. <div class="para"><p>Copyright &#169; 2006, 2008 Tatsuhiro Tsujikawa</p></div>
  2194. <div class="para"><p>This program is free software; you can redistribute it and/or modify
  2195. it under the terms of the GNU General Public License as published by
  2196. the Free Software Foundation; either version 2 of the License, or
  2197. (at your option) any later version.</p></div>
  2198. <div class="para"><p>This program is distributed in the hope that it will be useful,
  2199. but WITHOUT ANY WARRANTY; without even the implied warranty of
  2200. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  2201. GNU General Public License for more details.</p></div>
  2202. <div class="para"><p>You should have received a copy of the GNU General Public License
  2203. along with this program; if not, write to the Free Software
  2204. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</p></div>
  2205. <div class="para"><p>In addition, as a special exception, the copyright holders give
  2206. permission to link the code of portions of this program with the
  2207. OpenSSL library under certain conditions as described in each
  2208. individual source file, and distribute linked combinations
  2209. including the two.
  2210. You must obey the GNU General Public License in all respects
  2211. for all of the code used other than OpenSSL. If you modify
  2212. file(s) with this exception, you may extend this exception to your
  2213. version of the file(s), but you are not obligated to do so. If you
  2214. do not wish to do so, delete this exception statement from your
  2215. version. If you delete this exception statement from all source
  2216. files in the program, then also delete it here.</p></div>
  2217. </div>
  2218. <div id="footer">
  2219. <div id="footer-text">
  2220. Last updated 2009-02-14 18:43:10 JST
  2221. </div>
  2222. </div>
  2223. </body>
  2224. </html>