aria2c.1 45 KB

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