aria2c.1 41 KB

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