aria2c.1 43 KB

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