aria2c.1.html 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001
  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. It can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth. It supports downloading a file from HTTP(S)/FTP and BitTorrent at the same time, while the data downloaded from HTTP(S)/FTP is uploaded to the BitTorrent swarm. Using Metalink's chunk checksums, aria2 automatically validates chunks of data while downloading a file like BitTorrent.</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. </p>
  362. </dd>
  363. <dt>
  364. <strong>-l</strong>, <strong>--log</strong>=LOG
  365. </dt>
  366. <dd>
  367. <p>
  368. The file name of the log file. If <em>-</em> is specified, log is written to
  369. stdout.
  370. </p>
  371. </dd>
  372. <dt>
  373. <strong>-j</strong>, <strong>--max-concurrent-downloads</strong>=N
  374. </dt>
  375. <dd>
  376. <p>
  377. Set maximum number of parallel downloads for every static (HTTP/FTP) URL,
  378. torrent and metalink. See also <strong>-s</strong> and <strong>-C</strong> option.
  379. Default: <em>5</em>
  380. </p>
  381. </dd>
  382. <dt>
  383. <strong>--check-integrity</strong>=<em>true</em>|<em>false</em>
  384. </dt>
  385. <dd>
  386. <p>
  387. Check file integrity by validating piece hash.
  388. This option only affects in BitTorrent downloads and Metalink downloads with
  389. chunk checksums.
  390. Use this option to re-download a damaged portion of a file.
  391. Default: <em>false</em>
  392. </p>
  393. </dd>
  394. <dt>
  395. <strong>-c</strong>, <strong>--continue</strong>
  396. </dt>
  397. <dd>
  398. <p>
  399. Continue downloading a partially downloaded file.
  400. Use this option to resume a download started by a web browser or another
  401. program which downloads files sequentially from the beginning.
  402. Currently this option is only applicable to HTTP(S)/FTP downloads.
  403. </p>
  404. </dd>
  405. <dt>
  406. <strong>-h</strong>, <strong>--help</strong>[=CATEGORY]
  407. </dt>
  408. <dd>
  409. <p>
  410. Print usage and exit.
  411. The help messages are classified in several categories.
  412. For example, type "<strong>--help</strong>=http" for detailed explanation for the options
  413. related to HTTP. If no matching category is found, search option name using
  414. a given word in middle match and print the result.
  415. Available Values: <em>basic</em>, <em>advanced</em>, <em>http</em>, <em>ftp</em>, <em>metalink</em>,
  416. <em>bittorrent</em>, <em>all</em>
  417. Default: <em>basic</em>
  418. </p>
  419. </dd>
  420. </dl></div>
  421. <h3 id="_http_ftp_options">HTTP/FTP Options</h3><div style="clear:left"></div>
  422. <div class="vlist"><dl>
  423. <dt>
  424. <strong>--all-proxy</strong>=PROXY
  425. </dt>
  426. <dd>
  427. <p>
  428. Use this proxy server in the all protocols.
  429. You can override this setting and specify a proxy server for particular
  430. proctol using <strong>--http-proxy</strong>, <strong>--https-proxy</strong> and <strong>--ftp-proxy</strong> options.
  431. This affects all URLs.
  432. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  433. </p>
  434. </dd>
  435. <dt>
  436. <strong>--connect-timeout</strong>=SEC
  437. </dt>
  438. <dd>
  439. <p>
  440. Set the connect timeout in seconds to establish connection to
  441. HTTP/FTP/proxy server. After the connection is established, this
  442. option makes no effect and <strong>--timeout</strong> option is used instead.
  443. Default: <em>60</em>
  444. </p>
  445. </dd>
  446. <dt>
  447. <strong>--lowest-speed-limit</strong>=SPEED
  448. </dt>
  449. <dd>
  450. <p>
  451. Close connection if download speed is lower than or equal to this
  452. value(bytes per sec).
  453. <em>0</em> means aria2 does not have a lowest speed limit.
  454. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  455. This option does not affect BitTorrent downloads.
  456. Default: <em>0</em>
  457. </p>
  458. </dd>
  459. <dt>
  460. <strong>--max-file-not-found</strong>=NUM
  461. </dt>
  462. <dd>
  463. <p>
  464. If aria2 recieves `file not found' status from the remote HTTP/FTP
  465. servers NUM times without getting a single byte, then force the
  466. download to fail. Specify <em>0</em> to disable this option. This options is
  467. only effective only when using HTTP/FTP servers.
  468. Default: <em>0</em>
  469. </p>
  470. </dd>
  471. <dt>
  472. <strong>-m</strong>, <strong>--max-tries</strong>=N
  473. </dt>
  474. <dd>
  475. <p>
  476. Set number of tries. <em>0</em> means unlimited.
  477. Default: <em>5</em>
  478. </p>
  479. </dd>
  480. <dt>
  481. <strong>--no-proxy</strong>=DOMAINS
  482. </dt>
  483. <dd>
  484. <p>
  485. Specify comma separated hostnames or domains to which proxy should not be
  486. used.
  487. </p>
  488. </dd>
  489. <dt>
  490. <strong>-o</strong>, <strong>--out</strong>=FILE
  491. </dt>
  492. <dd>
  493. <p>
  494. The file name of the downloaded file.
  495. </p>
  496. </dd>
  497. </dl></div>
  498. <div class="admonitionblock">
  499. <table><tr>
  500. <td class="icon">
  501. <div class="title">Note</div>
  502. </td>
  503. <td class="content">In Metalink, BitTorrent download you cannot specify file name.
  504. The file name specified here is only used when the URLs fed to aria2
  505. is done by command line without <strong>-i</strong>, <strong>-Z</strong> option. For example:
  506. aria2c -o myfile.zip <a href="http://mirror1/file.zip">http://mirror1/file.zip</a> <a href="http://mirror2/file.zip">http://mirror2/file.zip</a></td>
  507. </tr></table>
  508. </div>
  509. <div class="vlist"><dl>
  510. <dt>
  511. <strong>--proxy-method</strong>=METHOD
  512. </dt>
  513. <dd>
  514. <p>
  515. Set the method to use in proxy request.
  516. <em>METHOD</em> is either <em>get</em> or <em>tunnel</em>.
  517. Default: <em>tunnel</em>
  518. </p>
  519. </dd>
  520. <dt>
  521. <strong>-R</strong>, <strong>--remote-time</strong>[=<em>true</em>|<em>false</em>]
  522. </dt>
  523. <dd>
  524. <p>
  525. Retrieve timestamp of the remote file from the remote HTTP/FTP
  526. server and if it is available, apply it to the local file.
  527. Default: <em>false</em>
  528. </p>
  529. </dd>
  530. <dt>
  531. <strong>--retry-wait</strong>=SEC
  532. </dt>
  533. <dd>
  534. <p>
  535. Set the seconds to wait to retry after an error has occured.
  536. Specify a value between <em>0</em> and <em>60</em>.
  537. Default: <em>5</em>
  538. </p>
  539. </dd>
  540. <dt>
  541. <strong>--server-stat-of</strong>=FILE
  542. </dt>
  543. <dd>
  544. <p>
  545. Specify the filename to which performance profile of the servers is
  546. saved. You can load saved data using <strong>--server-stat-if</strong> option. See
  547. SERVER PERFORMANCE PROFILE section below for file format.
  548. </p>
  549. </dd>
  550. <dt>
  551. <strong>--server-stat-if</strong>=FILE
  552. </dt>
  553. <dd>
  554. <p>
  555. Specify the filename to load performance profile of the servers. The
  556. loaded data will be used in some URI selector such as <em>feedback</em>.
  557. See also <strong>--uri-selector</strong> option. See SERVER PERFORMANCE PROFILE
  558. section below for file format.
  559. </p>
  560. </dd>
  561. <dt>
  562. <strong>--server-stat-timeout</strong>=SEC
  563. </dt>
  564. <dd>
  565. <p>
  566. Specifies timeout in seconds to invalidate performance profile of
  567. the servers since the last contact to them.
  568. Default: <em>86400</em> (24hours)
  569. </p>
  570. </dd>
  571. <dt>
  572. <strong>-s</strong>, <strong>--split</strong>=N
  573. </dt>
  574. <dd>
  575. <p>
  576. Download a file using N connections.
  577. If more than N URLs are given, first N URLs are used and remaining URLs are
  578. used for backup.
  579. If less than N URLs are given, those URLs are used more than once so that N
  580. connections total are made simultaneously.
  581. N must be between <em>1</em> and <em>16</em>. Please see <strong>-j</strong> option too.
  582. Please note that in Metalink download, this option has no effect and use
  583. <strong>-C</strong> option instead.
  584. Default: <em>5</em>
  585. </p>
  586. </dd>
  587. <dt>
  588. <strong>-t</strong>, <strong>--timeout</strong>=SEC
  589. </dt>
  590. <dd>
  591. <p>
  592. Set timeout in seconds.
  593. Default: <em>60</em>
  594. </p>
  595. </dd>
  596. <dt>
  597. <strong>--uri-selector</strong>=SELECTOR
  598. </dt>
  599. <dd>
  600. <p>
  601. Specify URI selection algorithm. Possible values are <em>inorder</em> and
  602. <em>feedback</em>. If <em>inorder</em> is given, URI is tried in the order
  603. appeared in the URI list. If <em>feedback</em> is given, aria2 uses
  604. download speed observed in the previous downloads and choose fastest
  605. server in the URI list. This also effectively skips dead
  606. mirrors. The observed download speed is a part of performance
  607. profile of servers mentioned in <strong>--server-stat-of</strong> and
  608. <strong>--server-stat-if</strong> options.
  609. Default: <em>inorder</em>
  610. </p>
  611. </dd>
  612. </dl></div>
  613. <h3 id="_http_specific_options">HTTP Specific Options</h3><div style="clear:left"></div>
  614. <div class="vlist"><dl>
  615. <dt>
  616. <strong>--ca-certificate</strong>=FILE
  617. </dt>
  618. <dd>
  619. <p>
  620. Use the certificate authorities in FILE to verify the peers.
  621. The certificate file must be in PEM format and can contain multiple CA
  622. certificates.
  623. Use <strong>--check-certificate</strong> option to enable verification.
  624. </p>
  625. </dd>
  626. <dt>
  627. <strong>--certificate</strong>=FILE
  628. </dt>
  629. <dd>
  630. <p>
  631. Use the client certificate in FILE.
  632. The certificate must be in PEM format.
  633. You may use <strong>--private-key</strong> option to specify the private key.
  634. </p>
  635. </dd>
  636. <dt>
  637. <strong>--check-certificate</strong>[=<em>true</em>|<em>false</em>]
  638. </dt>
  639. <dd>
  640. <p>
  641. Verify the peer using certificates specified in <strong>--ca-certificate</strong> option.
  642. </p>
  643. </dd>
  644. <dt>
  645. <strong>--http-auth-scheme</strong>=SCHEME
  646. </dt>
  647. <dd>
  648. <p>
  649. Set HTTP authentication scheme.
  650. Currently, <em>basic</em> is the only supported scheme.
  651. Default: <em>basic</em>
  652. </p>
  653. </dd>
  654. <dt>
  655. <strong>--http-user</strong>=USER
  656. </dt>
  657. <dd>
  658. <p>
  659. Set HTTP user. This affects all URLs.
  660. </p>
  661. </dd>
  662. <dt>
  663. <strong>--http-passwd</strong>=PASSWD
  664. </dt>
  665. <dd>
  666. <p>
  667. Set HTTP password. This affects all URLs.
  668. </p>
  669. </dd>
  670. <dt>
  671. <strong>--http-proxy</strong>=PROXY
  672. </dt>
  673. <dd>
  674. <p>
  675. Use this proxy server for HTTP. See also <strong>--all-proxy</strong> option.
  676. This affects all URLs.
  677. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  678. </p>
  679. </dd>
  680. <dt>
  681. <strong>--https-proxy</strong>=PROXY
  682. </dt>
  683. <dd>
  684. <p>
  685. Use this proxy server for HTTPS. 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>--private-key</strong>=FILE
  692. </dt>
  693. <dd>
  694. <p>
  695. Use the private key in FILE.
  696. The private key must be decrypted and in PEM format.
  697. The behavior when encrypted one is given is undefined.
  698. See also <strong>--certificate</strong> option.
  699. </p>
  700. </dd>
  701. <dt>
  702. <strong>--referer</strong>=REFERER
  703. </dt>
  704. <dd>
  705. <p>
  706. Set Referer. This affects all URLs.
  707. </p>
  708. </dd>
  709. <dt>
  710. <strong>--enable-http-keep-alive</strong>[=<em>true</em>|<em>false</em>]
  711. </dt>
  712. <dd>
  713. <p>
  714. Enable HTTP/1.1 persistent connection.
  715. Default: <em>true</em>
  716. </p>
  717. </dd>
  718. <dt>
  719. <strong>--enable-http-pipelining</strong>[=<em>true</em>|<em>false</em>]
  720. </dt>
  721. <dd>
  722. <p>
  723. Enable HTTP/1.1 pipelining.
  724. Default: <em>false</em>
  725. </p>
  726. </dd>
  727. <dt>
  728. <strong>--header</strong>=HEADER
  729. </dt>
  730. <dd>
  731. <p>
  732. Append HEADER to HTTP request header.
  733. You can use this option repeatedly to specify more than one header:
  734. aria2c <strong>--header</strong>="X-A: b78" <strong>--header</strong>="X-B: 9J1" <a href="http://host/file">http://host/file</a>
  735. </p>
  736. </dd>
  737. <dt>
  738. <strong>--load-cookies</strong>=FILE
  739. </dt>
  740. <dd>
  741. <p>
  742. Load Cookies from FILE using the Firefox3 format(SQLite3) and the
  743. Mozilla/Firefox(1.x/2.x)/Netscape format.
  744. </p>
  745. </dd>
  746. </dl></div>
  747. <div class="admonitionblock">
  748. <table><tr>
  749. <td class="icon">
  750. <div class="title">Note</div>
  751. </td>
  752. <td class="content">If aria2 is build without libsqlite3, then it doesn't support Firefox3 cookie.</td>
  753. </tr></table>
  754. </div>
  755. <div class="vlist"><dl>
  756. <dt>
  757. <strong>-U</strong>, <strong>--user-agent</strong>=USER_AGENT
  758. </dt>
  759. <dd>
  760. <p>
  761. Set user agent for HTTP(S) downloads.
  762. </p>
  763. </dd>
  764. </dl></div>
  765. <h3 id="_ftp_specific_options">FTP Specific Options</h3><div style="clear:left"></div>
  766. <div class="vlist"><dl>
  767. <dt>
  768. <strong>--ftp-user</strong>=USER
  769. </dt>
  770. <dd>
  771. <p>
  772. Set FTP user. This affects all URLs.
  773. Default: <em>anonymous</em>
  774. </p>
  775. </dd>
  776. <dt>
  777. <strong>--ftp-passwd</strong>=PASSWD
  778. </dt>
  779. <dd>
  780. <p>
  781. Set FTP password. This affects all URLs.
  782. Default: <em>ARIA2USER@</em>
  783. </p>
  784. </dd>
  785. <dt>
  786. <strong>-p</strong>, <strong>--ftp-pasv</strong>
  787. </dt>
  788. <dd>
  789. <p>
  790. Use passive mode in FTP.
  791. </p>
  792. </dd>
  793. <dt>
  794. <strong>--ftp-proxy</strong>=PROXY
  795. </dt>
  796. <dd>
  797. <p>
  798. Use this proxy server for FTP. See also <strong>--all-proxy</strong> option.
  799. This affects all URLs.
  800. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  801. </p>
  802. </dd>
  803. <dt>
  804. <strong>--ftp-type</strong>=TYPE
  805. </dt>
  806. <dd>
  807. <p>
  808. Set FTP transfer type. TYPE is either <em>binary</em> or <em>ascii</em>.
  809. Default: <em>binary</em>
  810. </p>
  811. </dd>
  812. <dt>
  813. <strong>--ftp-reuse-connection</strong>[=<em>true</em>|<em>false</em>]
  814. </dt>
  815. <dd>
  816. <p>
  817. Reuse connection in FTP.
  818. Default: <em>true</em>
  819. </p>
  820. </dd>
  821. <dt>
  822. <strong>-n</strong>, <strong>--no-netrc</strong>
  823. </dt>
  824. <dd>
  825. <p>
  826. Disables netrc support. netrc support is enabled by default.
  827. </p>
  828. </dd>
  829. </dl></div>
  830. <h3 id="_bittorrent_metalink_options">BitTorrent/Metalink Options</h3><div style="clear:left"></div>
  831. <div class="vlist"><dl>
  832. <dt>
  833. <strong>--select-file</strong>=INDEX&#8230;
  834. </dt>
  835. <dd>
  836. <p>
  837. Set file to download by specifing its index.
  838. You can find the file index using the <strong>--show-files</strong> option.
  839. Multiple indexes can be specified by using ",", for example: <em>3,6</em>.
  840. You can also use "-" to specify a range: <em>1-5</em>.
  841. "," and "-" can be used together: <em>1-5,8,9</em>.
  842. When used with the -M option, index may vary depending on the query
  843. (see <strong>--metalink-</strong>* options).
  844. </p>
  845. </dd>
  846. </dl></div>
  847. <div class="admonitionblock">
  848. <table><tr>
  849. <td class="icon">
  850. <div class="title">Note</div>
  851. </td>
  852. <td class="content">In multi file torrent, the adjacent files specified by this option may
  853. also be downloaded. This is by design, not a bug.
  854. A single piece may include several files or part of files, and aria2
  855. writes the piece to the appropriate files.</td>
  856. </tr></table>
  857. </div>
  858. <div class="vlist"><dl>
  859. <dt>
  860. <strong>-S</strong>, <strong>--show-files</strong>
  861. </dt>
  862. <dd>
  863. <p>
  864. Print file listing of .torrent or .metalink file and exit.
  865. In case of .torrent file, additional information
  866. (infohash, piece length, etc) is also printed.
  867. </p>
  868. </dd>
  869. </dl></div>
  870. <h3 id="_bittorrent_specific_options">BitTorrent Specific Options</h3><div style="clear:left"></div>
  871. <div class="vlist"><dl>
  872. <dt>
  873. <strong>--bt-max-open-files</strong>=NUM
  874. </dt>
  875. <dd>
  876. <p>
  877. Specify maximum number of files to open in each BitTorrent download.
  878. Default: <em>100</em>
  879. </p>
  880. </dd>
  881. <dt>
  882. <strong>--bt-min-crypto-level</strong>=<em>plain</em>|<em>arc4</em>
  883. </dt>
  884. <dd>
  885. <p>
  886. Set minimum level of encryption method.
  887. If several encryption methods are provided by a peer, aria2 chooses a lowest
  888. one which satisfies the given level.
  889. Default: <em>plain</em>
  890. </p>
  891. </dd>
  892. <dt>
  893. <strong>--bt-require-crypto</strong>=<em>true</em>|<em>false</em>
  894. </dt>
  895. <dd>
  896. <p>
  897. If true is given, aria2 doesn't accept and establish connection with legacy
  898. BitTorrent handshake(\19BitTorrent protocol).
  899. Thus aria2 always uses Obfuscation handshake.
  900. Default: <em>false</em>
  901. </p>
  902. </dd>
  903. <dt>
  904. <strong>--bt-request-peer-speed-limit</strong>=SPEED
  905. </dt>
  906. <dd>
  907. <p>
  908. In BitTorrent downloads, if the download speed is lower than SPEED,
  909. aria2 initiates and accepts connections ignoring max peer cap.
  910. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  911. Default: <em>51200</em>
  912. </p>
  913. </dd>
  914. <dt>
  915. <strong>--bt-seed-unverified</strong>[=<em>true</em>|<em>false</em>]
  916. </dt>
  917. <dd>
  918. <p>
  919. Seed previously downloaded files without verifying piece hashes.
  920. Default: <em>false</em>
  921. </p>
  922. </dd>
  923. <dt>
  924. <strong>--dht-entry-point</strong>=HOST:PORT
  925. </dt>
  926. <dd>
  927. <p>
  928. Set host and port as an entry point to DHT network.
  929. </p>
  930. </dd>
  931. <dt>
  932. <strong>--dht-file-path</strong>=PATH
  933. </dt>
  934. <dd>
  935. <p>
  936. Change the DHT routing table file to PATH.
  937. Default: <em>$HOME/.aria2/dht.dat</em>
  938. </p>
  939. </dd>
  940. <dt>
  941. <strong>--dht-listen-port</strong>=PORT&#8230;
  942. </dt>
  943. <dd>
  944. <p>
  945. Set UDP listening port for DHT.
  946. Multiple ports can be specified by using ",", for example: <em>6881,6885</em>.
  947. You can also use "-" to specify a range: <em>6881-6999</em>. "," and "-" can be used
  948. together.
  949. Default: <em>6881-6999</em>
  950. </p>
  951. </dd>
  952. <dt>
  953. <strong>--direct-file-mapping</strong>=<em>true</em>|<em>false</em>
  954. </dt>
  955. <dd>
  956. <p>
  957. Directly read from and write to each file mentioned in .torrent file.
  958. Use this option if lots of files are listed in .torrent file and aria2
  959. complains it cannot open files anymore.
  960. Default: <em>true</em>
  961. </p>
  962. </dd>
  963. <dt>
  964. <strong>--enable-dht</strong>[=<em>true</em>|<em>false</em>]
  965. </dt>
  966. <dd>
  967. <p>
  968. Enable DHT functionality. If a private flag is set in a torrent, aria2
  969. doesn't use DHT for that download even if <em>true</em> is given.
  970. Default: <em>false</em>
  971. </p>
  972. </dd>
  973. <dt>
  974. <strong>--enable-peer-exchange</strong>[=<em>true</em>|<em>false</em>]
  975. </dt>
  976. <dd>
  977. <p>
  978. Enable Peer Exchange extension. If a private flag is set in a torrent, this
  979. feature is disabled for that download even if <em>true</em> is given.
  980. Default: <em>true</em>
  981. </p>
  982. </dd>
  983. <dt>
  984. <strong>--follow-torrent</strong>=<em>true</em>|<em>false</em>|<em>mem</em>
  985. </dt>
  986. <dd>
  987. <p>
  988. If <em>true</em> or <em>mem</em> is specified, when a file whose suffix is ".torrent" or content
  989. type is "application/x-bittorrent" is downloaded, aria2 parses it as a torrent
  990. file and downloads files mentioned in it.
  991. If <em>mem</em> is specified, a torrent file is not written to the disk, but is just
  992. kept in memory.
  993. If <em>false</em> is specified, the action mentioned above is not taken.
  994. Default: <em>true</em>
  995. </p>
  996. </dd>
  997. <dt>
  998. <strong>--listen-port</strong>=PORT&#8230;
  999. </dt>
  1000. <dd>
  1001. <p>
  1002. Set TCP port number for BitTorrent downloads.
  1003. Multiple ports can be specified by using ",", for example: <em>6881,6885</em>.
  1004. You can also use "-" to specify a range: <em>6881-6999</em>.
  1005. "," and "-" can be used together: <em>6881-6889,6999</em>.
  1006. Default: <em>6881-6999</em>
  1007. </p>
  1008. </dd>
  1009. </dl></div>
  1010. <div class="admonitionblock">
  1011. <table><tr>
  1012. <td class="icon">
  1013. <div class="title">Note</div>
  1014. </td>
  1015. <td class="content">Make sure that the specified ports are open for incoming TCP traffic.</td>
  1016. </tr></table>
  1017. </div>
  1018. <div class="vlist"><dl>
  1019. <dt>
  1020. <strong>--max-upload-limit</strong>=SPEED
  1021. </dt>
  1022. <dd>
  1023. <p>
  1024. Set max upload speed in bytes per sec. <em>0</em> means unrestricted.
  1025. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1026. Default: <em>0</em>
  1027. </p>
  1028. </dd>
  1029. <dt>
  1030. <strong>--peer-id-prefix</strong>=PEERI_ID_PREFIX
  1031. </dt>
  1032. <dd>
  1033. <p>
  1034. Specify the prefix of peer ID. The peer ID in BitTorrent is 20 byte length.
  1035. If more than 20 bytes are specified, only first 20 bytes are used.
  1036. If less than 20 bytes are specified, the random alphabet characters are
  1037. added to make it's length 20 bytes.
  1038. Default: <em>-aria2-</em>
  1039. </p>
  1040. </dd>
  1041. <dt>
  1042. <strong>--seed-ratio</strong>=RATIO
  1043. </dt>
  1044. <dd>
  1045. <p>
  1046. Specify share ratio. Seed completed torrents until share ratio reaches]
  1047. RATIO.
  1048. I strongly encourages you to specify equals or more than <em>1.0</em> here.
  1049. Specify <em>0.0</em> if you intend to do seeding regardless of share ratio.
  1050. If <strong>--seed-time</strong> option is specified along with this option, seeding ends when
  1051. at least one of the conditions is satisfied.
  1052. Default: <em>1.0</em>
  1053. </p>
  1054. </dd>
  1055. <dt>
  1056. <strong>--seed-time</strong>=MINUTES
  1057. </dt>
  1058. <dd>
  1059. <p>
  1060. Specify seeding time in minutes. Also see the <strong>--seed-ratio</strong> option.
  1061. </p>
  1062. </dd>
  1063. <dt>
  1064. <strong>-T</strong>, <strong>--torrent-file</strong>=TORRENT_FILE
  1065. </dt>
  1066. <dd>
  1067. <p>
  1068. The path to the .torrent file.
  1069. You may not use this option because you can specify torrent file without -T.
  1070. </p>
  1071. </dd>
  1072. </dl></div>
  1073. <h3 id="_metalink_specific_options">Metalink Specific Options</h3><div style="clear:left"></div>
  1074. <div class="vlist"><dl>
  1075. <dt>
  1076. <strong>--follow-metalink</strong>=<em>true</em>|<em>false</em>|<em>mem</em>
  1077. </dt>
  1078. <dd>
  1079. <p>
  1080. If <em>true</em> or <em>mem</em> is specified, when a file whose suffix is ".metaink" or content
  1081. type is "application/metalink+xml" is downloaded, aria2 parses it as a metalink
  1082. file and downloads files mentioned in it.
  1083. If <em>mem</em> is specified, a metalink file is not written to the disk, but is just
  1084. kept in memory.
  1085. If <em>false</em> is specified, the action mentioned above is not taken.
  1086. Default: <em>true</em>
  1087. </p>
  1088. </dd>
  1089. <dt>
  1090. <strong>-M</strong>, <strong>--metalink-file</strong>=METALINK_FILE
  1091. </dt>
  1092. <dd>
  1093. <p>
  1094. The file path to .metalink file. You may not use this option because you can
  1095. specify metalink file without -M.
  1096. </p>
  1097. </dd>
  1098. <dt>
  1099. <strong>-C</strong>, <strong>--metalink-servers</strong>=NUM_SERVERS
  1100. </dt>
  1101. <dd>
  1102. <p>
  1103. The number of servers to connect to simultaneously.
  1104. Some Metalinks regulates the number of servers to connect.
  1105. aria2 strictly respects them.
  1106. This means that if Metalink defines the maxconnections attribute lower
  1107. than NUM_SERVERS, then aria2 uses the value of maxconnections attribute
  1108. instead of NUM_SERVERS.
  1109. See also <strong>-s</strong> and <strong>-j</strong> options.
  1110. Default: <em>5</em>
  1111. </p>
  1112. </dd>
  1113. <dt>
  1114. <strong>--metalink-language</strong>=LANGUAGE
  1115. </dt>
  1116. <dd>
  1117. <p>
  1118. The language of the file to download.
  1119. </p>
  1120. </dd>
  1121. <dt>
  1122. <strong>--metalink-location</strong>=LOCATION[,&#8230;]
  1123. </dt>
  1124. <dd>
  1125. <p>
  1126. The location of the preferred server.
  1127. A comma-deliminated list of locations is acceptable, for example, <em>JP,US</em>.
  1128. </p>
  1129. </dd>
  1130. <dt>
  1131. <strong>--metalink-os</strong>=OS
  1132. </dt>
  1133. <dd>
  1134. <p>
  1135. The operating system of the file to download.
  1136. </p>
  1137. </dd>
  1138. <dt>
  1139. <strong>--metalink-version</strong>=VERSION
  1140. </dt>
  1141. <dd>
  1142. <p>
  1143. The version of the file to download.
  1144. </p>
  1145. </dd>
  1146. <dt>
  1147. <strong>--metalink-preferred-protocol</strong>=PROTO
  1148. </dt>
  1149. <dd>
  1150. <p>
  1151. Specify preferred protocol.
  1152. The possible values are <em>http</em>, <em>https</em>, <em>ftp</em> and <em>none</em>.
  1153. Specifiy <em>none</em> to disable this feature.
  1154. Default: <em>none</em>
  1155. </p>
  1156. </dd>
  1157. <dt>
  1158. <strong>--metalink-enable-unique-protocol</strong>=<em>true</em>|<em>false</em>
  1159. </dt>
  1160. <dd>
  1161. <p>
  1162. If <em>true</em> is given and several protocols are available for a mirror in a
  1163. metalink file, aria2 uses one of them.
  1164. Use <strong>--metalink-preferred-protocol</strong> option to specify the preference of
  1165. protocol.
  1166. Default: <em>true</em>
  1167. </p>
  1168. </dd>
  1169. </dl></div>
  1170. <h3 id="_advanced_options">Advanced Options</h3><div style="clear:left"></div>
  1171. <div class="vlist"><dl>
  1172. <dt>
  1173. <strong>--allow-overwrite</strong>=<em>true</em>|<em>false</em>
  1174. </dt>
  1175. <dd>
  1176. <p>
  1177. If <em>false</em> is given, aria2 doesn't download a file which already exists but
  1178. the corresponding .aria2 file doesn't exist.
  1179. In HTTP(S)/FTP download, if <strong>--auto-file-renaming</strong>=<em>true</em> then,
  1180. file name will be renamed. See <strong>--auto-file-renaming</strong> for details.
  1181. Default: <em>false</em>
  1182. </p>
  1183. </dd>
  1184. <dt>
  1185. <strong>--allow-piece-length-change</strong>=<em>true</em>|<em>false</em>
  1186. </dt>
  1187. <dd>
  1188. <p>
  1189. If false is given, aria2 aborts download when a piece length is different
  1190. from one in a control file.
  1191. If true is given, you can proceed but some download progress will be lost.
  1192. Default: <em>false</em>
  1193. </p>
  1194. </dd>
  1195. <dt>
  1196. <strong>--async-dns</strong>[=<em>true</em>|<em>false</em>]
  1197. </dt>
  1198. <dd>
  1199. <p>
  1200. Enable asynchronous DNS.
  1201. Default: <em>true</em>
  1202. </p>
  1203. </dd>
  1204. <dt>
  1205. <strong>--auto-file-renaming</strong>[=<em>true</em>|<em>false</em>]
  1206. </dt>
  1207. <dd>
  1208. <p>
  1209. Rename file name if the same file already exists.
  1210. This option works only in HTTP(S)/FTP download.
  1211. The new file name has a dot and a number(1..9999) appended.
  1212. Default: <em>true</em>
  1213. </p>
  1214. </dd>
  1215. <dt>
  1216. <strong>--auto-save-interval</strong>=SEC
  1217. </dt>
  1218. <dd>
  1219. <p>
  1220. Save a control file(*.aria2) every SEC seconds.
  1221. If <em>0</em> is given, a control file is not saved during download. aria2 saves a
  1222. control file when it stops regardless of the value.
  1223. The possible values are between <em>0</em> to <em>600</em>.
  1224. Default: <em>60</em>
  1225. </p>
  1226. </dd>
  1227. <dt>
  1228. <strong>--conf-path</strong>=PATH
  1229. </dt>
  1230. <dd>
  1231. <p>
  1232. Change the configuration file path to PATH.
  1233. Default: <em>$HOME/.aria2/aria2.conf</em>
  1234. </p>
  1235. </dd>
  1236. <dt>
  1237. <strong>-D</strong>, <strong>--daemon</strong>
  1238. </dt>
  1239. <dd>
  1240. <p>
  1241. Run as daemon.
  1242. </p>
  1243. </dd>
  1244. <dt>
  1245. <strong>--enable-direct-io</strong>[=<em>true</em>|<em>false</em>]
  1246. </dt>
  1247. <dd>
  1248. <p>
  1249. Enable directI/O, which lowers cpu usage while allocating/checking files.
  1250. Turn off if you encounter any error.
  1251. Default: <em>false</em>
  1252. </p>
  1253. </dd>
  1254. <dt>
  1255. <strong>--file-allocation</strong>=METHOD
  1256. </dt>
  1257. <dd>
  1258. <p>
  1259. Specify file allocation method. METHOD is either <em>none</em> or <em>prealloc</em>.
  1260. <em>none</em> doesn't pre-allocate file space. <em>prealloc</em> pre-allocates file space
  1261. before download begins. This may take some time depending on the size of the
  1262. file.
  1263. Default: <em>prealloc</em>
  1264. </p>
  1265. </dd>
  1266. <dt>
  1267. <strong>--log-level</strong>=LEVEL
  1268. </dt>
  1269. <dd>
  1270. <p>
  1271. Set log level to output.
  1272. LEVEL is either <em>debug</em>, <em>info</em>, <em>notice</em>, <em>warn</em> or <em>error</em>.
  1273. Default: <em>debug</em>
  1274. </p>
  1275. </dd>
  1276. <dt>
  1277. <strong>--summary-interval</strong>=SEC
  1278. </dt>
  1279. <dd>
  1280. <p>
  1281. Set interval in seconds to output download progress summary.
  1282. Setting <em>0</em> suppresses the output.
  1283. Default: <em>60</em>
  1284. </p>
  1285. </dd>
  1286. </dl></div>
  1287. <div class="admonitionblock">
  1288. <table><tr>
  1289. <td class="icon">
  1290. <div class="title">Note</div>
  1291. </td>
  1292. <td class="content">In multi file torrent, the files adjacent forward to the specified files
  1293. are also allocated if they share a same piece.</td>
  1294. </tr></table>
  1295. </div>
  1296. <div class="vlist"><dl>
  1297. <dt>
  1298. <strong>-Z</strong>, <strong>--force-sequential</strong>[=<em>true</em>|<em>false</em>]
  1299. </dt>
  1300. <dd>
  1301. <p>
  1302. Fetch URIs in the command-line sequentially and download each URI in a
  1303. separate session, like the usual command-line download utilities.
  1304. Default: <em>false</em>
  1305. </p>
  1306. </dd>
  1307. <dt>
  1308. <strong>--max-download-limit</strong>=SPEED
  1309. </dt>
  1310. <dd>
  1311. <p>
  1312. Set max download speed in bytes per sec. <em>0</em> means unrestricted.
  1313. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1314. Default: <em>0</em>
  1315. </p>
  1316. </dd>
  1317. <dt>
  1318. <strong>--no-conf</strong>
  1319. </dt>
  1320. <dd>
  1321. <p>
  1322. Disable loading aria2.conf file.
  1323. </p>
  1324. </dd>
  1325. <dt>
  1326. <strong>--no-file-allocation-limit</strong>=SIZE
  1327. </dt>
  1328. <dd>
  1329. <p>
  1330. No file allocation is made for files whose size is smaller than SIZE.
  1331. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1332. Default: <em>5M</em>
  1333. </p>
  1334. </dd>
  1335. <dt>
  1336. <strong>-P</strong>, <strong>--parameterized-uri</strong>[=<em>true</em>|<em>false</em>]
  1337. </dt>
  1338. <dd>
  1339. <p>
  1340. Enable parameterized URI support.
  1341. You can specify set of parts: <em>http://{sv1,sv2,sv3}/foo.iso</em>.
  1342. Also you can specify numeric sequences with step counter:
  1343. <em>http://host/image[000-100:2].img</em>.
  1344. A step counter can be omitted.
  1345. If all URIs do not point to the same file, such as the second example above,
  1346. -Z option is required.
  1347. Default: <em>false</em>
  1348. </p>
  1349. </dd>
  1350. <dt>
  1351. <strong>-q</strong>, <strong>--quiet</strong>[=<em>true</em>|<em>false</em>]
  1352. </dt>
  1353. <dd>
  1354. <p>
  1355. Make aria2 quite (no console output).
  1356. Default: <em>false</em>
  1357. </p>
  1358. </dd>
  1359. <dt>
  1360. <strong>--realtime-chunk-checksum</strong>=<em>true</em>|<em>false</em>
  1361. </dt>
  1362. <dd>
  1363. <p>
  1364. Validate chunk of data by calculating checkusm while download a file if
  1365. chunk checksums are provided. Currently Metalink is the only way to to
  1366. provide chunk checksums.
  1367. Default: <em>true</em>
  1368. </p>
  1369. </dd>
  1370. <dt>
  1371. <strong>--stop</strong>=SEC
  1372. </dt>
  1373. <dd>
  1374. <p>
  1375. Stop application after SEC seconds has passed.
  1376. If <em>0</em> is given, this feature is disabled.
  1377. Default: <em>0</em>
  1378. </p>
  1379. </dd>
  1380. <dt>
  1381. <strong>-v</strong>, <strong>--version</strong>
  1382. </dt>
  1383. <dd>
  1384. <p>
  1385. Print the version number, copyright and the configuration information and
  1386. exit.
  1387. </p>
  1388. </dd>
  1389. </dl></div>
  1390. <h3 id="_url_torrent_file_metalink_file">URL, TORRENT_FILE, METALINK_FILE</h3><div style="clear:left"></div>
  1391. <div class="para"><p>You can specify multiple URLs in command-line.
  1392. Unless you specify <strong>-Z</strong> option, all URLs must point to the same file or downloading will fail.</p></div>
  1393. <div class="para"><p>You can also specify arbitrary number of torrent files and metalink files
  1394. stored in a local drive. Please note that they are always treated as a
  1395. separate download.</p></div>
  1396. <div class="para"><p>You can specify both torrent file with -T option and URLs. By doing this,
  1397. download a file from both torrent swarm and HTTP(S)/FTP server at the same time,
  1398. while the data from HTTP(S)/FTP are uploaded to the torrent swarm. Note that
  1399. only single file torrent can be integrated with HTTP(S)/FTP.</p></div>
  1400. <div class="admonitionblock">
  1401. <table><tr>
  1402. <td class="icon">
  1403. <div class="title">Note</div>
  1404. </td>
  1405. <td class="content">Make sure that URL is quoted with single(') or double(") quotation if it
  1406. contains "&amp;" or any characters that have special meaning in shell.</td>
  1407. </tr></table>
  1408. </div>
  1409. </div>
  1410. <h2 id="_examples">EXAMPLES</h2>
  1411. <div class="sectionbody">
  1412. <h3 id="_http_ftp_segmented_download">HTTP/FTP Segmented Download</h3><div style="clear:left"></div>
  1413. <h4 id="_download_a_file">Download a file</h4>
  1414. <div class="listingblock">
  1415. <div class="content">
  1416. <pre><tt>aria2c http://host/file.zip</tt></pre>
  1417. </div></div>
  1418. <div class="admonitionblock">
  1419. <table><tr>
  1420. <td class="icon">
  1421. <div class="title">Note</div>
  1422. </td>
  1423. <td class="content">aria2 uses 5 connections to download 1 file by default.</td>
  1424. </tr></table>
  1425. </div>
  1426. <h4 id="_download_a_file_using_1_connection">Download a file using 1 connection</h4>
  1427. <div class="listingblock">
  1428. <div class="content">
  1429. <pre><tt>aria2c -s1 http://host/file.zip</tt></pre>
  1430. </div></div>
  1431. <div class="admonitionblock">
  1432. <table><tr>
  1433. <td class="icon">
  1434. <div class="title">Note</div>
  1435. </td>
  1436. <td class="content">aria2 uses 5 connections to download 1 file by default.
  1437. -s1 limtis the number of connections to just 1.</td>
  1438. </tr></table>
  1439. </div>
  1440. <div class="admonitionblock">
  1441. <table><tr>
  1442. <td class="icon">
  1443. <div class="title">Note</div>
  1444. </td>
  1445. <td class="content">To pause a download, press Ctrl-C. You can resume the transfer by running aria2c with the same argument at the same directory. You can change URLs as long as they are pointing to the same file.</td>
  1446. </tr></table>
  1447. </div>
  1448. <h4 id="_download_a_file_from_2_different_http_servers">Download a file from 2 different HTTP servers</h4>
  1449. <div class="listingblock">
  1450. <div class="content">
  1451. <pre><tt>aria2c http://host/file.zip http://mirror/file.zip</tt></pre>
  1452. </div></div>
  1453. <h4 id="_download_a_file_from_http_and_ftp_servers">Download a file from HTTP and FTP servers</h4>
  1454. <div class="listingblock">
  1455. <div class="content">
  1456. <pre><tt>aria2c http://host1/file.zip ftp://host2/file.zip</tt></pre>
  1457. </div></div>
  1458. <h4 id="_download_files_listed_in_a_file_concurrently">Download files listed in a file concurrently</h4>
  1459. <div class="listingblock">
  1460. <div class="content">
  1461. <pre><tt>aria2c -ifiles.txt -j2</tt></pre>
  1462. </div></div>
  1463. <div class="admonitionblock">
  1464. <table><tr>
  1465. <td class="icon">
  1466. <div class="title">Note</div>
  1467. </td>
  1468. <td class="content">-j option specifies the number of parallel downloads.</td>
  1469. </tr></table>
  1470. </div>
  1471. <h4 id="_using_proxy">Using proxy</h4>
  1472. <div class="para"><p>For HTTP:</p></div>
  1473. <div class="listingblock">
  1474. <div class="content">
  1475. <pre><tt>aria2c --http-proxy=http://proxy:8080 http://host/file</tt></pre>
  1476. </div></div>
  1477. <div class="para"><p>For FTP:</p></div>
  1478. <div class="listingblock">
  1479. <div class="content">
  1480. <pre><tt>aria2c --ftp-proxy=http://proxy:8080 ftp://host/file</tt></pre>
  1481. </div></div>
  1482. <div class="admonitionblock">
  1483. <table><tr>
  1484. <td class="icon">
  1485. <div class="title">Note</div>
  1486. </td>
  1487. <td class="content">See <strong>--http-proxy</strong>, <strong>--https-proxy</strong>, <strong>--ftp-proxy</strong> and <strong>--all-proxy</strong> for
  1488. details.
  1489. You can specify proxy in the environment variables. See ENVIRONMENT section.</td>
  1490. </tr></table>
  1491. </div>
  1492. <h4 id="_proxy_with_authorization">Proxy with authorization</h4>
  1493. <div class="listingblock">
  1494. <div class="content">
  1495. <pre><tt>aria2c --http-proxy=http://username:password@proxy:8080 http://host/file</tt></pre>
  1496. </div></div>
  1497. <h3 id="_metalink_download">Metalink Download</h3><div style="clear:left"></div>
  1498. <h4 id="_download_files_with_remote_metalink">Download files with remote Metalink</h4>
  1499. <div class="listingblock">
  1500. <div class="content">
  1501. <pre><tt>aria2c --follow-metalink=mem http://host/file.metalink</tt></pre>
  1502. </div></div>
  1503. <h4 id="_download_using_a_local_metalink_file">Download using a local metalink file</h4>
  1504. <div class="listingblock">
  1505. <div class="content">
  1506. <pre><tt>aria2c -p --lowest-speed-limit=4000 file.metalink</tt></pre>
  1507. </div></div>
  1508. <div class="admonitionblock">
  1509. <table><tr>
  1510. <td class="icon">
  1511. <div class="title">Note</div>
  1512. </td>
  1513. <td class="content">To pause a download, press Ctrl-C.
  1514. You can resume the transfer by running aria2c with the same argument at the same
  1515. directory.</td>
  1516. </tr></table>
  1517. </div>
  1518. <h4 id="_download_several_local_metalink_files">Download several local metalink files</h4>
  1519. <div class="listingblock">
  1520. <div class="content">
  1521. <pre><tt>aria2c -j2 file1.metalink file2.metalink</tt></pre>
  1522. </div></div>
  1523. <h4 id="_download_only_selected_files_using_index">Download only selected files using index</h4>
  1524. <div class="listingblock">
  1525. <div class="content">
  1526. <pre><tt>aria2c --select-file=1-4,8 file.metalink</tt></pre>
  1527. </div></div>
  1528. <div class="admonitionblock">
  1529. <table><tr>
  1530. <td class="icon">
  1531. <div class="title">Note</div>
  1532. </td>
  1533. <td class="content">The index is printed to the console using -S option.</td>
  1534. </tr></table>
  1535. </div>
  1536. <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>
  1537. <div class="listingblock">
  1538. <div class="content">
  1539. <pre><tt>aria2c --metalink-location=JP,US --metalink-version=1.1 --metalink-language=en-US file.metalink</tt></pre>
  1540. </div></div>
  1541. <h3 id="_bittorrent_download">BitTorrent Download</h3><div style="clear:left"></div>
  1542. <h4 id="_download_files_from_remote_bittorrent_file">Download files from remote BitTorrent file</h4>
  1543. <div class="listingblock">
  1544. <div class="content">
  1545. <pre><tt>aria2c --follow-torrent=mem http://host/file.torrent</tt></pre>
  1546. </div></div>
  1547. <h4 id="_download_using_a_local_torrent_file">Download using a local torrent file</h4>
  1548. <div class="listingblock">
  1549. <div class="content">
  1550. <pre><tt>aria2c --max-upload-limit=40K file.torrent</tt></pre>
  1551. </div></div>
  1552. <div class="admonitionblock">
  1553. <table><tr>
  1554. <td class="icon">
  1555. <div class="title">Note</div>
  1556. </td>
  1557. <td class="content">--max-upload-limit specifies the max of upload rate.</td>
  1558. </tr></table>
  1559. </div>
  1560. <div class="admonitionblock">
  1561. <table><tr>
  1562. <td class="icon">
  1563. <div class="title">Note</div>
  1564. </td>
  1565. <td class="content">To pause a download, press Ctrl-C. You can resume the transfer by run aria2c with the same argument at the same directory.</td>
  1566. </tr></table>
  1567. </div>
  1568. <h4 id="_download_2_torrents">Download 2 torrents</h4>
  1569. <div class="listingblock">
  1570. <div class="content">
  1571. <pre><tt>aria2c -j2 file1.torrent file2.torrent</tt></pre>
  1572. </div></div>
  1573. <h4 id="_download_a_file_using_torrent_and_http_ftp_server">Download a file using torrent and HTTP/FTP server</h4>
  1574. <div class="listingblock">
  1575. <div class="content">
  1576. <pre><tt>aria2c -Ttest.torrent http://host1/file ftp://host2/file</tt></pre>
  1577. </div></div>
  1578. <div class="admonitionblock">
  1579. <table><tr>
  1580. <td class="icon">
  1581. <div class="title">Note</div>
  1582. </td>
  1583. <td class="content">Downloading multi file torrent with HTTP/FTP is not supported.</td>
  1584. </tr></table>
  1585. </div>
  1586. <h4 id="_download_only_selected_files_using_index_usually_called_selectable_download">Download only selected files using index(usually called "selectable download")</h4>
  1587. <div class="listingblock">
  1588. <div class="content">
  1589. <pre><tt>aria2c --select-file=1-4,8 file.torrent</tt></pre>
  1590. </div></div>
  1591. <div class="admonitionblock">
  1592. <table><tr>
  1593. <td class="icon">
  1594. <div class="title">Note</div>
  1595. </td>
  1596. <td class="content">The index is printed to the console using -S option.</td>
  1597. </tr></table>
  1598. </div>
  1599. <h4 id="_change_the_listening_port_for_incoming_peer">Change the listening port for incoming peer</h4>
  1600. <div class="listingblock">
  1601. <div class="content">
  1602. <pre><tt>aria2c --listen-port=7000-7001,8000 file.torrent</tt></pre>
  1603. </div></div>
  1604. <div class="admonitionblock">
  1605. <table><tr>
  1606. <td class="icon">
  1607. <div class="title">Note</div>
  1608. </td>
  1609. <td class="content">Since aria2 doesn't configure firewall or router for port forwarding, it's up
  1610. to you to do it manually.</td>
  1611. </tr></table>
  1612. </div>
  1613. <h4 id="_specify_the_condition_to_stop_program_after_torrent_download_finished">Specify the condition to stop program after torrent download finished</h4>
  1614. <div class="listingblock">
  1615. <div class="content">
  1616. <pre><tt>aria2c --seed-time=120 --seed-ratio=1.0 file.torrent</tt></pre>
  1617. </div></div>
  1618. <div class="admonitionblock">
  1619. <table><tr>
  1620. <td class="icon">
  1621. <div class="title">Note</div>
  1622. </td>
  1623. <td class="content">In the above example, the program exists when the 120 minutes has elapsed since download completed or seed ratio reaches 1.0.</td>
  1624. </tr></table>
  1625. </div>
  1626. <h4 id="_throttle_upload_speed">Throttle upload speed</h4>
  1627. <div class="listingblock">
  1628. <div class="content">
  1629. <pre><tt>aria2c --max-upload-limit=100K file.torrent</tt></pre>
  1630. </div></div>
  1631. <h4 id="_enable_dht">Enable DHT</h4>
  1632. <div class="listingblock">
  1633. <div class="content">
  1634. <pre><tt>aria2c --enable-dht --dht-listen-port=6881 file.torrent</tt></pre>
  1635. </div></div>
  1636. <div class="admonitionblock">
  1637. <table><tr>
  1638. <td class="icon">
  1639. <div class="title">Note</div>
  1640. </td>
  1641. <td class="content">DHT uses udp port. Since aria2 doesn't configure firewall or router for port
  1642. forwarding, it's up to you to do it manually.</td>
  1643. </tr></table>
  1644. </div>
  1645. <h3 id="_more_advanced_http_features">More advanced HTTP features</h3><div style="clear:left"></div>
  1646. <h4 id="_load_cookies">Load cookies</h4>
  1647. <div class="listingblock">
  1648. <div class="content">
  1649. <pre><tt>aria2c --load-cookies=cookies.txt http://host/file.zip</tt></pre>
  1650. </div></div>
  1651. <div class="admonitionblock">
  1652. <table><tr>
  1653. <td class="icon">
  1654. <div class="title">Note</div>
  1655. </td>
  1656. <td class="content">You can use Firefox/Mozilla's cookie file without modification.</td>
  1657. </tr></table>
  1658. </div>
  1659. <h4 id="_resume_download_started_by_web_browsers_or_another_programs">Resume download started by web browsers or another programs</h4>
  1660. <div class="listingblock">
  1661. <div class="content">
  1662. <pre><tt>aria2c -c -s2 http://host/partiallydownloadedfile.zip</tt></pre>
  1663. </div></div>
  1664. <h4 id="_client_certificate_authorization_for_ssl_tls">Client certificate authorization for SSL/TLS</h4>
  1665. <div class="listingblock">
  1666. <div class="content">
  1667. <pre><tt>aria2c --certificate=/path/to/mycert.pem --private-key=/path/to/mykey.pem https://host/file</tt></pre>
  1668. </div></div>
  1669. <div class="admonitionblock">
  1670. <table><tr>
  1671. <td class="icon">
  1672. <div class="title">Note</div>
  1673. </td>
  1674. <td class="content">The file specified in <strong>--private-key</strong> must be decrypted. The behavior when
  1675. encrypted one is given is undefined.</td>
  1676. </tr></table>
  1677. </div>
  1678. <h4 id="_verify_peer_in_ssl_tls_using_given_ca_certificates">Verify peer in SSL/TLS using given CA certificates</h4>
  1679. <div class="listingblock">
  1680. <div class="content">
  1681. <pre><tt>aria2c --ca-certificate=/path/to/ca-certificates.crt --check-certificate https://host/file</tt></pre>
  1682. </div></div>
  1683. <h3 id="_and_more_advanced_features">And more advanced features</h3><div style="clear:left"></div>
  1684. <h4 id="_throttle_download_speed">Throttle download speed</h4>
  1685. <div class="listingblock">
  1686. <div class="content">
  1687. <pre><tt>aria2c --max-download-limit=100K file.metalink</tt></pre>
  1688. </div></div>
  1689. <h4 id="_repair_a_damaged_download_using_check_integrity_option">Repair a damaged download using --check-integrity option</h4>
  1690. <div class="listingblock">
  1691. <div class="content">
  1692. <pre><tt>aria2c --check-integrity=true file.metalink</tt></pre>
  1693. </div></div>
  1694. <div class="admonitionblock">
  1695. <table><tr>
  1696. <td class="icon">
  1697. <div class="title">Note</div>
  1698. </td>
  1699. <td class="content">This option is only available used with BitTorrent or metalink with chunk
  1700. checksums.</td>
  1701. </tr></table>
  1702. </div>
  1703. <h4 id="_drop_connection_if_download_speed_is_lower_than_specified_value">Drop connection if download speed is lower than specified value</h4>
  1704. <div class="listingblock">
  1705. <div class="content">
  1706. <pre><tt>aria2c --lowest-speed-limit=10K file.metalink</tt></pre>
  1707. </div></div>
  1708. <h4 id="_parameterized_uri_support">Parameterized URI support</h4>
  1709. <div class="para"><p>You can specify set of parts:</p></div>
  1710. <div class="listingblock">
  1711. <div class="content">
  1712. <pre><tt>aria2c -P http://{host1,host2,host3}/file.iso</tt></pre>
  1713. </div></div>
  1714. <div class="para"><p>You can specify numeric sequence:</p></div>
  1715. <div class="listingblock">
  1716. <div class="content">
  1717. <pre><tt>aria2c -Z -P http://host/image[000-100].png</tt></pre>
  1718. </div></div>
  1719. <div class="admonitionblock">
  1720. <table><tr>
  1721. <td class="icon">
  1722. <div class="title">Note</div>
  1723. </td>
  1724. <td class="content">-Z option is required if the all URIs don't point to the same file, such as the above example.</td>
  1725. </tr></table>
  1726. </div>
  1727. <div class="para"><p>You can specify step counter:</p></div>
  1728. <div class="listingblock">
  1729. <div class="content">
  1730. <pre><tt>aria2c -Z -P http://host/image[A-Z:2].png</tt></pre>
  1731. </div></div>
  1732. <h4 id="_parallel_downloads_of_arbitrary_number_of_url_metalink_torrent">Parallel downloads of arbitrary number of URL,metalink,torrent</h4>
  1733. <div class="listingblock">
  1734. <div class="content">
  1735. <pre><tt>aria2c -j3 -Z http://host/file1 file2.torrent file3.metalink</tt></pre>
  1736. </div></div>
  1737. <h4 id="_bittorrent_encryption">BitTorrent Encryption</h4>
  1738. <div class="para"><p>Encrypt whole payload using ARC4:</p></div>
  1739. <div class="listingblock">
  1740. <div class="content">
  1741. <pre><tt>aria2c --bt-min-crypto-level=arc4 --bt-require-crypto=true file.torrent</tt></pre>
  1742. </div></div>
  1743. </div>
  1744. <h2 id="_resume_download">RESUME DOWNLOAD</h2>
  1745. <div class="sectionbody">
  1746. <div class="para"><p>Usually, you can resume transfer by just issuing same command(aria2c URL)
  1747. if the previous transfer is made by aria2.</p></div>
  1748. <div class="para"><p>If the previous transfer is made by a browser or wget like sequencial
  1749. download manager, then use -c option to continue the transfer(aria2c -c URL).</p></div>
  1750. </div>
  1751. <h2 id="_control_file">CONTROL FILE</h2>
  1752. <div class="sectionbody">
  1753. <div class="para"><p>aria2 uses a control file to keep track the progress of download.
  1754. A control file is placed at the same directory of the dowloading file and
  1755. its filename is the filename of downloading file with ".aria2" appended.
  1756. For example, if you are downloading file.zip, then the control file should be
  1757. file.zip.aria2.
  1758. (There is a exception for this naming convention.
  1759. If you are downloading a multi torrent, its control file is the "top directory"
  1760. name of the torrent with ".aria2" appended.
  1761. The "top directory" name is a value of "name" key in "info" directory in a torrent file.)</p></div>
  1762. <div class="para"><p>Usually a control file is deleted once download completed.
  1763. If aria2 decides that download cannot be resumed(for example, when downloading
  1764. a file from a HTTP server which doesn't support resume), a control file is
  1765. not created.</p></div>
  1766. <div class="para"><p>Normally if you lose a control file, you cannot resume download.
  1767. But if you have a torrent or metalink with chunk checksums for the file,
  1768. you can resume the download without a control file by giving
  1769. --check-integrity=true option to aria2c in command-line.</p></div>
  1770. </div>
  1771. <h2 id="_seeding_downloaded_file_in_bittorrent">SEEDING DOWNLOADED FILE IN BITTORRENT</h2>
  1772. <div class="sectionbody">
  1773. <div class="para"><p>You can seed downloaded file using --check-integrity=true option.</p></div>
  1774. <div class="listingblock">
  1775. <div class="content">
  1776. <pre><tt>aria2c --check-integrity=true file.torrent</tt></pre>
  1777. </div></div>
  1778. </div>
  1779. <h2 id="_server_performance_profile">SERVER PERFORMANCE PROFILE</h2>
  1780. <div class="sectionbody">
  1781. <div class="para"><p>This section describes the format of server performance profile.
  1782. The file is plain text and each line has several NAME=VALUE pair, delimited by
  1783. comma.
  1784. Currently following NAMEs are recognized:</p></div>
  1785. <div class="vlist"><dl>
  1786. <dt>
  1787. host
  1788. </dt>
  1789. <dd>
  1790. <p>
  1791. Hostname of the server. Required.
  1792. </p>
  1793. </dd>
  1794. <dt>
  1795. protocol
  1796. </dt>
  1797. <dd>
  1798. <p>
  1799. Protocol for this profile, such as ftp, http. Required.
  1800. </p>
  1801. </dd>
  1802. <dt>
  1803. dl_speed
  1804. </dt>
  1805. <dd>
  1806. <p>
  1807. The average download speed observed in the previous download in bytes per sec.
  1808. Required.
  1809. </p>
  1810. </dd>
  1811. <dt>
  1812. last_updated
  1813. </dt>
  1814. <dd>
  1815. <p>
  1816. Last contact time in GMT with this server, specified in the seconds from the
  1817. Epoch. Required.
  1818. </p>
  1819. </dd>
  1820. <dt>
  1821. status
  1822. </dt>
  1823. <dd>
  1824. <p>
  1825. ERROR is set when server cannot be reached or out-of-service or timeout
  1826. occurred. Otherwise, OK is set.
  1827. </p>
  1828. </dd>
  1829. </dl></div>
  1830. <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 above; they are simply ignored.</p></div>
  1831. <div class="para"><p>An example is follow:</p></div>
  1832. <div class="listingblock">
  1833. <div class="content">
  1834. <pre><tt>host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  1835. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR</tt></pre>
  1836. </div></div>
  1837. </div>
  1838. <h2 id="_files">FILES</h2>
  1839. <div class="sectionbody">
  1840. <h3 id="_aria2_conf">aria2.conf</h3><div style="clear:left"></div>
  1841. <div class="para"><p>User configuration file.
  1842. It must be placed under $HOME/.aria2 and must be named as aria2.conf.
  1843. In each line, there is 1 parameter whose syntax is name=value pair,
  1844. where name is the long command-line option name without <em>--</em> prefix.
  1845. The lines beginning <em>#</em> are treated as comments.</p></div>
  1846. <div class="listingblock">
  1847. <div class="content">
  1848. <pre><tt># sample configuration file for aria2c
  1849. listen-port=60000
  1850. dht-listen-port=60000
  1851. seed-ratio=1.0
  1852. max-upload-limit=50K
  1853. ftp-pasv=true</tt></pre>
  1854. </div></div>
  1855. <h3 id="_dht_dat">dht.dat</h3><div style="clear:left"></div>
  1856. <div class="para"><p>By default, the routing table of DHT is saved to the path $HOME/.aria2/dht.dat.</p></div>
  1857. </div>
  1858. <h2 id="_environment">ENVIRONMENT</h2>
  1859. <div class="sectionbody">
  1860. <div class="para"><p>aria2 recognizes the following environment variables.</p></div>
  1861. <div class="vlist"><dl>
  1862. <dt>
  1863. http_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1864. </dt>
  1865. <dd>
  1866. <p>
  1867. Specify proxy server for use in HTTP.
  1868. Overrides http-proxy value in configuration file.
  1869. The command-line option <strong>--http-proxy</strong> overrides this value.
  1870. </p>
  1871. </dd>
  1872. <dt>
  1873. https_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1874. </dt>
  1875. <dd>
  1876. <p>
  1877. Specify proxy server for use in HTTPS.
  1878. Overrides https-proxy value in configuration file.
  1879. The command-line option <strong>--https-proxy</strong> overrides this value.
  1880. </p>
  1881. </dd>
  1882. <dt>
  1883. ftp_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1884. </dt>
  1885. <dd>
  1886. <p>
  1887. Specify proxy server for use in FTP.
  1888. Overrides ftp-proxy value in configuration file.
  1889. The command-line option <strong>--ftp-proxy</strong> overrides this value.
  1890. </p>
  1891. </dd>
  1892. <dt>
  1893. all_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1894. </dt>
  1895. <dd>
  1896. <p>
  1897. Specify proxy server for use if no protocol-specific proxy is specified.
  1898. Overrides all-proxy value in configuration file.
  1899. The command-line option <strong>--all-proxy</strong> overrides this value.
  1900. </p>
  1901. </dd>
  1902. <dt>
  1903. no_proxy [DOMAIN,&#8230;]
  1904. </dt>
  1905. <dd>
  1906. <p>
  1907. Specify comma-separated hostname or domains to which proxy should not be used.
  1908. Overrides no-proxy value in configuration file.
  1909. The command-line option <strong>--no-proxy</strong> overrides this value.
  1910. </p>
  1911. </dd>
  1912. </dl></div>
  1913. </div>
  1914. <h2 id="_resources">RESOURCES</h2>
  1915. <div class="sectionbody">
  1916. <div class="para"><p>Project web site: <a href="http://aria2.sourceforge.net/">http://aria2.sourceforge.net/</a></p></div>
  1917. <div class="para"><p>metalink: <a href="http://www.metalinker.org/">http://www.metalinker.org/</a></p></div>
  1918. </div>
  1919. <h2 id="_reporting_bugs">REPORTING BUGS</h2>
  1920. <div class="sectionbody">
  1921. <div class="para"><p>Report bugs to Tatsuhiro Tsujikawa &lt;t-tujikawa at users.sourceforge.net&gt;</p></div>
  1922. </div>
  1923. <h2 id="_author">AUTHOR</h2>
  1924. <div class="sectionbody">
  1925. <div class="para"><p>Tatsuhiro Tsujikawa &lt;t-tujikawa at users.sourceforge.net&gt;</p></div>
  1926. </div>
  1927. <h2 id="_copyright">COPYRIGHT</h2>
  1928. <div class="sectionbody">
  1929. <div class="para"><p>Copyright &#169; 2006, 2008 Tatsuhiro Tsujikawa</p></div>
  1930. <div class="para"><p>This program is free software; you can redistribute it and/or modify
  1931. it under the terms of the GNU General Public License as published by
  1932. the Free Software Foundation; either version 2 of the License, or
  1933. (at your option) any later version.</p></div>
  1934. <div class="para"><p>This program is distributed in the hope that it will be useful,
  1935. but WITHOUT ANY WARRANTY; without even the implied warranty of
  1936. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1937. GNU General Public License for more details.</p></div>
  1938. <div class="para"><p>You should have received a copy of the GNU General Public License
  1939. along with this program; if not, write to the Free Software
  1940. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</p></div>
  1941. <div class="para"><p>In addition, as a special exception, the copyright holders give
  1942. permission to link the code of portions of this program with the
  1943. OpenSSL library under certain conditions as described in each
  1944. individual source file, and distribute linked combinations
  1945. including the two.
  1946. You must obey the GNU General Public License in all respects
  1947. for all of the code used other than OpenSSL. If you modify
  1948. file(s) with this exception, you may extend this exception to your
  1949. version of the file(s), but you are not obligated to do so. If you
  1950. do not wish to do so, delete this exception statement from your
  1951. version. If you delete this exception statement from all source
  1952. files in the program, then also delete it here.</p></div>
  1953. </div>
  1954. <div id="footer">
  1955. <div id="footer-text">
  1956. Last updated 2008-11-14 00:10:16 JST
  1957. </div>
  1958. </div>
  1959. </body>
  1960. </html>