aria2c.1 39 KB

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