aria2c.1 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986
  1. '\" t
  2. .\" Title: aria2c
  3. .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
  4. .\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
  5. .\" Date: 05/13/2009
  6. .\" Manual: [FIXME: manual]
  7. .\" Source: [FIXME: source]
  8. .\" Language: English
  9. .\"
  10. .TH "ARIA2C" "1" "05/13/2009" "[FIXME: source]" "[FIXME: manual]"
  11. .\" -----------------------------------------------------------------
  12. .\" * set default formatting
  13. .\" -----------------------------------------------------------------
  14. .\" disable hyphenation
  15. .nh
  16. .\" disable justification (adjust text to left margin only)
  17. .ad l
  18. .\" -----------------------------------------------------------------
  19. .\" * MAIN CONTENT STARTS HERE *
  20. .\" -----------------------------------------------------------------
  21. .SH "NAME"
  22. aria2c \- The ultra fast download utility
  23. .SH "SYNOPSIS"
  24. .sp
  25. aria2c [\fIOPTIONS\fR] [\fIURL\fR | \fITORRENT_FILE\fR | \fIMETALINK_FILE\fR]\&...
  26. .SH "DESCRIPTION"
  27. .sp
  28. 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\(cqs chunk checksums, aria2 automatically validates chunks of data while downloading a file like BitTorrent\&.
  29. .SH "OPTIONS"
  30. .SS "Basic Options"
  31. .PP
  32. \fB\-d\fR, \fB\-\-dir\fR=DIR
  33. .RS 4
  34. The directory to store the downloaded file\&.
  35. .RE
  36. .PP
  37. \fB\-i\fR, \fB\-\-input\-file\fR=FILE
  38. .RS 4
  39. Downloads URIs found in FILE\&. You can specify multiple URIs for a single entity: separate URIs on a single line using the TAB character\&. Reads input from stdin when
  40. \fI\-\fR
  41. is specified\&. The additional
  42. \fBout\fR
  43. and
  44. \fBdir\fR
  45. options can be specified after each line of URIs\&. This optional line must start with white space(s)\&. See
  46. \fBInput File\fR
  47. subsection for details\&.
  48. .RE
  49. .PP
  50. \fB\-l\fR, \fB\-\-log\fR=LOG
  51. .RS 4
  52. The file name of the log file\&. If
  53. \fI\-\fR
  54. is specified, log is written to stdout\&.
  55. .RE
  56. .PP
  57. \fB\-j\fR, \fB\-\-max\-concurrent\-downloads\fR=N
  58. .RS 4
  59. Set maximum number of parallel downloads for every static (HTTP/FTP) URL, torrent and metalink\&. See also
  60. \fB\-s\fR
  61. and
  62. \fB\-C\fR
  63. option\&. Default:
  64. \fI5\fR
  65. .RE
  66. .PP
  67. \fB\-V\fR, \fB\-\-check\-integrity\fR[=\fItrue\fR|\fIfalse\fR]
  68. .RS 4
  69. Check file integrity by validating piece hashes\&. This option has effect only in BitTorrent and Metalink downloads with chunk checksums\&. Use this option to re\-download a damaged portion of a file\&. Default:
  70. \fIfalse\fR
  71. .RE
  72. .PP
  73. \fB\-c\fR, \fB\-\-continue\fR
  74. .RS 4
  75. Continue downloading a partially downloaded file\&. Use this option to resume a download started by a web browser or another program which downloads files sequentially from the beginning\&. Currently this option is only applicable to HTTP(S)/FTP downloads\&.
  76. .RE
  77. .PP
  78. \fB\-h\fR, \fB\-\-help\fR[=CATEGORY]
  79. .RS 4
  80. Print usage and exit\&. The help messages are classified in several categories\&. For example, type "\fB\-\-help\fR=http" for detailed explanation for the options related to HTTP\&. If no matching category is found, search option name using a given word in middle match and print the result\&. Available Values:
  81. \fIbasic\fR,
  82. \fIadvanced\fR,
  83. \fIhttp\fR,
  84. \fIhttps\fR,
  85. \fIftp\fR,
  86. \fImetalink\fR,
  87. \fIbittorrent\fR,
  88. \fIall\fR
  89. Default:
  90. \fIbasic\fR
  91. .RE
  92. .SS "HTTP/FTP Options"
  93. .PP
  94. \fB\-\-all\-proxy\fR=PROXY
  95. .RS 4
  96. Use this proxy server for all protocols\&. You can override this setting and specify a proxy server for a particular protocol using
  97. \fB\-\-http\-proxy\fR,
  98. \fB\-\-https\-proxy\fR
  99. and
  100. \fB\-\-ftp\-proxy\fR
  101. options\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  102. .RE
  103. .PP
  104. \fB\-\-connect\-timeout\fR=SEC
  105. .RS 4
  106. Set the connect timeout in seconds to establish connection to HTTP/FTP/proxy server\&. After the connection is established, this option makes no effect and
  107. \fB\-\-timeout\fR
  108. option is used instead\&. Default:
  109. \fI60\fR
  110. .RE
  111. .PP
  112. \fB\-\-dry\-run\fR[=\fItrue\fR|\fIfalse\fR]
  113. .RS 4
  114. If
  115. \fItrue\fR
  116. is given, aria2 just checks whether the remote file is available and doesn\(cqt download data\&. This option has effect on HTTP/FTP download\&. BitTorrent downloads are canceled if
  117. \fItrue\fR
  118. is specified\&. Default:
  119. \fIfalse\fR
  120. .RE
  121. .PP
  122. \fB\-\-lowest\-speed\-limit\fR=SPEED
  123. .RS 4
  124. Close connection if download speed is lower than or equal to this value(bytes per sec)\&.
  125. \fI0\fR
  126. means aria2 does not have a lowest speed limit\&. You can append
  127. \fIK\fR
  128. or
  129. \fIM\fR(1K = 1024, 1M = 1024K)\&. This option does not affect BitTorrent downloads\&. Default:
  130. \fI0\fR
  131. .RE
  132. .PP
  133. \fB\-\-max\-file\-not\-found\fR=NUM
  134. .RS 4
  135. If aria2 receives \(oqfile not found\(cq status from the remote HTTP/FTP servers NUM times without getting a single byte, then force the download to fail\&. Specify
  136. \fI0\fR
  137. to disable this option\&. This options is effective only when using HTTP/FTP servers\&. Default:
  138. \fI0\fR
  139. .RE
  140. .PP
  141. \fB\-m\fR, \fB\-\-max\-tries\fR=N
  142. .RS 4
  143. Set number of tries\&.
  144. \fI0\fR
  145. means unlimited\&. Default:
  146. \fI5\fR
  147. .RE
  148. .PP
  149. \fB\-\-no\-proxy\fR=DOMAINS
  150. .RS 4
  151. Specify comma separated hostnames or domains where proxy should not be used\&.
  152. .RE
  153. .PP
  154. \fB\-o\fR, \fB\-\-out\fR=FILE
  155. .RS 4
  156. The file name of the downloaded file\&.
  157. .RE
  158. .if n \{\
  159. .sp
  160. .\}
  161. .RS 4
  162. .it 1 an-trap
  163. .nr an-no-space-flag 1
  164. .nr an-break-flag 1
  165. .br
  166. .ps +1
  167. \fBNote\fR
  168. .ps -1
  169. .br
  170. .sp
  171. In Metalink or BitTorrent download you cannot specify file name\&. The file name specified here is only used when the URLs fed to aria2 are done by command line without \fB\-i\fR, \fB\-Z\fR option\&. For example: aria2c \-o myfile\&.zip "http://mirror1/file\&.zip" "http://mirror2/file\&.zip"
  172. .sp .5v
  173. .RE
  174. .PP
  175. \fB\-\-proxy\-method\fR=METHOD
  176. .RS 4
  177. Set the method to use in proxy request\&.
  178. \fIMETHOD\fR
  179. is either
  180. \fIget\fR
  181. or
  182. \fItunnel\fR\&. HTTPS downloads always use
  183. \fItunnel\fR
  184. regardless of this option\&. Default:
  185. \fIget\fR
  186. .RE
  187. .PP
  188. \fB\-R\fR, \fB\-\-remote\-time\fR[=\fItrue\fR|\fIfalse\fR]
  189. .RS 4
  190. Retrieve timestamp of the remote file from the remote HTTP/FTP server and if it is available, apply it to the local file\&. Default:
  191. \fIfalse\fR
  192. .RE
  193. .PP
  194. \fB\-\-retry\-wait\fR=SEC
  195. .RS 4
  196. Set the seconds to wait to retry after an error has occured\&. Specify a value between
  197. \fI0\fR
  198. and
  199. \fI60\fR\&. Default:
  200. \fI5\fR
  201. .RE
  202. .PP
  203. \fB\-\-server\-stat\-of\fR=FILE
  204. .RS 4
  205. Specify the filename to which performance profile of the servers is saved\&. You can load saved data using
  206. \fB\-\-server\-stat\-if\fR
  207. option\&. See
  208. \fBServer Performance Profile\fR
  209. subsection below for file format\&.
  210. .RE
  211. .PP
  212. \fB\-\-server\-stat\-if\fR=FILE
  213. .RS 4
  214. Specify the filename to load performance profile of the servers\&. The loaded data will be used in some URI selector such as
  215. \fIfeedback\fR\&. See also
  216. \fB\-\-uri\-selector\fR
  217. option\&. See
  218. \fBServer Performance Profile\fR
  219. subsection below for file format\&.
  220. .RE
  221. .PP
  222. \fB\-\-server\-stat\-timeout\fR=SEC
  223. .RS 4
  224. Specifies timeout in seconds to invalidate performance profile of the servers since the last contact to them\&. Default:
  225. \fI86400\fR
  226. (24hours)
  227. .RE
  228. .PP
  229. \fB\-s\fR, \fB\-\-split\fR=N
  230. .RS 4
  231. Download a file using N connections\&. If more than N URLs are given, first N URLs are used and remaining URLs are used for backup\&. If less than N URLs are given, those URLs are used more than once so that N connections total are made simultaneously\&. Please see
  232. \fB\-j\fR
  233. option too\&. Please note that in Metalink download, this option has no effect and use
  234. \fB\-C\fR
  235. option instead\&. Default:
  236. \fI5\fR
  237. .RE
  238. .PP
  239. \fB\-t\fR, \fB\-\-timeout\fR=SEC
  240. .RS 4
  241. Set timeout in seconds\&. Default:
  242. \fI60\fR
  243. .RE
  244. .PP
  245. \fB\-\-uri\-selector\fR=SELECTOR
  246. .RS 4
  247. Specify URI selection algorithm\&. The possible values are
  248. \fIinorder\fR,
  249. \fIfeedback\fR
  250. and
  251. \fIadaptive\fR\&. If
  252. \fIinorder\fR
  253. is given, URI is tried in the order appeared in the URI list\&. If
  254. \fIfeedback\fR
  255. is given, aria2 uses download speed observed in the previous downloads and choose fastest server in the URI list\&. This also effectively skips dead mirrors\&. The observed download speed is a part of performance profile of servers mentioned in
  256. \fB\-\-server\-stat\-of\fR
  257. and
  258. \fB\-\-server\-stat\-if\fR
  259. options\&. If
  260. \fIadaptive\fR
  261. is given, selects one of the best mirrors for the first and reserved connections\&. For supplementary ones, it returns mirrors which has not been tested yet, and if each of them has already been tested, returns mirrors which has to be tested again\&. Otherwise, it doesn\(cqt select anymore mirrors\&. Like
  262. \fIfeedback\fR, it uses a performance profile of servers\&. Default:
  263. \fIfeedback\fR
  264. .RE
  265. .SS "HTTP Specific Options"
  266. .PP
  267. \fB\-\-ca\-certificate\fR=FILE
  268. .RS 4
  269. Use the certificate authorities in FILE to verify the peers\&. The certificate file must be in PEM format and can contain multiple CA certificates\&. Use
  270. \fB\-\-check\-certificate\fR
  271. option to enable verification\&.
  272. .RE
  273. .PP
  274. \fB\-\-certificate\fR=FILE
  275. .RS 4
  276. Use the client certificate in FILE\&. The certificate must be in PEM format\&. You may use
  277. \fB\-\-private\-key\fR
  278. option to specify the private key\&.
  279. .RE
  280. .PP
  281. \fB\-\-check\-certificate\fR[=\fItrue\fR|\fIfalse\fR]
  282. .RS 4
  283. Verify the peer using certificates specified in
  284. \fB\-\-ca\-certificate\fR
  285. option\&. Default:
  286. \fItrue\fR
  287. .RE
  288. .PP
  289. \fB\-\-http\-auth\-challenge\fR[=\fItrue\fR|\fIfalse\fR]
  290. .RS 4
  291. Send HTTP authorization header only when it is requested by the server\&. If
  292. \fIfalse\fR
  293. is set, then authorization header is always sent to the server\&. There is an exception: if username and password are embedded in URI, authorization header is always sent to the server regardless of this option\&. Default:
  294. \fIfalse\fR
  295. .RE
  296. .PP
  297. \fB\-\-http\-auth\-scheme\fR=SCHEME
  298. .RS 4
  299. Set HTTP authentication scheme\&. Currently,
  300. \fIbasic\fR
  301. is the only supported scheme\&. Default:
  302. \fIbasic\fR
  303. .RE
  304. .PP
  305. \fB\-\-http\-user\fR=USER
  306. .RS 4
  307. Set HTTP user\&. This affects all URLs\&.
  308. .RE
  309. .PP
  310. \fB\-\-http\-passwd\fR=PASSWD
  311. .RS 4
  312. Set HTTP password\&. This affects all URLs\&.
  313. .RE
  314. .PP
  315. \fB\-\-http\-proxy\fR=PROXY
  316. .RS 4
  317. Use this proxy server for HTTP\&. See also
  318. \fB\-\-all\-proxy\fR
  319. option\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  320. .RE
  321. .PP
  322. \fB\-\-https\-proxy\fR=PROXY
  323. .RS 4
  324. Use this proxy server for HTTPS\&. See also
  325. \fB\-\-all\-proxy\fR
  326. option\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  327. .RE
  328. .PP
  329. \fB\-\-private\-key\fR=FILE
  330. .RS 4
  331. Use the private key in FILE\&. The private key must be decrypted and in PEM format\&. The behavior when encrypted one is given is undefined\&. See also
  332. \fB\-\-certificate\fR
  333. option\&.
  334. .RE
  335. .PP
  336. \fB\-\-referer\fR=REFERER
  337. .RS 4
  338. Set Referer\&. This affects all URLs\&.
  339. .RE
  340. .PP
  341. \fB\-\-enable\-http\-keep\-alive\fR[=\fItrue\fR|\fIfalse\fR]
  342. .RS 4
  343. Enable HTTP/1\&.1 persistent connection\&. Default:
  344. \fItrue\fR
  345. .RE
  346. .PP
  347. \fB\-\-enable\-http\-pipelining\fR[=\fItrue\fR|\fIfalse\fR]
  348. .RS 4
  349. Enable HTTP/1\&.1 pipelining\&. Default:
  350. \fIfalse\fR
  351. .RE
  352. .PP
  353. \fB\-\-header\fR=HEADER
  354. .RS 4
  355. Append HEADER to HTTP request header\&. You can use this option repeatedly to specify more than one header: aria2c
  356. \fB\-\-header\fR="X\-A: b78"
  357. \fB\-\-header\fR="X\-B: 9J1" "http://host/file"
  358. .RE
  359. .PP
  360. \fB\-\-load\-cookies\fR=FILE
  361. .RS 4
  362. Load Cookies from FILE using the Firefox3 format (SQLite3) and the Mozilla/Firefox(1\&.x/2\&.x)/Netscape format\&.
  363. .RE
  364. .if n \{\
  365. .sp
  366. .\}
  367. .RS 4
  368. .it 1 an-trap
  369. .nr an-no-space-flag 1
  370. .nr an-break-flag 1
  371. .br
  372. .ps +1
  373. \fBNote\fR
  374. .ps -1
  375. .br
  376. .sp
  377. If aria2 is built without libsqlite3, then it doesn\(cqt support Firefox3 cookie format\&.
  378. .sp .5v
  379. .RE
  380. .PP
  381. \fB\-\-use\-head\fR[=\fItrue\fR|\fIfalse\fR]
  382. .RS 4
  383. Use HEAD method for the first request to the HTTP server\&. Default:
  384. \fItrue\fR
  385. .RE
  386. .PP
  387. \fB\-U\fR, \fB\-\-user\-agent\fR=USER_AGENT
  388. .RS 4
  389. Set user agent for HTTP(S) downloads\&.
  390. .RE
  391. .SS "FTP Specific Options"
  392. .PP
  393. \fB\-\-ftp\-user\fR=USER
  394. .RS 4
  395. Set FTP user\&. This affects all URLs\&. Default:
  396. \fIanonymous\fR
  397. .RE
  398. .PP
  399. \fB\-\-ftp\-passwd\fR=PASSWD
  400. .RS 4
  401. Set FTP password\&. This affects all URLs\&. Default:
  402. \fIARIA2USER@\fR
  403. .RE
  404. .PP
  405. \fB\-p\fR, \fB\-\-ftp\-pasv\fR[=\fItrue\fR|\fIfalse\fR]
  406. .RS 4
  407. Use the passive mode in FTP\&. If
  408. \fIfalse\fR
  409. is given, the active mode will be used\&. Default:
  410. \fItrue\fR
  411. .RE
  412. .PP
  413. \fB\-\-ftp\-proxy\fR=PROXY
  414. .RS 4
  415. Use this proxy server for FTP\&. See also
  416. \fB\-\-all\-proxy\fR
  417. option\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  418. .RE
  419. .PP
  420. \fB\-\-ftp\-type\fR=TYPE
  421. .RS 4
  422. Set FTP transfer type\&. TYPE is either
  423. \fIbinary\fR
  424. or
  425. \fIascii\fR\&. Default:
  426. \fIbinary\fR
  427. .RE
  428. .PP
  429. \fB\-\-ftp\-reuse\-connection\fR[=\fItrue\fR|\fIfalse\fR]
  430. .RS 4
  431. Reuse connection in FTP\&. Default:
  432. \fItrue\fR
  433. .RE
  434. .PP
  435. \fB\-n\fR, \fB\-\-no\-netrc\fR
  436. .RS 4
  437. Disables netrc support\&. netrc support is enabled by default\&.
  438. .RE
  439. .SS "BitTorrent/Metalink Options"
  440. .PP
  441. \fB\-\-select\-file\fR=INDEX\&...
  442. .RS 4
  443. Set file to download by specifying its index\&. You can find the file index using the
  444. \fB\-\-show\-files\fR
  445. option\&. Multiple indexes can be specified by using ",", for example:
  446. \fI3,6\fR\&. You can also use "\-" to specify a range:
  447. \fI1\-5\fR\&. "," and "\-" can be used together:
  448. \fI1\-5,8,9\fR\&. When used with the \-M option, index may vary depending on the query (see
  449. \fB\-\-metalink\-\fR* options)\&.
  450. .RE
  451. .if n \{\
  452. .sp
  453. .\}
  454. .RS 4
  455. .it 1 an-trap
  456. .nr an-no-space-flag 1
  457. .nr an-break-flag 1
  458. .br
  459. .ps +1
  460. \fBNote\fR
  461. .ps -1
  462. .br
  463. .sp
  464. In multi file torrent, the adjacent files specified by this option may also be downloaded\&. This is by design, not a bug\&. A single piece may include several files or part of files, and aria2 writes the piece to the appropriate files\&.
  465. .sp .5v
  466. .RE
  467. .PP
  468. \fB\-S\fR, \fB\-\-show\-files\fR
  469. .RS 4
  470. Print file listing of \&.torrent or \&.metalink file and exit\&. In case of \&.torrent file, additional information (infohash, piece length, etc) is also printed\&.
  471. .RE
  472. .SS "BitTorrent Specific Options"
  473. .PP
  474. \fB\-\-bt\-external\-ip\fR=IPADDRESS
  475. .RS 4
  476. Specify the external IP address to report to a BitTorrent tracker\&. Although this function is named "external", it can accept any kind of IP addresses\&. IPADDRESS must be a numeric IP address\&.
  477. .RE
  478. .PP
  479. \fB\-\-bt\-hash\-check\-seed\fR[=\fItrue\fR|\fIfalse\fR]
  480. .RS 4
  481. If
  482. \fItrue\fR
  483. is given, after hash check using
  484. \fB\-\-check\-integrity\fR
  485. option and file is complete, continue to seed file\&. If you want to check file and download it only when it is damaged or incomplete, set this option to
  486. \fIfalse\fR\&. This option has effect only on BitTorrent download\&. Default:
  487. \fItrue\fR
  488. .RE
  489. .PP
  490. \fB\-\-bt\-max\-open\-files\fR=NUM
  491. .RS 4
  492. Specify maximum number of files to open in each BitTorrent download\&. Default:
  493. \fI100\fR
  494. .RE
  495. .PP
  496. \fB\-\-bt\-max\-peers\fR=NUM
  497. .RS 4
  498. Specify the maximum number of peers per torrent\&.
  499. \fI0\fR
  500. means unlimited\&. See also
  501. \fB\-\-bt\-request\-peer\-speed\-limit\fR
  502. option\&. Default:
  503. \fI55\fR
  504. .RE
  505. .PP
  506. \fB\-\-bt\-min\-crypto\-level\fR=\fIplain\fR|\fIarc4\fR
  507. .RS 4
  508. Set minimum level of encryption method\&. If several encryption methods are provided by a peer, aria2 chooses the lowest one which satisfies the given level\&. Default:
  509. \fIplain\fR
  510. .RE
  511. .PP
  512. \fB\-\-bt\-require\-crypto\fR=\fItrue\fR|\fIfalse\fR
  513. .RS 4
  514. If true is given, aria2 doesn\(cqt accept and establish connection with legacy BitTorrent handshake(\e19BitTorrent protocol)\&. Thus aria2 always uses Obfuscation handshake\&. Default:
  515. \fIfalse\fR
  516. .RE
  517. .PP
  518. \fB\-\-bt\-request\-peer\-speed\-limit\fR=SPEED
  519. .RS 4
  520. If the whole download speed of every torrent is lower than SPEED, aria2 temporarily increases the number of peers to try for more download speed\&. Configuring this option with your preferred download speed can increase your download speed in some cases\&. You can append
  521. \fIK\fR
  522. or
  523. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  524. \fI50K\fR
  525. .RE
  526. .PP
  527. \fB\-\-bt\-seed\-unverified\fR[=\fItrue\fR|\fIfalse\fR]
  528. .RS 4
  529. Seed previously downloaded files without verifying piece hashes\&. Default:
  530. \fIfalse\fR
  531. .RE
  532. .PP
  533. \fB\-\-bt\-tracker\-interval\fR=SEC
  534. .RS 4
  535. Set the interval in seconds between tracker requests\&. This completely overrides interval value and aria2 just uses this value and ignores the min interval and interval value in the response of tracker\&. If
  536. \fI0\fR
  537. is set, aria2 determines interval based on the response of tracker and the download progress\&. Default:
  538. \fI0\fR
  539. .RE
  540. .PP
  541. \fB\-\-dht\-entry\-point\fR=HOST:PORT
  542. .RS 4
  543. Set host and port as an entry point to DHT network\&.
  544. .RE
  545. .PP
  546. \fB\-\-dht\-file\-path\fR=PATH
  547. .RS 4
  548. Change the DHT routing table file to PATH\&. Default:
  549. \fI$HOME/\&.aria2/dht\&.dat\fR
  550. .RE
  551. .PP
  552. \fB\-\-dht\-listen\-port\fR=PORT\&...
  553. .RS 4
  554. Set UDP listening port for DHT\&. Multiple ports can be specified by using ",", for example:
  555. \fI6881,6885\fR\&. You can also use "\-" to specify a range:
  556. \fI6881\-6999\fR\&. "," and "\-" can be used together\&. Default:
  557. \fI6881\-6999\fR
  558. .RE
  559. .if n \{\
  560. .sp
  561. .\}
  562. .RS 4
  563. .it 1 an-trap
  564. .nr an-no-space-flag 1
  565. .nr an-break-flag 1
  566. .br
  567. .ps +1
  568. \fBNote\fR
  569. .ps -1
  570. .br
  571. .sp
  572. Make sure that the specified ports are open for incoming UDP traffic\&.
  573. .sp .5v
  574. .RE
  575. .PP
  576. \fB\-\-enable\-dht\fR[=\fItrue\fR|\fIfalse\fR]
  577. .RS 4
  578. Enable DHT functionality\&. If a private flag is set in a torrent, aria2 doesn\(cqt use DHT for that download even if
  579. \fItrue\fR
  580. is given\&. Default:
  581. \fIfalse\fR
  582. .RE
  583. .PP
  584. \fB\-\-enable\-peer\-exchange\fR[=\fItrue\fR|\fIfalse\fR]
  585. .RS 4
  586. Enable Peer Exchange extension\&. If a private flag is set in a torrent, this feature is disabled for that download even if
  587. \fItrue\fR
  588. is given\&. Default:
  589. \fItrue\fR
  590. .RE
  591. .PP
  592. \fB\-\-follow\-torrent\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  593. .RS 4
  594. If
  595. \fItrue\fR
  596. or
  597. \fImem\fR
  598. is specified, when a file whose suffix is "\&.torrent" or content type is "application/x\-bittorrent" is downloaded, aria2 parses it as a torrent file and downloads files mentioned in it\&. If
  599. \fImem\fR
  600. is specified, a torrent file is not written to the disk, but is just kept in memory\&. If
  601. \fIfalse\fR
  602. is specified, the action mentioned above is not taken\&. Default:
  603. \fItrue\fR
  604. .RE
  605. .PP
  606. \fB\-O\fR, \fB\-\-index\-out\fR=INDEX=PATH
  607. .RS 4
  608. Set file path for file with index=INDEX\&. You can find the file index using the
  609. \fB\-\-show\-files\fR
  610. option\&. PATH is a relative path to the path specified in
  611. \fB\-\-dir\fR
  612. option\&. You can use this option multiple times\&. Using this option, you can specify the output filenames of BitTorrent downloads\&.
  613. .RE
  614. .PP
  615. \fB\-\-listen\-port\fR=PORT\&...
  616. .RS 4
  617. Set TCP port number for BitTorrent downloads\&. Multiple ports can be specified by using ",", for example:
  618. \fI6881,6885\fR\&. You can also use "\-" to specify a range:
  619. \fI6881\-6999\fR\&. "," and "\-" can be used together:
  620. \fI6881\-6889,6999\fR\&. Default:
  621. \fI6881\-6999\fR
  622. .RE
  623. .if n \{\
  624. .sp
  625. .\}
  626. .RS 4
  627. .it 1 an-trap
  628. .nr an-no-space-flag 1
  629. .nr an-break-flag 1
  630. .br
  631. .ps +1
  632. \fBNote\fR
  633. .ps -1
  634. .br
  635. .sp
  636. Make sure that the specified ports are open for incoming TCP traffic\&.
  637. .sp .5v
  638. .RE
  639. .PP
  640. \fB\-\-max\-overall\-upload\-limit\fR=SPEED
  641. .RS 4
  642. Set max overall upload speed in bytes/sec\&.
  643. \fI0\fR
  644. means unrestricted\&. You can append
  645. \fIK\fR
  646. or
  647. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the upload speed per torrent, use
  648. \fB\-\-max\-upload\-limit\fR
  649. option\&. Default:
  650. \fI0\fR
  651. .RE
  652. .PP
  653. \fB\-u\fR, \fB\-\-max\-upload\-limit\fR=SPEED
  654. .RS 4
  655. Set max upload speed per each torrent in bytes/sec\&.
  656. \fI0\fR
  657. means unrestricted\&. You can append
  658. \fIK\fR
  659. or
  660. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the overall upload speed, use
  661. \fB\-\-max\-overall\-upload\-limit\fR
  662. option\&. Default:
  663. \fI0\fR
  664. .RE
  665. .PP
  666. \fB\-\-peer\-id\-prefix\fR=PEERI_ID_PREFIX
  667. .RS 4
  668. Specify the prefix of peer ID\&. The peer ID in BitTorrent is 20 byte length\&. If more than 20 bytes are specified, only first 20 bytes are used\&. If less than 20 bytes are specified, the random alphabet characters are added to make it\(cqs length 20 bytes\&. Default:
  669. \fI\-aria2\-\fR
  670. .RE
  671. .PP
  672. \fB\-\-seed\-ratio\fR=RATIO
  673. .RS 4
  674. Specify share ratio\&. Seed completed torrents until share ratio reaches RATIO\&. You are strongly encouraged to specify equals or more than
  675. \fI1\&.0\fR
  676. here\&. Specify
  677. \fI0\&.0\fR
  678. if you intend to do seeding regardless of share ratio\&. If
  679. \fB\-\-seed\-time\fR
  680. option is specified along with this option, seeding ends when at least one of the conditions is satisfied\&. Default:
  681. \fI1\&.0\fR
  682. .RE
  683. .PP
  684. \fB\-\-seed\-time\fR=MINUTES
  685. .RS 4
  686. Specify seeding time in minutes\&. Also see the
  687. \fB\-\-seed\-ratio\fR
  688. option\&.
  689. .RE
  690. .PP
  691. \fB\-T\fR, \fB\-\-torrent\-file\fR=TORRENT_FILE
  692. .RS 4
  693. The path to the \&.torrent file\&. You are not required to use this option because you can specify a torrent file without \-T\&.
  694. .RE
  695. .SS "Metalink Specific Options"
  696. .PP
  697. \fB\-\-follow\-metalink\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  698. .RS 4
  699. If
  700. \fItrue\fR
  701. or
  702. \fImem\fR
  703. is specified, when a file whose suffix is "\&.metaink" or content type of "application/metalink+xml" is downloaded, aria2 parses it as a metalink file and downloads files mentioned in it\&. If
  704. \fImem\fR
  705. is specified, a metalink file is not written to the disk, but is just kept in memory\&. If
  706. \fIfalse\fR
  707. is specified, the action mentioned above is not taken\&. Default:
  708. \fItrue\fR
  709. .RE
  710. .PP
  711. \fB\-M\fR, \fB\-\-metalink\-file\fR=METALINK_FILE
  712. .RS 4
  713. The file path to \&.metalink file\&. You are not required to use this option because you can specify a metalink file without \-M\&.
  714. .RE
  715. .PP
  716. \fB\-C\fR, \fB\-\-metalink\-servers\fR=NUM_SERVERS
  717. .RS 4
  718. The number of servers to connect to simultaneously\&. Some Metalinks regulate the number of servers to connect\&. aria2 strictly respects them\&. This means that if Metalink defines the maxconnections attribute lower than NUM_SERVERS, then aria2 uses the value of maxconnections attribute instead of NUM_SERVERS\&. See also
  719. \fB\-s\fR
  720. and
  721. \fB\-j\fR
  722. options\&. Default:
  723. \fI5\fR
  724. .RE
  725. .PP
  726. \fB\-\-metalink\-language\fR=LANGUAGE
  727. .RS 4
  728. The language of the file to download\&.
  729. .RE
  730. .PP
  731. \fB\-\-metalink\-location\fR=LOCATION[,\&...]
  732. .RS 4
  733. The location of the preferred server\&. A comma\-delimited list of locations is acceptable, for example,
  734. \fIJP,US\fR\&.
  735. .RE
  736. .PP
  737. \fB\-\-metalink\-os\fR=OS
  738. .RS 4
  739. The operating system of the file to download\&.
  740. .RE
  741. .PP
  742. \fB\-\-metalink\-version\fR=VERSION
  743. .RS 4
  744. The version of the file to download\&.
  745. .RE
  746. .PP
  747. \fB\-\-metalink\-preferred\-protocol\fR=PROTO
  748. .RS 4
  749. Specify preferred protocol\&. The possible values are
  750. \fIhttp\fR,
  751. \fIhttps\fR,
  752. \fIftp\fR
  753. and
  754. \fInone\fR\&. Specify
  755. \fInone\fR
  756. to disable this feature\&. Default:
  757. \fInone\fR
  758. .RE
  759. .PP
  760. \fB\-\-metalink\-enable\-unique\-protocol\fR=\fItrue\fR|\fIfalse\fR
  761. .RS 4
  762. If
  763. \fItrue\fR
  764. is given and several protocols are available for a mirror in a metalink file, aria2 uses one of them\&. Use
  765. \fB\-\-metalink\-preferred\-protocol\fR
  766. option to specify the preference of protocol\&. Default:
  767. \fItrue\fR
  768. .RE
  769. .SS "XML\-RPC Options"
  770. .PP
  771. \fB\-\-enable\-xml\-rpc\fR[=\fItrue\fR|\fIfalse\fR]
  772. .RS 4
  773. Enable XML\-RPC server\&. It is strongly recommended to set username and password using
  774. \fB\-\-xml\-rpc\-user\fR
  775. and
  776. \fB\-\-xml\-rpc\-passwd\fR
  777. option\&. See also
  778. \fB\-\-xml\-rpc\-listen\-port\fR
  779. option\&. Default:
  780. \fIfalse\fR
  781. .RE
  782. .PP
  783. \fB\-\-xml\-rpc\-listen\-port\fR=PORT
  784. .RS 4
  785. Specify a port number for XML\-RPC server to listen to\&. Possible Values:
  786. \fI1024\fR\-\fI65535\fR
  787. Default:
  788. \fI6800\fR
  789. .RE
  790. .PP
  791. \fB\-\-xml\-rpc\-passwd\fR=PASSWD
  792. .RS 4
  793. Set XML\-RPC password\&.
  794. .RE
  795. .PP
  796. \fB\-\-xml\-rpc\-user\fR=USER
  797. .RS 4
  798. Set XML\-RPC user\&.
  799. .RE
  800. .SS "Advanced Options"
  801. .PP
  802. \fB\-\-allow\-overwrite\fR=\fItrue\fR|\fIfalse\fR
  803. .RS 4
  804. If
  805. \fIfalse\fR
  806. is given, aria2 doesn\(cqt download a file which already exists but the corresponding \&.aria2 file doesn\(cqt exist\&. In HTTP(S)/FTP download, if
  807. \fB\-\-auto\-file\-renaming\fR=\fItrue\fR
  808. then, file name will be renamed\&. See
  809. \fB\-\-auto\-file\-renaming\fR
  810. for details\&. Default:
  811. \fIfalse\fR
  812. .RE
  813. .PP
  814. \fB\-\-allow\-piece\-length\-change\fR=\fItrue\fR|\fIfalse\fR
  815. .RS 4
  816. If false is given, aria2 aborts download when a piece length is different from one in a control file\&. If true is given, you can proceed but some download progress will be lost\&. Default:
  817. \fIfalse\fR
  818. .RE
  819. .PP
  820. \fB\-\-async\-dns\fR[=\fItrue\fR|\fIfalse\fR]
  821. .RS 4
  822. Enable asynchronous DNS\&. Default:
  823. \fItrue\fR
  824. .RE
  825. .PP
  826. \fB\-\-auto\-file\-renaming\fR[=\fItrue\fR|\fIfalse\fR]
  827. .RS 4
  828. Rename file name if the same file already exists\&. This option works only in HTTP(S)/FTP download\&. The new file name has a dot and a number(1\&.\&.9999) appended\&. Default:
  829. \fItrue\fR
  830. .RE
  831. .PP
  832. \fB\-\-auto\-save\-interval\fR=SEC
  833. .RS 4
  834. Save a control file(*\&.aria2) every SEC seconds\&. If
  835. \fI0\fR
  836. is given, a control file is not saved during download\&. aria2 saves a control file when it stops regardless of the value\&. The possible values are between
  837. \fI0\fR
  838. to
  839. \fI600\fR\&. Default:
  840. \fI60\fR
  841. .RE
  842. .PP
  843. \fB\-\-conf\-path\fR=PATH
  844. .RS 4
  845. Change the configuration file path to PATH\&. Default:
  846. \fI$HOME/\&.aria2/aria2\&.conf\fR
  847. .RE
  848. .PP
  849. \fB\-D\fR, \fB\-\-daemon\fR
  850. .RS 4
  851. Run as daemon\&.
  852. .RE
  853. .PP
  854. \fB\-\-enable\-direct\-io\fR[=\fItrue\fR|\fIfalse\fR]
  855. .RS 4
  856. Enable directI/O, which lowers cpu usage while allocating/checking files\&. Turn off if you encounter any error\&. Default:
  857. \fItrue\fR
  858. .RE
  859. .PP
  860. \fB\-\-event\-poll\fR=POLL
  861. .RS 4
  862. Specify the method for polling events\&. The possible Values are
  863. \fIepoll\fR
  864. and
  865. \fIselect\fR\&. If you use recent Linux that has epoll, then the default value is
  866. \fIepoll\fR\&. Otherwise, the default value is
  867. \fIselect\fR\&.
  868. .RE
  869. .PP
  870. \fB\-\-file\-allocation\fR=METHOD
  871. .RS 4
  872. Specify file allocation method\&. METHOD is either
  873. \fInone\fR
  874. or
  875. \fIprealloc\fR\&.
  876. \fInone\fR
  877. doesn\(cqt pre\-allocate file space\&.
  878. \fIprealloc\fR
  879. pre\-allocates file space before download begins\&. This may take some time depending on the size of the file\&. If you are using newer file systems such as ext4 (with extents support), btrfs or xfs,
  880. \fIfalloc\fR
  881. is your best choice\&. It allocates large(few GiB) files almost instantly\&. Don\(cqt use
  882. \fIfalloc\fR
  883. with legacy file systems such as ext3 because it takes almost same time as
  884. \fIprealloc\fR
  885. and it blocks aria2 entirely until allocation finishes\&.
  886. \fIfalloc\fR
  887. may not be available if your system doesn\(cqt have
  888. \fBposix_fallocate\fR() function\&. Default:
  889. \fIprealloc\fR
  890. .RE
  891. .PP
  892. \fB\-\-log\-level\fR=LEVEL
  893. .RS 4
  894. Set log level to output\&. LEVEL is either
  895. \fIdebug\fR,
  896. \fIinfo\fR,
  897. \fInotice\fR,
  898. \fIwarn\fR
  899. or
  900. \fIerror\fR\&. Default:
  901. \fIdebug\fR
  902. .RE
  903. .PP
  904. \fB\-\-summary\-interval\fR=SEC
  905. .RS 4
  906. Set interval in seconds to output download progress summary\&. Setting
  907. \fI0\fR
  908. suppresses the output\&. Default:
  909. \fI60\fR
  910. .RE
  911. .if n \{\
  912. .sp
  913. .\}
  914. .RS 4
  915. .it 1 an-trap
  916. .nr an-no-space-flag 1
  917. .nr an-break-flag 1
  918. .br
  919. .ps +1
  920. \fBNote\fR
  921. .ps -1
  922. .br
  923. .sp
  924. In multi file torrent downloads, the files adjacent forward to the specified files are also allocated if they share the same piece\&.
  925. .sp .5v
  926. .RE
  927. .PP
  928. \fB\-Z\fR, \fB\-\-force\-sequential\fR[=\fItrue\fR|\fIfalse\fR]
  929. .RS 4
  930. Fetch URIs in the command\-line sequentially and download each URI in a separate session, like the usual command\-line download utilities\&. Default:
  931. \fIfalse\fR
  932. .RE
  933. .PP
  934. \fB\-\-max\-overall\-download\-limit\fR=SPEED
  935. .RS 4
  936. Set max overall download speed in bytes/sec\&.
  937. \fI0\fR
  938. means unrestricted\&. You can append
  939. \fIK\fR
  940. or
  941. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the download speed per download, use
  942. \fB\-\-max\-download\-limit\fR
  943. option\&. Default:
  944. \fI0\fR
  945. .RE
  946. .PP
  947. \fB\-\-max\-download\-limit\fR=SPEED
  948. .RS 4
  949. Set max download speed per each download in bytes/sec\&.
  950. \fI0\fR
  951. means unrestricted\&. You can append
  952. \fIK\fR
  953. or
  954. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the overall download speed, use
  955. \fB\-\-max\-overall\-download\-limit\fR
  956. option\&. Default:
  957. \fI0\fR
  958. .RE
  959. .PP
  960. \fB\-\-no\-conf\fR
  961. .RS 4
  962. Disable loading aria2\&.conf file\&.
  963. .RE
  964. .PP
  965. \fB\-\-no\-file\-allocation\-limit\fR=SIZE
  966. .RS 4
  967. No file allocation is made for files whose size is smaller than SIZE\&. You can append
  968. \fIK\fR
  969. or
  970. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  971. \fI5M\fR
  972. .RE
  973. .PP
  974. \fB\-P\fR, \fB\-\-parameterized\-uri\fR[=\fItrue\fR|\fIfalse\fR]
  975. .RS 4
  976. Enable parameterized URI support\&. You can specify set of parts:
  977. \fIhttp://{sv1,sv2,sv3}/foo\&.iso\fR\&. Also you can specify numeric sequences with step counter:
  978. \fIhttp://host/image[000\-100:2]\&.img\fR\&. A step counter can be omitted\&. If all URIs do not point to the same file, such as the second example above, \-Z option is required\&. Default:
  979. \fIfalse\fR
  980. .RE
  981. .PP
  982. \fB\-q\fR, \fB\-\-quiet\fR[=\fItrue\fR|\fIfalse\fR]
  983. .RS 4
  984. Make aria2 quiet (no console output)\&. Default:
  985. \fIfalse\fR
  986. .RE
  987. .PP
  988. \fB\-\-realtime\-chunk\-checksum\fR=\fItrue\fR|\fIfalse\fR
  989. .RS 4
  990. Validate chunk of data by calculating checksum while downloading a file if chunk checksums are provided\&. Default:
  991. \fItrue\fR
  992. .RE
  993. .PP
  994. \fB\-\-stop\fR=SEC
  995. .RS 4
  996. Stop application after SEC seconds has passed\&. If
  997. \fI0\fR
  998. is given, this feature is disabled\&. Default:
  999. \fI0\fR
  1000. .RE
  1001. .PP
  1002. \fB\-v\fR, \fB\-\-version\fR
  1003. .RS 4
  1004. Print the version number, copyright and the configuration information and exit\&.
  1005. .RE
  1006. .SS "Options That Take An Optional Argument"
  1007. .sp
  1008. The options that have its argument surrounded by square brackets([]) take an optional argument\&. Usually omiting the argument is evaluated to \fItrue\fR\&. If you use short form of these options(such as \fI\-V\fR) and give an argument, then the option name and its argument should be concatenated(e\&.g\&. \fI\-Vfalse\fR)\&. If any spaces are inserted between the option name and the argument, the argument will be treated as URI and usually this is not what you expect\&.
  1009. .SS "URL, TORRENT_FILE, METALINK_FILE"
  1010. .sp
  1011. You can specify multiple URLs in command\-line\&. Unless you specify \fB\-Z\fR option, all URLs must point to the same file or downloading will fail\&.
  1012. .sp
  1013. You can also specify arbitrary number of torrent files and metalink files stored on a local drive\&. Please note that they are always treated as a separate download\&.
  1014. .sp
  1015. You can specify both torrent file with \-T option and URLs\&. By doing this, you can download a file from both torrent swarm and HTTP(S)/FTP server at the same time, while the data from HTTP(S)/FTP are uploaded to the torrent swarm\&. Note that only single file torrent can be integrated with HTTP(S)/FTP\&.
  1016. .if n \{\
  1017. .sp
  1018. .\}
  1019. .RS 4
  1020. .it 1 an-trap
  1021. .nr an-no-space-flag 1
  1022. .nr an-break-flag 1
  1023. .br
  1024. .ps +1
  1025. \fBNote\fR
  1026. .ps -1
  1027. .br
  1028. .sp
  1029. Make sure that URL is quoted with single(\e\') or double(") quotation if it contains "&" or any characters that have special meaning in shell\&.
  1030. .sp .5v
  1031. .RE
  1032. .SS "Resuming Download"
  1033. .sp
  1034. Usually, you can resume transfer by just issuing same command(aria2c URL) if the previous transfer is made by aria2\&.
  1035. .sp
  1036. If the previous transfer is made by a browser or wget like sequential download manager, then use \-c option to continue the transfer(aria2c \fB\-c\fR URL)\&.
  1037. .SH "EXIT STATUS"
  1038. .sp
  1039. Because aria2 can handle multiple downloads at once, it encounters lots of errors in a session\&. aria2 returns the following exit status based on the last error encountered\&.
  1040. .PP
  1041. \fB0\fR
  1042. .RS 4
  1043. If all downloads are successful\&.
  1044. .RE
  1045. .PP
  1046. \fB1\fR
  1047. .RS 4
  1048. If an unknown error occurs\&.
  1049. .RE
  1050. .PP
  1051. \fB2\fR
  1052. .RS 4
  1053. If time out occurs\&.
  1054. .RE
  1055. .PP
  1056. \fB3\fR
  1057. .RS 4
  1058. If a resource is not found\&.
  1059. .RE
  1060. .PP
  1061. \fB4\fR
  1062. .RS 4
  1063. If aria2 sees the specfied number of "resource not found" error\&. See
  1064. \fB\-\-max\-file\-not\-found\fR
  1065. option)\&.
  1066. .RE
  1067. .PP
  1068. \fB5\fR
  1069. .RS 4
  1070. If a download aborts because download speed is too slow\&. See
  1071. \fB\-\-lowest\-speed\-limit\fR
  1072. option)
  1073. .RE
  1074. .PP
  1075. \fB6\fR
  1076. .RS 4
  1077. If network problem occurs\&.
  1078. .RE
  1079. .PP
  1080. \fB7\fR
  1081. .RS 4
  1082. If there are unfinished downloads\&. This error is only reported if all finished downloads are successful and there are unfinished downloads in a queue when aria2 exits by pressing Ctrl\-C by an user or sending TERM or INT signal\&.
  1083. .RE
  1084. .if n \{\
  1085. .sp
  1086. .\}
  1087. .RS 4
  1088. .it 1 an-trap
  1089. .nr an-no-space-flag 1
  1090. .nr an-break-flag 1
  1091. .br
  1092. .ps +1
  1093. \fBNote\fR
  1094. .ps -1
  1095. .br
  1096. .sp
  1097. An error occurred in a finished download will not be reported as exit status\&.
  1098. .sp .5v
  1099. .RE
  1100. .SH "ENVIRONMENT"
  1101. .sp
  1102. aria2 recognizes the following environment variables\&.
  1103. .PP
  1104. http_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1105. .RS 4
  1106. Specify proxy server for use in HTTP\&. Overrides http\-proxy value in configuration file\&. The command\-line option
  1107. \fB\-\-http\-proxy\fR
  1108. overrides this value\&.
  1109. .RE
  1110. .PP
  1111. https_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1112. .RS 4
  1113. Specify proxy server for use in HTTPS\&. Overrides https\-proxy value in configuration file\&. The command\-line option
  1114. \fB\-\-https\-proxy\fR
  1115. overrides this value\&.
  1116. .RE
  1117. .PP
  1118. ftp_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1119. .RS 4
  1120. Specify proxy server for use in FTP\&. Overrides ftp\-proxy value in configuration file\&. The command\-line option
  1121. \fB\-\-ftp\-proxy\fR
  1122. overrides this value\&.
  1123. .RE
  1124. .PP
  1125. all_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1126. .RS 4
  1127. Specify proxy server for use if no protocol\-specific proxy is specified\&. Overrides all\-proxy value in configuration file\&. The command\-line option
  1128. \fB\-\-all\-proxy\fR
  1129. overrides this value\&.
  1130. .RE
  1131. .PP
  1132. no_proxy [DOMAIN,\&...]
  1133. .RS 4
  1134. Specify comma\-separated hostname or domains to which proxy should not be used\&. Overrides no\-proxy value in configuration file\&. The command\-line option
  1135. \fB\-\-no\-proxy\fR
  1136. overrides this value\&.
  1137. .RE
  1138. .SH "FILES"
  1139. .SS "aria2\&.conf"
  1140. .sp
  1141. By default, aria2 parses \fI$HOME/\&.aria2/aria2\&.conf\fR as a configuraiton file\&. You can specify the path to configuration file using \fB\-\-conf\-path\fR option\&. If you don\(cqt want to use the configuraitonf file, use \fB\-\-no\-conf\fR option\&.
  1142. .sp
  1143. The configuration file is a text file and has 1 option per each line\&. In each line, you can specify name\-value pair in the format: NAME=VALUE, where name is the long command\-line option name without "\-\-" prefix\&. You can use same syntax for the command\-line option\&. The lines beginning "#" are treated as comments\&.
  1144. .sp
  1145. .if n \{\
  1146. .RS 4
  1147. .\}
  1148. .nf
  1149. # sample configuration file for aria2c
  1150. listen\-port=60000
  1151. dht\-listen\-port=60000
  1152. seed\-ratio=1\&.0
  1153. max\-upload\-limit=50K
  1154. ftp\-pasv=true
  1155. .fi
  1156. .if n \{\
  1157. .RE
  1158. .\}
  1159. .SS "dht\&.dat"
  1160. .sp
  1161. By default, the routing table of DHT is saved to the path $HOME/\&.aria2/dht\&.dat\&.
  1162. .SS "Control File"
  1163. .sp
  1164. aria2 uses a control file to track the progress of a download\&. A control file is placed in the same directory as the downloading file and its filename is the filename of downloading file with "\&.aria2" appended\&. For example, if you are downloading file\&.zip, then the control file should be file\&.zip\&.aria2\&. (There is a exception for this naming convention\&. If you are downloading a multi torrent, its control file is the "top directory" name of the torrent with "\&.aria2" appended\&. The "top directory" name is a value of "name" key in "info" directory in a torrent file\&.)
  1165. .sp
  1166. Usually a control file is deleted once download completed\&. If aria2 decides that download cannot be resumed(for example, when downloading a file from a HTTP server which doesn\(cqt support resume), a control file is not created\&.
  1167. .sp
  1168. Normally if you lose a control file, you cannot resume download\&. But if you have a torrent or metalink with chunk checksums for the file, you can resume the download without a control file by giving \-V option to aria2c in command\-line\&.
  1169. .SS "Input File"
  1170. .sp
  1171. The input file can contain a list of URIs for aria2 to download\&. You can specify multiple URIs for a single entity: separate URIs on a single line using the TAB character\&.
  1172. .sp
  1173. Each line is treated as if it is provided in command\-line argument\&. Therefore they are affected by \fB\-Z\fR and \fB\-P\fR options\&.
  1174. .sp
  1175. Additionally, the following options can be specified after each line of URIs\&. These optional lines must start with white space(s)\&.
  1176. .sp
  1177. .RS 4
  1178. .ie n \{\
  1179. \h'-04'\(bu\h'+03'\c
  1180. .\}
  1181. .el \{\
  1182. .sp -1
  1183. .IP \(bu 2.3
  1184. .\}
  1185. dir
  1186. .RE
  1187. .sp
  1188. .RS 4
  1189. .ie n \{\
  1190. \h'-04'\(bu\h'+03'\c
  1191. .\}
  1192. .el \{\
  1193. .sp -1
  1194. .IP \(bu 2.3
  1195. .\}
  1196. check\-integrity
  1197. .RE
  1198. .sp
  1199. .RS 4
  1200. .ie n \{\
  1201. \h'-04'\(bu\h'+03'\c
  1202. .\}
  1203. .el \{\
  1204. .sp -1
  1205. .IP \(bu 2.3
  1206. .\}
  1207. continue
  1208. .RE
  1209. .sp
  1210. .RS 4
  1211. .ie n \{\
  1212. \h'-04'\(bu\h'+03'\c
  1213. .\}
  1214. .el \{\
  1215. .sp -1
  1216. .IP \(bu 2.3
  1217. .\}
  1218. all\-proxy
  1219. .RE
  1220. .sp
  1221. .RS 4
  1222. .ie n \{\
  1223. \h'-04'\(bu\h'+03'\c
  1224. .\}
  1225. .el \{\
  1226. .sp -1
  1227. .IP \(bu 2.3
  1228. .\}
  1229. connect\-timeout
  1230. .RE
  1231. .sp
  1232. .RS 4
  1233. .ie n \{\
  1234. \h'-04'\(bu\h'+03'\c
  1235. .\}
  1236. .el \{\
  1237. .sp -1
  1238. .IP \(bu 2.3
  1239. .\}
  1240. dry\-run
  1241. .RE
  1242. .sp
  1243. .RS 4
  1244. .ie n \{\
  1245. \h'-04'\(bu\h'+03'\c
  1246. .\}
  1247. .el \{\
  1248. .sp -1
  1249. .IP \(bu 2.3
  1250. .\}
  1251. lowest\-speed\-limit
  1252. .RE
  1253. .sp
  1254. .RS 4
  1255. .ie n \{\
  1256. \h'-04'\(bu\h'+03'\c
  1257. .\}
  1258. .el \{\
  1259. .sp -1
  1260. .IP \(bu 2.3
  1261. .\}
  1262. max\-file\-not\-found
  1263. .RE
  1264. .sp
  1265. .RS 4
  1266. .ie n \{\
  1267. \h'-04'\(bu\h'+03'\c
  1268. .\}
  1269. .el \{\
  1270. .sp -1
  1271. .IP \(bu 2.3
  1272. .\}
  1273. max\-tries
  1274. .RE
  1275. .sp
  1276. .RS 4
  1277. .ie n \{\
  1278. \h'-04'\(bu\h'+03'\c
  1279. .\}
  1280. .el \{\
  1281. .sp -1
  1282. .IP \(bu 2.3
  1283. .\}
  1284. no\-proxy
  1285. .RE
  1286. .sp
  1287. .RS 4
  1288. .ie n \{\
  1289. \h'-04'\(bu\h'+03'\c
  1290. .\}
  1291. .el \{\
  1292. .sp -1
  1293. .IP \(bu 2.3
  1294. .\}
  1295. out
  1296. .RE
  1297. .sp
  1298. .RS 4
  1299. .ie n \{\
  1300. \h'-04'\(bu\h'+03'\c
  1301. .\}
  1302. .el \{\
  1303. .sp -1
  1304. .IP \(bu 2.3
  1305. .\}
  1306. proxy\-method
  1307. .RE
  1308. .sp
  1309. .RS 4
  1310. .ie n \{\
  1311. \h'-04'\(bu\h'+03'\c
  1312. .\}
  1313. .el \{\
  1314. .sp -1
  1315. .IP \(bu 2.3
  1316. .\}
  1317. remote\-time
  1318. .RE
  1319. .sp
  1320. .RS 4
  1321. .ie n \{\
  1322. \h'-04'\(bu\h'+03'\c
  1323. .\}
  1324. .el \{\
  1325. .sp -1
  1326. .IP \(bu 2.3
  1327. .\}
  1328. retry\-wait
  1329. .RE
  1330. .sp
  1331. .RS 4
  1332. .ie n \{\
  1333. \h'-04'\(bu\h'+03'\c
  1334. .\}
  1335. .el \{\
  1336. .sp -1
  1337. .IP \(bu 2.3
  1338. .\}
  1339. split
  1340. .RE
  1341. .sp
  1342. .RS 4
  1343. .ie n \{\
  1344. \h'-04'\(bu\h'+03'\c
  1345. .\}
  1346. .el \{\
  1347. .sp -1
  1348. .IP \(bu 2.3
  1349. .\}
  1350. timeout
  1351. .RE
  1352. .sp
  1353. .RS 4
  1354. .ie n \{\
  1355. \h'-04'\(bu\h'+03'\c
  1356. .\}
  1357. .el \{\
  1358. .sp -1
  1359. .IP \(bu 2.3
  1360. .\}
  1361. http\-auth\-challenge
  1362. .RE
  1363. .sp
  1364. .RS 4
  1365. .ie n \{\
  1366. \h'-04'\(bu\h'+03'\c
  1367. .\}
  1368. .el \{\
  1369. .sp -1
  1370. .IP \(bu 2.3
  1371. .\}
  1372. http\-user
  1373. .RE
  1374. .sp
  1375. .RS 4
  1376. .ie n \{\
  1377. \h'-04'\(bu\h'+03'\c
  1378. .\}
  1379. .el \{\
  1380. .sp -1
  1381. .IP \(bu 2.3
  1382. .\}
  1383. http\-passwd
  1384. .RE
  1385. .sp
  1386. .RS 4
  1387. .ie n \{\
  1388. \h'-04'\(bu\h'+03'\c
  1389. .\}
  1390. .el \{\
  1391. .sp -1
  1392. .IP \(bu 2.3
  1393. .\}
  1394. http\-proxy
  1395. .RE
  1396. .sp
  1397. .RS 4
  1398. .ie n \{\
  1399. \h'-04'\(bu\h'+03'\c
  1400. .\}
  1401. .el \{\
  1402. .sp -1
  1403. .IP \(bu 2.3
  1404. .\}
  1405. https\-proxy
  1406. .RE
  1407. .sp
  1408. .RS 4
  1409. .ie n \{\
  1410. \h'-04'\(bu\h'+03'\c
  1411. .\}
  1412. .el \{\
  1413. .sp -1
  1414. .IP \(bu 2.3
  1415. .\}
  1416. referer
  1417. .RE
  1418. .sp
  1419. .RS 4
  1420. .ie n \{\
  1421. \h'-04'\(bu\h'+03'\c
  1422. .\}
  1423. .el \{\
  1424. .sp -1
  1425. .IP \(bu 2.3
  1426. .\}
  1427. enable\-http\-keep\-alive
  1428. .RE
  1429. .sp
  1430. .RS 4
  1431. .ie n \{\
  1432. \h'-04'\(bu\h'+03'\c
  1433. .\}
  1434. .el \{\
  1435. .sp -1
  1436. .IP \(bu 2.3
  1437. .\}
  1438. enable\-http\-pipelining
  1439. .RE
  1440. .sp
  1441. .RS 4
  1442. .ie n \{\
  1443. \h'-04'\(bu\h'+03'\c
  1444. .\}
  1445. .el \{\
  1446. .sp -1
  1447. .IP \(bu 2.3
  1448. .\}
  1449. header
  1450. .RE
  1451. .sp
  1452. .RS 4
  1453. .ie n \{\
  1454. \h'-04'\(bu\h'+03'\c
  1455. .\}
  1456. .el \{\
  1457. .sp -1
  1458. .IP \(bu 2.3
  1459. .\}
  1460. use\-head
  1461. .RE
  1462. .sp
  1463. .RS 4
  1464. .ie n \{\
  1465. \h'-04'\(bu\h'+03'\c
  1466. .\}
  1467. .el \{\
  1468. .sp -1
  1469. .IP \(bu 2.3
  1470. .\}
  1471. user\-agent
  1472. .RE
  1473. .sp
  1474. .RS 4
  1475. .ie n \{\
  1476. \h'-04'\(bu\h'+03'\c
  1477. .\}
  1478. .el \{\
  1479. .sp -1
  1480. .IP \(bu 2.3
  1481. .\}
  1482. ftp\-user
  1483. .RE
  1484. .sp
  1485. .RS 4
  1486. .ie n \{\
  1487. \h'-04'\(bu\h'+03'\c
  1488. .\}
  1489. .el \{\
  1490. .sp -1
  1491. .IP \(bu 2.3
  1492. .\}
  1493. ftp\-passwd
  1494. .RE
  1495. .sp
  1496. .RS 4
  1497. .ie n \{\
  1498. \h'-04'\(bu\h'+03'\c
  1499. .\}
  1500. .el \{\
  1501. .sp -1
  1502. .IP \(bu 2.3
  1503. .\}
  1504. ftp\-pasv
  1505. .RE
  1506. .sp
  1507. .RS 4
  1508. .ie n \{\
  1509. \h'-04'\(bu\h'+03'\c
  1510. .\}
  1511. .el \{\
  1512. .sp -1
  1513. .IP \(bu 2.3
  1514. .\}
  1515. ftp\-proxy
  1516. .RE
  1517. .sp
  1518. .RS 4
  1519. .ie n \{\
  1520. \h'-04'\(bu\h'+03'\c
  1521. .\}
  1522. .el \{\
  1523. .sp -1
  1524. .IP \(bu 2.3
  1525. .\}
  1526. ftp\-type
  1527. .RE
  1528. .sp
  1529. .RS 4
  1530. .ie n \{\
  1531. \h'-04'\(bu\h'+03'\c
  1532. .\}
  1533. .el \{\
  1534. .sp -1
  1535. .IP \(bu 2.3
  1536. .\}
  1537. ftp\-reuse\-connection
  1538. .RE
  1539. .sp
  1540. .RS 4
  1541. .ie n \{\
  1542. \h'-04'\(bu\h'+03'\c
  1543. .\}
  1544. .el \{\
  1545. .sp -1
  1546. .IP \(bu 2.3
  1547. .\}
  1548. no\-netrc
  1549. .RE
  1550. .sp
  1551. .RS 4
  1552. .ie n \{\
  1553. \h'-04'\(bu\h'+03'\c
  1554. .\}
  1555. .el \{\
  1556. .sp -1
  1557. .IP \(bu 2.3
  1558. .\}
  1559. select\-file
  1560. .RE
  1561. .sp
  1562. .RS 4
  1563. .ie n \{\
  1564. \h'-04'\(bu\h'+03'\c
  1565. .\}
  1566. .el \{\
  1567. .sp -1
  1568. .IP \(bu 2.3
  1569. .\}
  1570. bt\-external\-ip
  1571. .RE
  1572. .sp
  1573. .RS 4
  1574. .ie n \{\
  1575. \h'-04'\(bu\h'+03'\c
  1576. .\}
  1577. .el \{\
  1578. .sp -1
  1579. .IP \(bu 2.3
  1580. .\}
  1581. bt\-hash\-check\-seed
  1582. .RE
  1583. .sp
  1584. .RS 4
  1585. .ie n \{\
  1586. \h'-04'\(bu\h'+03'\c
  1587. .\}
  1588. .el \{\
  1589. .sp -1
  1590. .IP \(bu 2.3
  1591. .\}
  1592. bt\-max\-open\-files
  1593. .RE
  1594. .sp
  1595. .RS 4
  1596. .ie n \{\
  1597. \h'-04'\(bu\h'+03'\c
  1598. .\}
  1599. .el \{\
  1600. .sp -1
  1601. .IP \(bu 2.3
  1602. .\}
  1603. bt\-max\-peers
  1604. .RE
  1605. .sp
  1606. .RS 4
  1607. .ie n \{\
  1608. \h'-04'\(bu\h'+03'\c
  1609. .\}
  1610. .el \{\
  1611. .sp -1
  1612. .IP \(bu 2.3
  1613. .\}
  1614. bt\-min\-crypto\-level
  1615. .RE
  1616. .sp
  1617. .RS 4
  1618. .ie n \{\
  1619. \h'-04'\(bu\h'+03'\c
  1620. .\}
  1621. .el \{\
  1622. .sp -1
  1623. .IP \(bu 2.3
  1624. .\}
  1625. bt\-require\-crypto
  1626. .RE
  1627. .sp
  1628. .RS 4
  1629. .ie n \{\
  1630. \h'-04'\(bu\h'+03'\c
  1631. .\}
  1632. .el \{\
  1633. .sp -1
  1634. .IP \(bu 2.3
  1635. .\}
  1636. bt\-request\-peer\-speed\-limit
  1637. .RE
  1638. .sp
  1639. .RS 4
  1640. .ie n \{\
  1641. \h'-04'\(bu\h'+03'\c
  1642. .\}
  1643. .el \{\
  1644. .sp -1
  1645. .IP \(bu 2.3
  1646. .\}
  1647. bt\-seed\-unverified
  1648. .RE
  1649. .sp
  1650. .RS 4
  1651. .ie n \{\
  1652. \h'-04'\(bu\h'+03'\c
  1653. .\}
  1654. .el \{\
  1655. .sp -1
  1656. .IP \(bu 2.3
  1657. .\}
  1658. bt\-tracker\-interval
  1659. .RE
  1660. .sp
  1661. .RS 4
  1662. .ie n \{\
  1663. \h'-04'\(bu\h'+03'\c
  1664. .\}
  1665. .el \{\
  1666. .sp -1
  1667. .IP \(bu 2.3
  1668. .\}
  1669. enable\-peer\-exchange
  1670. .RE
  1671. .sp
  1672. .RS 4
  1673. .ie n \{\
  1674. \h'-04'\(bu\h'+03'\c
  1675. .\}
  1676. .el \{\
  1677. .sp -1
  1678. .IP \(bu 2.3
  1679. .\}
  1680. follow\-torrent
  1681. .RE
  1682. .sp
  1683. .RS 4
  1684. .ie n \{\
  1685. \h'-04'\(bu\h'+03'\c
  1686. .\}
  1687. .el \{\
  1688. .sp -1
  1689. .IP \(bu 2.3
  1690. .\}
  1691. index\-out
  1692. .RE
  1693. .sp
  1694. .RS 4
  1695. .ie n \{\
  1696. \h'-04'\(bu\h'+03'\c
  1697. .\}
  1698. .el \{\
  1699. .sp -1
  1700. .IP \(bu 2.3
  1701. .\}
  1702. max\-upload\-limit
  1703. .RE
  1704. .sp
  1705. .RS 4
  1706. .ie n \{\
  1707. \h'-04'\(bu\h'+03'\c
  1708. .\}
  1709. .el \{\
  1710. .sp -1
  1711. .IP \(bu 2.3
  1712. .\}
  1713. peer\-id\-prefix
  1714. .RE
  1715. .sp
  1716. .RS 4
  1717. .ie n \{\
  1718. \h'-04'\(bu\h'+03'\c
  1719. .\}
  1720. .el \{\
  1721. .sp -1
  1722. .IP \(bu 2.3
  1723. .\}
  1724. seed\-ratio
  1725. .RE
  1726. .sp
  1727. .RS 4
  1728. .ie n \{\
  1729. \h'-04'\(bu\h'+03'\c
  1730. .\}
  1731. .el \{\
  1732. .sp -1
  1733. .IP \(bu 2.3
  1734. .\}
  1735. seed\-time
  1736. .RE
  1737. .sp
  1738. .RS 4
  1739. .ie n \{\
  1740. \h'-04'\(bu\h'+03'\c
  1741. .\}
  1742. .el \{\
  1743. .sp -1
  1744. .IP \(bu 2.3
  1745. .\}
  1746. follow\-metalink
  1747. .RE
  1748. .sp
  1749. .RS 4
  1750. .ie n \{\
  1751. \h'-04'\(bu\h'+03'\c
  1752. .\}
  1753. .el \{\
  1754. .sp -1
  1755. .IP \(bu 2.3
  1756. .\}
  1757. metalink\-servers
  1758. .RE
  1759. .sp
  1760. .RS 4
  1761. .ie n \{\
  1762. \h'-04'\(bu\h'+03'\c
  1763. .\}
  1764. .el \{\
  1765. .sp -1
  1766. .IP \(bu 2.3
  1767. .\}
  1768. metalink\-language
  1769. .RE
  1770. .sp
  1771. .RS 4
  1772. .ie n \{\
  1773. \h'-04'\(bu\h'+03'\c
  1774. .\}
  1775. .el \{\
  1776. .sp -1
  1777. .IP \(bu 2.3
  1778. .\}
  1779. metalink\-location
  1780. .RE
  1781. .sp
  1782. .RS 4
  1783. .ie n \{\
  1784. \h'-04'\(bu\h'+03'\c
  1785. .\}
  1786. .el \{\
  1787. .sp -1
  1788. .IP \(bu 2.3
  1789. .\}
  1790. metalink\-os
  1791. .RE
  1792. .sp
  1793. .RS 4
  1794. .ie n \{\
  1795. \h'-04'\(bu\h'+03'\c
  1796. .\}
  1797. .el \{\
  1798. .sp -1
  1799. .IP \(bu 2.3
  1800. .\}
  1801. metalink\-version
  1802. .RE
  1803. .sp
  1804. .RS 4
  1805. .ie n \{\
  1806. \h'-04'\(bu\h'+03'\c
  1807. .\}
  1808. .el \{\
  1809. .sp -1
  1810. .IP \(bu 2.3
  1811. .\}
  1812. metalink\-preferred\-protocol
  1813. .RE
  1814. .sp
  1815. .RS 4
  1816. .ie n \{\
  1817. \h'-04'\(bu\h'+03'\c
  1818. .\}
  1819. .el \{\
  1820. .sp -1
  1821. .IP \(bu 2.3
  1822. .\}
  1823. metalink\-enable\-unique\-protocol
  1824. .RE
  1825. .sp
  1826. .RS 4
  1827. .ie n \{\
  1828. \h'-04'\(bu\h'+03'\c
  1829. .\}
  1830. .el \{\
  1831. .sp -1
  1832. .IP \(bu 2.3
  1833. .\}
  1834. allow\-overwrite
  1835. .RE
  1836. .sp
  1837. .RS 4
  1838. .ie n \{\
  1839. \h'-04'\(bu\h'+03'\c
  1840. .\}
  1841. .el \{\
  1842. .sp -1
  1843. .IP \(bu 2.3
  1844. .\}
  1845. allow\-piece\-length\-change
  1846. .RE
  1847. .sp
  1848. .RS 4
  1849. .ie n \{\
  1850. \h'-04'\(bu\h'+03'\c
  1851. .\}
  1852. .el \{\
  1853. .sp -1
  1854. .IP \(bu 2.3
  1855. .\}
  1856. async\-dns
  1857. .RE
  1858. .sp
  1859. .RS 4
  1860. .ie n \{\
  1861. \h'-04'\(bu\h'+03'\c
  1862. .\}
  1863. .el \{\
  1864. .sp -1
  1865. .IP \(bu 2.3
  1866. .\}
  1867. auto\-file\-renaming
  1868. .RE
  1869. .sp
  1870. .RS 4
  1871. .ie n \{\
  1872. \h'-04'\(bu\h'+03'\c
  1873. .\}
  1874. .el \{\
  1875. .sp -1
  1876. .IP \(bu 2.3
  1877. .\}
  1878. file\-allocation
  1879. .RE
  1880. .sp
  1881. .RS 4
  1882. .ie n \{\
  1883. \h'-04'\(bu\h'+03'\c
  1884. .\}
  1885. .el \{\
  1886. .sp -1
  1887. .IP \(bu 2.3
  1888. .\}
  1889. max\-download\-limit
  1890. .RE
  1891. .sp
  1892. .RS 4
  1893. .ie n \{\
  1894. \h'-04'\(bu\h'+03'\c
  1895. .\}
  1896. .el \{\
  1897. .sp -1
  1898. .IP \(bu 2.3
  1899. .\}
  1900. no\-file\-allocation\-limit
  1901. .RE
  1902. .sp
  1903. .RS 4
  1904. .ie n \{\
  1905. \h'-04'\(bu\h'+03'\c
  1906. .\}
  1907. .el \{\
  1908. .sp -1
  1909. .IP \(bu 2.3
  1910. .\}
  1911. parameterized\-uri
  1912. .RE
  1913. .sp
  1914. .RS 4
  1915. .ie n \{\
  1916. \h'-04'\(bu\h'+03'\c
  1917. .\}
  1918. .el \{\
  1919. .sp -1
  1920. .IP \(bu 2.3
  1921. .\}
  1922. realtime\-chunk\-checksum
  1923. .RE
  1924. .sp
  1925. These options have exactly same meaning of the ones in the command\-line options, but it just applies to the URIs it belongs to\&.
  1926. .sp
  1927. For example, the content of uri\&.txt is
  1928. .sp
  1929. .if n \{\
  1930. .RS 4
  1931. .\}
  1932. .nf
  1933. http://server/file\&.iso http://mirror/file\&.iso
  1934. dir=/iso_images
  1935. out=file\&.img
  1936. http://foo/bar
  1937. .fi
  1938. .if n \{\
  1939. .RE
  1940. .\}
  1941. .sp
  1942. If aria2 is executed with \fB\-i\fR uri\&.txt \fB\-d\fR /tmp options, then \fIfile\&.iso\fR is saved as \fI/iso_images/file\&.img\fR and it is downloaded from http://server/file\&.iso and http://mirror/file\&.iso\&. The file \fIbar\fR is downloaded from http://foo/bar and saved as \fI/tmp/bar\fR\&.
  1943. .sp
  1944. In some cases, \fBout\fR parameter has no effect\&. See note of \fB\-\-out\fR option for the restrictions\&.
  1945. .SS "Server Performance Profile"
  1946. .sp
  1947. This section describes the format of server performance profile\&. The file is plain text and each line has several NAME=VALUE pair, delimited by comma\&. Currently following NAMEs are recognized:
  1948. .PP
  1949. host
  1950. .RS 4
  1951. Hostname of the server\&. Required\&.
  1952. .RE
  1953. .PP
  1954. protocol
  1955. .RS 4
  1956. Protocol for this profile, such as ftp, http\&. Required\&.
  1957. .RE
  1958. .PP
  1959. dl_speed
  1960. .RS 4
  1961. The average download speed observed in the previous download in bytes per sec\&. Required\&.
  1962. .RE
  1963. .PP
  1964. sc_avg_speed
  1965. .RS 4
  1966. The average download speed observed in the previous download in bytes per sec\&. This value is only updated if the download is done in single connection environment and only used by AdaptiveURISelector\&. Optional\&.
  1967. .RE
  1968. .PP
  1969. mc_avg_speed
  1970. .RS 4
  1971. The average download speed observed in the previous download in bytes per sec\&. This value is only updated if the download is done in multi connection environment and only used by AdaptiveURISelector\&. Optional\&.
  1972. .RE
  1973. .PP
  1974. counter
  1975. .RS 4
  1976. How many times the server is used\&. Currently this value is only used by AdaptiveURISelector\&. Optional\&.
  1977. .RE
  1978. .PP
  1979. last_updated
  1980. .RS 4
  1981. Last contact time in GMT with this server, specified in the seconds from the Epoch\&. Required\&.
  1982. .RE
  1983. .PP
  1984. status
  1985. .RS 4
  1986. ERROR is set when server cannot be reached or out\-of\-service or timeout occurred\&. Otherwise, OK is set\&.
  1987. .RE
  1988. .sp
  1989. 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\&.
  1990. .sp
  1991. An example follows:
  1992. .sp
  1993. .if n \{\
  1994. .RS 4
  1995. .\}
  1996. .nf
  1997. host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  1998. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR
  1999. .fi
  2000. .if n \{\
  2001. .RE
  2002. .\}
  2003. .SH "EXAMPLE"
  2004. .SS "HTTP/FTP Segmented Download"
  2005. .sp
  2006. .it 1 an-trap
  2007. .nr an-no-space-flag 1
  2008. .nr an-break-flag 1
  2009. .br
  2010. .ps +1
  2011. \fBDownload a file\fR
  2012. .RS 4
  2013. .sp
  2014. .if n \{\
  2015. .RS 4
  2016. .\}
  2017. .nf
  2018. aria2c "http://host/file\&.zip"
  2019. .fi
  2020. .if n \{\
  2021. .RE
  2022. .\}
  2023. .if n \{\
  2024. .sp
  2025. .\}
  2026. .RS 4
  2027. .it 1 an-trap
  2028. .nr an-no-space-flag 1
  2029. .nr an-break-flag 1
  2030. .br
  2031. .ps +1
  2032. \fBNote\fR
  2033. .ps -1
  2034. .br
  2035. .sp
  2036. aria2 uses 5 connections to download 1 file by default\&.
  2037. .sp .5v
  2038. .RE
  2039. .RE
  2040. .sp
  2041. .it 1 an-trap
  2042. .nr an-no-space-flag 1
  2043. .nr an-break-flag 1
  2044. .br
  2045. .ps +1
  2046. \fBDownload a file using 1 connection\fR
  2047. .RS 4
  2048. .sp
  2049. .if n \{\
  2050. .RS 4
  2051. .\}
  2052. .nf
  2053. aria2c \-s1 "http://host/file\&.zip"
  2054. .fi
  2055. .if n \{\
  2056. .RE
  2057. .\}
  2058. .if n \{\
  2059. .sp
  2060. .\}
  2061. .RS 4
  2062. .it 1 an-trap
  2063. .nr an-no-space-flag 1
  2064. .nr an-break-flag 1
  2065. .br
  2066. .ps +1
  2067. \fBNote\fR
  2068. .ps -1
  2069. .br
  2070. .sp
  2071. aria2 uses 5 connections to download 1 file by default\&. \-s1 limits the number of connections to just 1\&.
  2072. .sp .5v
  2073. .RE
  2074. .if n \{\
  2075. .sp
  2076. .\}
  2077. .RS 4
  2078. .it 1 an-trap
  2079. .nr an-no-space-flag 1
  2080. .nr an-break-flag 1
  2081. .br
  2082. .ps +1
  2083. \fBNote\fR
  2084. .ps -1
  2085. .br
  2086. .sp
  2087. 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\&.
  2088. .sp .5v
  2089. .RE
  2090. .RE
  2091. .sp
  2092. .it 1 an-trap
  2093. .nr an-no-space-flag 1
  2094. .nr an-break-flag 1
  2095. .br
  2096. .ps +1
  2097. \fBDownload a file from 2 different HTTP servers\fR
  2098. .RS 4
  2099. .sp
  2100. .if n \{\
  2101. .RS 4
  2102. .\}
  2103. .nf
  2104. aria2c "http://host/file\&.zip" "http://mirror/file\&.zip"
  2105. .fi
  2106. .if n \{\
  2107. .RE
  2108. .\}
  2109. .RE
  2110. .sp
  2111. .it 1 an-trap
  2112. .nr an-no-space-flag 1
  2113. .nr an-break-flag 1
  2114. .br
  2115. .ps +1
  2116. \fBDownload a file from HTTP and FTP servers\fR
  2117. .RS 4
  2118. .sp
  2119. .if n \{\
  2120. .RS 4
  2121. .\}
  2122. .nf
  2123. aria2c "http://host1/file\&.zip" "ftp://host2/file\&.zip"
  2124. .fi
  2125. .if n \{\
  2126. .RE
  2127. .\}
  2128. .RE
  2129. .sp
  2130. .it 1 an-trap
  2131. .nr an-no-space-flag 1
  2132. .nr an-break-flag 1
  2133. .br
  2134. .ps +1
  2135. \fBDownload files listed in a text file concurrently\fR
  2136. .RS 4
  2137. .sp
  2138. .if n \{\
  2139. .RS 4
  2140. .\}
  2141. .nf
  2142. aria2c \-ifiles\&.txt \-j2
  2143. .fi
  2144. .if n \{\
  2145. .RE
  2146. .\}
  2147. .if n \{\
  2148. .sp
  2149. .\}
  2150. .RS 4
  2151. .it 1 an-trap
  2152. .nr an-no-space-flag 1
  2153. .nr an-break-flag 1
  2154. .br
  2155. .ps +1
  2156. \fBNote\fR
  2157. .ps -1
  2158. .br
  2159. .sp
  2160. \-j option specifies the number of parallel downloads\&.
  2161. .sp .5v
  2162. .RE
  2163. .RE
  2164. .sp
  2165. .it 1 an-trap
  2166. .nr an-no-space-flag 1
  2167. .nr an-break-flag 1
  2168. .br
  2169. .ps +1
  2170. \fBUsing proxy\fR
  2171. .RS 4
  2172. .sp
  2173. For HTTP:
  2174. .sp
  2175. .if n \{\
  2176. .RS 4
  2177. .\}
  2178. .nf
  2179. aria2c \-\-http\-proxy="http://proxy:8080" "http://host/file"
  2180. .fi
  2181. .if n \{\
  2182. .RE
  2183. .\}
  2184. .sp
  2185. For FTP:
  2186. .sp
  2187. .if n \{\
  2188. .RS 4
  2189. .\}
  2190. .nf
  2191. aria2c \-\-ftp\-proxy="http://proxy:8080" "ftp://host/file"
  2192. .fi
  2193. .if n \{\
  2194. .RE
  2195. .\}
  2196. .if n \{\
  2197. .sp
  2198. .\}
  2199. .RS 4
  2200. .it 1 an-trap
  2201. .nr an-no-space-flag 1
  2202. .nr an-break-flag 1
  2203. .br
  2204. .ps +1
  2205. \fBNote\fR
  2206. .ps -1
  2207. .br
  2208. .sp
  2209. See \fB\-\-http\-proxy\fR, \fB\-\-https\-proxy\fR, \fB\-\-ftp\-proxy\fR and \fB\-\-all\-proxy\fR for details\&. You can specify proxy in the environment variables\&. See \fBENVIRONMENT\fR section\&.
  2210. .sp .5v
  2211. .RE
  2212. .RE
  2213. .sp
  2214. .it 1 an-trap
  2215. .nr an-no-space-flag 1
  2216. .nr an-break-flag 1
  2217. .br
  2218. .ps +1
  2219. \fBProxy with authorization\fR
  2220. .RS 4
  2221. .sp
  2222. .if n \{\
  2223. .RS 4
  2224. .\}
  2225. .nf
  2226. aria2c \-\-http\-proxy="http://username:password@proxy:8080" "http://host/file"
  2227. .fi
  2228. .if n \{\
  2229. .RE
  2230. .\}
  2231. .RE
  2232. .SS "Metalink Download"
  2233. .sp
  2234. .it 1 an-trap
  2235. .nr an-no-space-flag 1
  2236. .nr an-break-flag 1
  2237. .br
  2238. .ps +1
  2239. \fBDownload files with remote Metalink\fR
  2240. .RS 4
  2241. .sp
  2242. .if n \{\
  2243. .RS 4
  2244. .\}
  2245. .nf
  2246. aria2c \-\-follow\-metalink=mem "http://host/file\&.metalink"
  2247. .fi
  2248. .if n \{\
  2249. .RE
  2250. .\}
  2251. .RE
  2252. .sp
  2253. .it 1 an-trap
  2254. .nr an-no-space-flag 1
  2255. .nr an-break-flag 1
  2256. .br
  2257. .ps +1
  2258. \fBDownload using a local metalink file\fR
  2259. .RS 4
  2260. .sp
  2261. .if n \{\
  2262. .RS 4
  2263. .\}
  2264. .nf
  2265. aria2c \-p \-\-lowest\-speed\-limit=4000 file\&.metalink
  2266. .fi
  2267. .if n \{\
  2268. .RE
  2269. .\}
  2270. .if n \{\
  2271. .sp
  2272. .\}
  2273. .RS 4
  2274. .it 1 an-trap
  2275. .nr an-no-space-flag 1
  2276. .nr an-break-flag 1
  2277. .br
  2278. .ps +1
  2279. \fBNote\fR
  2280. .ps -1
  2281. .br
  2282. .sp
  2283. To pause a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument in the same directory\&.
  2284. .sp .5v
  2285. .RE
  2286. .RE
  2287. .sp
  2288. .it 1 an-trap
  2289. .nr an-no-space-flag 1
  2290. .nr an-break-flag 1
  2291. .br
  2292. .ps +1
  2293. \fBDownload several local metalink files\fR
  2294. .RS 4
  2295. .sp
  2296. .if n \{\
  2297. .RS 4
  2298. .\}
  2299. .nf
  2300. aria2c \-j2 file1\&.metalink file2\&.metalink
  2301. .fi
  2302. .if n \{\
  2303. .RE
  2304. .\}
  2305. .RE
  2306. .sp
  2307. .it 1 an-trap
  2308. .nr an-no-space-flag 1
  2309. .nr an-break-flag 1
  2310. .br
  2311. .ps +1
  2312. \fBDownload only selected files using index\fR
  2313. .RS 4
  2314. .sp
  2315. .if n \{\
  2316. .RS 4
  2317. .\}
  2318. .nf
  2319. aria2c \-\-select\-file=1\-4,8 file\&.metalink
  2320. .fi
  2321. .if n \{\
  2322. .RE
  2323. .\}
  2324. .if n \{\
  2325. .sp
  2326. .\}
  2327. .RS 4
  2328. .it 1 an-trap
  2329. .nr an-no-space-flag 1
  2330. .nr an-break-flag 1
  2331. .br
  2332. .ps +1
  2333. \fBNote\fR
  2334. .ps -1
  2335. .br
  2336. .sp
  2337. The index is printed to the console using \-S option\&.
  2338. .sp .5v
  2339. .RE
  2340. .RE
  2341. .sp
  2342. .it 1 an-trap
  2343. .nr an-no-space-flag 1
  2344. .nr an-break-flag 1
  2345. .br
  2346. .ps +1
  2347. \fBDownload a file using a local .metalink file with user preference\fR
  2348. .RS 4
  2349. .sp
  2350. .if n \{\
  2351. .RS 4
  2352. .\}
  2353. .nf
  2354. aria2c \-\-metalink\-location=JP,US \-\-metalink\-version=1\&.1 \-\-metalink\-language=en\-US file\&.metalink
  2355. .fi
  2356. .if n \{\
  2357. .RE
  2358. .\}
  2359. .RE
  2360. .SS "BitTorrent Download"
  2361. .sp
  2362. .it 1 an-trap
  2363. .nr an-no-space-flag 1
  2364. .nr an-break-flag 1
  2365. .br
  2366. .ps +1
  2367. \fBDownload files from remote BitTorrent file\fR
  2368. .RS 4
  2369. .sp
  2370. .if n \{\
  2371. .RS 4
  2372. .\}
  2373. .nf
  2374. aria2c \-\-follow\-torrent=mem "http://host/file\&.torrent"
  2375. .fi
  2376. .if n \{\
  2377. .RE
  2378. .\}
  2379. .RE
  2380. .sp
  2381. .it 1 an-trap
  2382. .nr an-no-space-flag 1
  2383. .nr an-break-flag 1
  2384. .br
  2385. .ps +1
  2386. \fBDownload using a local torrent file\fR
  2387. .RS 4
  2388. .sp
  2389. .if n \{\
  2390. .RS 4
  2391. .\}
  2392. .nf
  2393. aria2c \-\-max\-upload\-limit=40K file\&.torrent
  2394. .fi
  2395. .if n \{\
  2396. .RE
  2397. .\}
  2398. .if n \{\
  2399. .sp
  2400. .\}
  2401. .RS 4
  2402. .it 1 an-trap
  2403. .nr an-no-space-flag 1
  2404. .nr an-break-flag 1
  2405. .br
  2406. .ps +1
  2407. \fBNote\fR
  2408. .ps -1
  2409. .br
  2410. .sp
  2411. \-\-max\-upload\-limit specifies the max of upload rate\&.
  2412. .sp .5v
  2413. .RE
  2414. .if n \{\
  2415. .sp
  2416. .\}
  2417. .RS 4
  2418. .it 1 an-trap
  2419. .nr an-no-space-flag 1
  2420. .nr an-break-flag 1
  2421. .br
  2422. .ps +1
  2423. \fBNote\fR
  2424. .ps -1
  2425. .br
  2426. .sp
  2427. To pause a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument in the same directory\&.
  2428. .sp .5v
  2429. .RE
  2430. .RE
  2431. .sp
  2432. .it 1 an-trap
  2433. .nr an-no-space-flag 1
  2434. .nr an-break-flag 1
  2435. .br
  2436. .ps +1
  2437. \fBDownload 2 torrents\fR
  2438. .RS 4
  2439. .sp
  2440. .if n \{\
  2441. .RS 4
  2442. .\}
  2443. .nf
  2444. aria2c \-j2 file1\&.torrent file2\&.torrent
  2445. .fi
  2446. .if n \{\
  2447. .RE
  2448. .\}
  2449. .RE
  2450. .sp
  2451. .it 1 an-trap
  2452. .nr an-no-space-flag 1
  2453. .nr an-break-flag 1
  2454. .br
  2455. .ps +1
  2456. \fBDownload a file using torrent and HTTP/FTP server\fR
  2457. .RS 4
  2458. .sp
  2459. .if n \{\
  2460. .RS 4
  2461. .\}
  2462. .nf
  2463. aria2c \-Ttest\&.torrent "http://host1/file" "ftp://host2/file"
  2464. .fi
  2465. .if n \{\
  2466. .RE
  2467. .\}
  2468. .if n \{\
  2469. .sp
  2470. .\}
  2471. .RS 4
  2472. .it 1 an-trap
  2473. .nr an-no-space-flag 1
  2474. .nr an-break-flag 1
  2475. .br
  2476. .ps +1
  2477. \fBNote\fR
  2478. .ps -1
  2479. .br
  2480. .sp
  2481. Downloading multi file torrent with HTTP/FTP is not supported\&.
  2482. .sp .5v
  2483. .RE
  2484. .RE
  2485. .sp
  2486. .it 1 an-trap
  2487. .nr an-no-space-flag 1
  2488. .nr an-break-flag 1
  2489. .br
  2490. .ps +1
  2491. \fBDownload only selected files using index(usually called "selectable download")\fR
  2492. .RS 4
  2493. .sp
  2494. .if n \{\
  2495. .RS 4
  2496. .\}
  2497. .nf
  2498. aria2c \-\-select\-file=1\-4,8 file\&.torrent
  2499. .fi
  2500. .if n \{\
  2501. .RE
  2502. .\}
  2503. .if n \{\
  2504. .sp
  2505. .\}
  2506. .RS 4
  2507. .it 1 an-trap
  2508. .nr an-no-space-flag 1
  2509. .nr an-break-flag 1
  2510. .br
  2511. .ps +1
  2512. \fBNote\fR
  2513. .ps -1
  2514. .br
  2515. .sp
  2516. The index is printed to the console using \-S option\&.
  2517. .sp .5v
  2518. .RE
  2519. .RE
  2520. .sp
  2521. .it 1 an-trap
  2522. .nr an-no-space-flag 1
  2523. .nr an-break-flag 1
  2524. .br
  2525. .ps +1
  2526. \fBSpecify output filename\fR
  2527. .RS 4
  2528. .sp
  2529. To specify output filename for BitTorrent downloads, you need to know the index of file in torrent file using \fB\-S\fR option\&. For example, the output looks like this:
  2530. .sp
  2531. .if n \{\
  2532. .RS 4
  2533. .\}
  2534. .nf
  2535. idx|path/length
  2536. ===+======================
  2537. 1|dist/base\-2\&.6\&.18\&.iso
  2538. |99\&.9MiB
  2539. \-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
  2540. 2|dist/driver\-2\&.6\&.18\&.iso
  2541. |169\&.0MiB
  2542. \-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
  2543. .fi
  2544. .if n \{\
  2545. .RE
  2546. .\}
  2547. .sp
  2548. To save \fIdist/base\-2\&.6\&.18\&.iso\fR in \fI/tmp/mydir/base\&.iso\fR and \fIdist/driver\-2\&.6\&.18\&.iso\fR in \fI/tmp/dir/driver\&.iso\fR, use the following command:
  2549. .sp
  2550. .if n \{\
  2551. .RS 4
  2552. .\}
  2553. .nf
  2554. aria2c \-\-dir=/tmp \-\-index\-out=1=mydir/base\&.iso \-\-index\-out=2=dir/driver\&.iso file\&.torrent
  2555. .fi
  2556. .if n \{\
  2557. .RE
  2558. .\}
  2559. .RE
  2560. .sp
  2561. .it 1 an-trap
  2562. .nr an-no-space-flag 1
  2563. .nr an-break-flag 1
  2564. .br
  2565. .ps +1
  2566. \fBChange the listening port for incoming peer\fR
  2567. .RS 4
  2568. .sp
  2569. .if n \{\
  2570. .RS 4
  2571. .\}
  2572. .nf
  2573. aria2c \-\-listen\-port=7000\-7001,8000 file\&.torrent
  2574. .fi
  2575. .if n \{\
  2576. .RE
  2577. .\}
  2578. .if n \{\
  2579. .sp
  2580. .\}
  2581. .RS 4
  2582. .it 1 an-trap
  2583. .nr an-no-space-flag 1
  2584. .nr an-break-flag 1
  2585. .br
  2586. .ps +1
  2587. \fBNote\fR
  2588. .ps -1
  2589. .br
  2590. .sp
  2591. Since aria2 doesn\(cqt configure firewall or router for port forwarding, it\(cqs up to you to do it manually\&.
  2592. .sp .5v
  2593. .RE
  2594. .RE
  2595. .sp
  2596. .it 1 an-trap
  2597. .nr an-no-space-flag 1
  2598. .nr an-break-flag 1
  2599. .br
  2600. .ps +1
  2601. \fBSpecify the condition to stop program after torrent download finished\fR
  2602. .RS 4
  2603. .sp
  2604. .if n \{\
  2605. .RS 4
  2606. .\}
  2607. .nf
  2608. aria2c \-\-seed\-time=120 \-\-seed\-ratio=1\&.0 file\&.torrent
  2609. .fi
  2610. .if n \{\
  2611. .RE
  2612. .\}
  2613. .if n \{\
  2614. .sp
  2615. .\}
  2616. .RS 4
  2617. .it 1 an-trap
  2618. .nr an-no-space-flag 1
  2619. .nr an-break-flag 1
  2620. .br
  2621. .ps +1
  2622. \fBNote\fR
  2623. .ps -1
  2624. .br
  2625. .sp
  2626. In the above example, the program exits when the 120 minutes has elapsed since download completed or seed ratio reaches 1\&.0\&.
  2627. .sp .5v
  2628. .RE
  2629. .RE
  2630. .sp
  2631. .it 1 an-trap
  2632. .nr an-no-space-flag 1
  2633. .nr an-break-flag 1
  2634. .br
  2635. .ps +1
  2636. \fBThrottle upload speed\fR
  2637. .RS 4
  2638. .sp
  2639. .if n \{\
  2640. .RS 4
  2641. .\}
  2642. .nf
  2643. aria2c \-\-max\-upload\-limit=100K file\&.torrent
  2644. .fi
  2645. .if n \{\
  2646. .RE
  2647. .\}
  2648. .RE
  2649. .sp
  2650. .it 1 an-trap
  2651. .nr an-no-space-flag 1
  2652. .nr an-break-flag 1
  2653. .br
  2654. .ps +1
  2655. \fBEnable DHT\fR
  2656. .RS 4
  2657. .sp
  2658. .if n \{\
  2659. .RS 4
  2660. .\}
  2661. .nf
  2662. aria2c \-\-enable\-dht \-\-dht\-listen\-port=6881 file\&.torrent
  2663. .fi
  2664. .if n \{\
  2665. .RE
  2666. .\}
  2667. .if n \{\
  2668. .sp
  2669. .\}
  2670. .RS 4
  2671. .it 1 an-trap
  2672. .nr an-no-space-flag 1
  2673. .nr an-break-flag 1
  2674. .br
  2675. .ps +1
  2676. \fBNote\fR
  2677. .ps -1
  2678. .br
  2679. .sp
  2680. DHT uses udp port\&. Since aria2 doesn\(cqt configure firewall or router for port forwarding, it\(cqs up to you to do it manually\&.
  2681. .sp .5v
  2682. .RE
  2683. .RE
  2684. .SS "More advanced HTTP features"
  2685. .sp
  2686. .it 1 an-trap
  2687. .nr an-no-space-flag 1
  2688. .nr an-break-flag 1
  2689. .br
  2690. .ps +1
  2691. \fBLoad cookies\fR
  2692. .RS 4
  2693. .sp
  2694. .if n \{\
  2695. .RS 4
  2696. .\}
  2697. .nf
  2698. aria2c \-\-load\-cookies=cookies\&.txt "http://host/file\&.zip"
  2699. .fi
  2700. .if n \{\
  2701. .RE
  2702. .\}
  2703. .if n \{\
  2704. .sp
  2705. .\}
  2706. .RS 4
  2707. .it 1 an-trap
  2708. .nr an-no-space-flag 1
  2709. .nr an-break-flag 1
  2710. .br
  2711. .ps +1
  2712. \fBNote\fR
  2713. .ps -1
  2714. .br
  2715. .sp
  2716. You can use Firefox/Mozilla\(cqs cookie file without modification\&.
  2717. .sp .5v
  2718. .RE
  2719. .RE
  2720. .sp
  2721. .it 1 an-trap
  2722. .nr an-no-space-flag 1
  2723. .nr an-break-flag 1
  2724. .br
  2725. .ps +1
  2726. \fBResume download started by web browsers or another programs\fR
  2727. .RS 4
  2728. .sp
  2729. .if n \{\
  2730. .RS 4
  2731. .\}
  2732. .nf
  2733. aria2c \-c \-s2 "http://host/partiallydownloadedfile\&.zip"
  2734. .fi
  2735. .if n \{\
  2736. .RE
  2737. .\}
  2738. .RE
  2739. .sp
  2740. .it 1 an-trap
  2741. .nr an-no-space-flag 1
  2742. .nr an-break-flag 1
  2743. .br
  2744. .ps +1
  2745. \fBClient certificate authorization for SSL/TLS\fR
  2746. .RS 4
  2747. .sp
  2748. .if n \{\
  2749. .RS 4
  2750. .\}
  2751. .nf
  2752. aria2c \-\-certificate=/path/to/mycert\&.pem \-\-private\-key=/path/to/mykey\&.pem https://host/file
  2753. .fi
  2754. .if n \{\
  2755. .RE
  2756. .\}
  2757. .if n \{\
  2758. .sp
  2759. .\}
  2760. .RS 4
  2761. .it 1 an-trap
  2762. .nr an-no-space-flag 1
  2763. .nr an-break-flag 1
  2764. .br
  2765. .ps +1
  2766. \fBNote\fR
  2767. .ps -1
  2768. .br
  2769. .sp
  2770. The file specified in \fB\-\-private\-key\fR must be decrypted\&. The behavior when encrypted one is given is undefined\&.
  2771. .sp .5v
  2772. .RE
  2773. .RE
  2774. .sp
  2775. .it 1 an-trap
  2776. .nr an-no-space-flag 1
  2777. .nr an-break-flag 1
  2778. .br
  2779. .ps +1
  2780. \fBVerify peer in SSL/TLS using given CA certificates\fR
  2781. .RS 4
  2782. .sp
  2783. .if n \{\
  2784. .RS 4
  2785. .\}
  2786. .nf
  2787. aria2c \-\-ca\-certificate=/path/to/ca\-certificates\&.crt \-\-check\-certificate https://host/file
  2788. .fi
  2789. .if n \{\
  2790. .RE
  2791. .\}
  2792. .RE
  2793. .SS "And more advanced features"
  2794. .sp
  2795. .it 1 an-trap
  2796. .nr an-no-space-flag 1
  2797. .nr an-break-flag 1
  2798. .br
  2799. .ps +1
  2800. \fBThrottle download speed\fR
  2801. .RS 4
  2802. .sp
  2803. .if n \{\
  2804. .RS 4
  2805. .\}
  2806. .nf
  2807. aria2c \-\-max\-download\-limit=100K file\&.metalink
  2808. .fi
  2809. .if n \{\
  2810. .RE
  2811. .\}
  2812. .RE
  2813. .sp
  2814. .it 1 an-trap
  2815. .nr an-no-space-flag 1
  2816. .nr an-break-flag 1
  2817. .br
  2818. .ps +1
  2819. \fBRepair a damaged download using -V option\fR
  2820. .RS 4
  2821. .sp
  2822. .if n \{\
  2823. .RS 4
  2824. .\}
  2825. .nf
  2826. aria2c \-V file\&.metalink
  2827. .fi
  2828. .if n \{\
  2829. .RE
  2830. .\}
  2831. .if n \{\
  2832. .sp
  2833. .\}
  2834. .RS 4
  2835. .it 1 an-trap
  2836. .nr an-no-space-flag 1
  2837. .nr an-break-flag 1
  2838. .br
  2839. .ps +1
  2840. \fBNote\fR
  2841. .ps -1
  2842. .br
  2843. .sp
  2844. This option is only available used with BitTorrent or metalink with chunk checksums\&.
  2845. .sp .5v
  2846. .RE
  2847. .RE
  2848. .sp
  2849. .it 1 an-trap
  2850. .nr an-no-space-flag 1
  2851. .nr an-break-flag 1
  2852. .br
  2853. .ps +1
  2854. \fBDrop connection if download speed is lower than specified value\fR
  2855. .RS 4
  2856. .sp
  2857. .if n \{\
  2858. .RS 4
  2859. .\}
  2860. .nf
  2861. aria2c \-\-lowest\-speed\-limit=10K file\&.metalink
  2862. .fi
  2863. .if n \{\
  2864. .RE
  2865. .\}
  2866. .RE
  2867. .sp
  2868. .it 1 an-trap
  2869. .nr an-no-space-flag 1
  2870. .nr an-break-flag 1
  2871. .br
  2872. .ps +1
  2873. \fBParameterized URI support\fR
  2874. .RS 4
  2875. .sp
  2876. You can specify set of parts:
  2877. .sp
  2878. .if n \{\
  2879. .RS 4
  2880. .\}
  2881. .nf
  2882. aria2c \-P "http://{host1,host2,host3}/file\&.iso"
  2883. .fi
  2884. .if n \{\
  2885. .RE
  2886. .\}
  2887. .sp
  2888. You can specify numeric sequence:
  2889. .sp
  2890. .if n \{\
  2891. .RS 4
  2892. .\}
  2893. .nf
  2894. aria2c \-Z \-P "http://host/image[000\-100]\&.png"
  2895. .fi
  2896. .if n \{\
  2897. .RE
  2898. .\}
  2899. .sp
  2900. .if n \{\
  2901. .sp
  2902. .\}
  2903. .RS 4
  2904. .it 1 an-trap
  2905. .nr an-no-space-flag 1
  2906. .nr an-break-flag 1
  2907. .br
  2908. .ps +1
  2909. \fBNote\fR
  2910. .ps -1
  2911. .br
  2912. .sp
  2913. \-Z option is required if the all URIs don\(cqt point to the same file, such as the above example\&.
  2914. .sp .5v
  2915. .RE
  2916. .sp
  2917. You can specify step counter:
  2918. .sp
  2919. .if n \{\
  2920. .RS 4
  2921. .\}
  2922. .nf
  2923. aria2c \-Z \-P "http://host/image[A\-Z:2]\&.png"
  2924. .fi
  2925. .if n \{\
  2926. .RE
  2927. .\}
  2928. .RE
  2929. .sp
  2930. .it 1 an-trap
  2931. .nr an-no-space-flag 1
  2932. .nr an-break-flag 1
  2933. .br
  2934. .ps +1
  2935. \fBParallel downloads of arbitrary number of URL,metalink,torrent\fR
  2936. .RS 4
  2937. .sp
  2938. .if n \{\
  2939. .RS 4
  2940. .\}
  2941. .nf
  2942. aria2c \-j3 \-Z "http://host/file1" file2\&.torrent file3\&.metalink
  2943. .fi
  2944. .if n \{\
  2945. .RE
  2946. .\}
  2947. .RE
  2948. .sp
  2949. .it 1 an-trap
  2950. .nr an-no-space-flag 1
  2951. .nr an-break-flag 1
  2952. .br
  2953. .ps +1
  2954. \fBBitTorrent Encryption\fR
  2955. .RS 4
  2956. .sp
  2957. Encrypt whole payload using ARC4:
  2958. .sp
  2959. .if n \{\
  2960. .RS 4
  2961. .\}
  2962. .nf
  2963. aria2c \-\-bt\-min\-crypto\-level=arc4 \-\-bt\-require\-crypto=true file\&.torrent
  2964. .fi
  2965. .if n \{\
  2966. .RE
  2967. .\}
  2968. .RE
  2969. .SH "SEE ALSO"
  2970. .sp
  2971. Project Web Site: http://aria2\&.sourceforge\&.net/
  2972. .sp
  2973. aria2 Wiki: http://apps\&.sourceforge\&.net/trac/aria2/wiki
  2974. .sp
  2975. Metalink Homepage: http://www\&.metalinker\&.org/
  2976. .SH "COPYRIGHT"
  2977. .sp
  2978. Copyright \(co 2006, 2009 Tatsuhiro Tsujikawa
  2979. .sp
  2980. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version\&.
  2981. .sp
  2982. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
  2983. .sp
  2984. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc\&., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301 USA
  2985. .sp
  2986. In addition, as a special exception, the copyright holders give permission to link the code of portions of this program with the OpenSSL library under certain conditions as described in each individual source file, and distribute linked combinations including the two\&. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL\&. If you modify file(s) with this exception, you may extend this exception to your version of the file(s), but you are not obligated to do so\&. If you do not wish to do so, delete this exception statement from your version\&. If you delete this exception statement from all source files in the program, then also delete it here\&.