aria2c.1 40 KB

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