aria2c.1 38 KB

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