aria2c.1 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.73.1 <http://docbook.sf.net/>
  4. .\" Date: 11/29/2007
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "11/29/2007" "" ""
  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. \fIaria2c\fR [OPTIONS] URL \&...
  17. .sp
  18. \fIaria2c\fR [OPTIONS] \-T TORRENT_FILE [URL \&...]
  19. .sp
  20. \fIaria2c\fR [OPTIONS] \-M METALINK_FILE
  21. .sp
  22. .SH "DESCRIPTION"
  23. aria2 is a utility for downloading files\. The supported protocols are http(s)/ftp/BitTorrent/Metalink\. aria2 has powerful segmented downloading ability, downloading a file from multiple sources and multiple protocols, utilizing your download bandwidth to the max\. It even supports downloading a file from http(s)/ftp and BitTorrent at the same time, while the data downloaded form http(s)/ftp is uploaded to BitTorrent swarm\.
  24. .sp
  25. aria2 also provides most reliable http(s)/ftp downloading experience ever\. Using Metalink\'s chunk checksums, aria2 automatically validates chunk of data while downloading a file like BitTorrent\.
  26. .sp
  27. .SH "OPTIONS"
  28. .PP
  29. \-d, \-\-dir=DIR
  30. .RS 4
  31. The directory to store the downloaded file\.
  32. .RE
  33. .PP
  34. \-o, \-\-out=FILE
  35. .RS 4
  36. The file name of the downloaded file\.
  37. .RE
  38. .PP
  39. \-l, \-\-log=LOG
  40. .RS 4
  41. The file name of the log file\. If
  42. \fI\-\fR
  43. is specified, log is written to stdout\.
  44. .RE
  45. .PP
  46. \-D, \-\-daemon
  47. .RS 4
  48. Run as daemon\.
  49. .RE
  50. .PP
  51. \-s, \-\-split=N
  52. .RS 4
  53. Download a file using N connections\. N must be between
  54. \fI1\fR
  55. and
  56. \fI5\fR\. This option affects all URLs\. Thus, aria2 connects to each URL with N connections\. Default:
  57. \fI1\fR
  58. .RE
  59. .PP
  60. \-\-retry\-wait=SEC
  61. .RS 4
  62. Set the seconds to wait to retry after an error has occured\. Specify a value between
  63. \fI0\fR
  64. and
  65. \fI60\fR\. Default:
  66. \fI5\fR
  67. .RE
  68. .PP
  69. \-t, \-\-timeout=SEC
  70. .RS 4
  71. Set timeout in seconds\. Default:
  72. \fI60\fR
  73. .RE
  74. .PP
  75. \-m, \-\-max\-tries=N
  76. .RS 4
  77. Set number of tries\.
  78. \fI0\fR
  79. means unlimited\. Default:
  80. \fI5\fR
  81. .RE
  82. .PP
  83. \-\-http\-proxy=HOST:PORT
  84. .RS 4
  85. Use HTTP proxy server\. This affects all URLs\.
  86. .RE
  87. .PP
  88. \-\-http\-user=USER
  89. .RS 4
  90. Set HTTP user\. This affects all URLs\.
  91. .RE
  92. .PP
  93. \-\-http\-passwd=PASSWD
  94. .RS 4
  95. Set HTTP password\. This affects all URLs\.
  96. .RE
  97. .PP
  98. \-\-http\-proxy\-user=USER
  99. .RS 4
  100. Set HTTP proxy user\. This affects all URLs\.
  101. .RE
  102. .PP
  103. \-\-http\-proxy\-passwd=PASSWD
  104. .RS 4
  105. Set HTTP proxy password\. This affects all URLs\.
  106. .RE
  107. .PP
  108. \-\-http\-proxy\-method=METHOD
  109. .RS 4
  110. Set the method to use in proxy request\.
  111. \fIMETHOD\fR
  112. is either
  113. \fIget\fR
  114. or
  115. \fItunnel\fR\. Default:
  116. \fItunnel\fR
  117. .RE
  118. .PP
  119. \-\-http\-auth\-scheme=SCHEME
  120. .RS 4
  121. Set HTTP authentication scheme\. Currently,
  122. \fIbasic\fR
  123. is the only supported scheme\. Default:
  124. \fIbasic\fR
  125. .RE
  126. .PP
  127. \-\-referer=REFERER
  128. .RS 4
  129. Set Referer\. This affects all URLs\.
  130. .RE
  131. .PP
  132. \-\-ftp\-user=USER
  133. .RS 4
  134. Set FTP user\. This affects all URLs\. Default:
  135. \fIanonymous\fR
  136. .RE
  137. .PP
  138. \-\-ftp\-passwd=PASSWD
  139. .RS 4
  140. Set FTP password\. This affects all URLs\. Default:
  141. \fIARIA2USER@\fR
  142. .RE
  143. .PP
  144. \-\-ftp\-type=TYPE
  145. .RS 4
  146. Set FTP transfer type\. TYPE is either
  147. \fIbinary\fR
  148. or
  149. \fIascii\fR\. Default:
  150. \fIbinary\fR
  151. .RE
  152. .PP
  153. \-p, \-\-ftp\-pasv
  154. .RS 4
  155. Use passive mode in FTP\.
  156. .RE
  157. .PP
  158. \-\-ftp\-via\-http\-proxy=METHOD
  159. .RS 4
  160. Use HTTP proxy in
  161. \fIFTP\fR\.
  162. \fIMETHOD\fR
  163. is either
  164. \fIget\fR
  165. or
  166. \fItunnel\fR\. Default:
  167. \fItunnel\fR
  168. .RE
  169. .PP
  170. \-\-lowest\-speed\-limit=SPEED
  171. .RS 4
  172. Close connection if download speed is lower than or equal to this value(bytes per sec)\.
  173. \fI0\fR
  174. means aria2 does not have a lowest speed limit\. You can append
  175. \fIK\fR
  176. or
  177. \fIM\fR(1K = 1024, 1M = 1024K)\. This option does not affect BitTorrent downloads\. Default:
  178. \fI0\fR
  179. .RE
  180. .PP
  181. \-\-max\-download\-limit=SPEED
  182. .RS 4
  183. Set max download speed in bytes per sec\.
  184. \fI0\fR
  185. means unrestricted\. You can append
  186. \fIK\fR
  187. or
  188. \fIM\fR(1K = 1024, 1M = 1024K)\. Default:
  189. \fI0\fR
  190. .RE
  191. .PP
  192. \-\-file\-allocation=METHOD
  193. .RS 4
  194. Specify file allocation method\. METHOD is either
  195. \fInone\fR
  196. or
  197. \fIprealloc\fR\.
  198. \fInone\fR
  199. doesn\'t pre\-allocate file space\.
  200. \fIprealloc\fR
  201. pre\-allocates file space before download begins\. This may take some time depending on the size of the file\. Default:
  202. \fIprealloc\fR
  203. .PP
  204. Note
  205. .RS 4
  206. In multi file torrent, the files adjacent forward to the specified files are also allocated if they share a same piece\.
  207. .RE
  208. .RE
  209. .PP
  210. \-\-no\-file\-allocation\-limit=SIZE
  211. .RS 4
  212. No file allocation is made for files whose size is smaller than SIZE\. You can append
  213. \fIK\fR
  214. or
  215. \fIM\fR(1K = 1024, 1M = 1024K)\. Default:
  216. \fI5M\fR
  217. .RE
  218. .PP
  219. \-\-enable\-direct\-io[=\fItrue\fR|\fIfalse\fR]
  220. .RS 4
  221. Enable directI/O, which lowers cpu usage while allocating files\. Turn off if you encounter any error\. Default:
  222. \fIfalse\fR
  223. .RE
  224. .PP
  225. \-\-allow\-overwrite=\fItrue\fR|\fIfalse\fR
  226. .RS 4
  227. If
  228. \fIfalse\fR
  229. 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 \-\-auto\-file\-renaming=\fItrue\fR
  230. then, file name will be renamed\. See \-\-auto\-file\-renaming for details\. Default:
  231. \fIfalse\fR
  232. .RE
  233. .PP
  234. \-Z, \-\-force\-sequential[=\fItrue\fR|\fIfalse\fR]
  235. .RS 4
  236. Fetch URIs in the command\-line sequentially and download each URI in a separate session, like the usual command\-line download utilities\. Default:
  237. \fIfalse\fR
  238. .RE
  239. .PP
  240. \-\-auto\-file\-renaming[=\fItrue\fR|\fIfalse\fR]
  241. .RS 4
  242. 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:
  243. \fItrue\fR
  244. .RE
  245. .PP
  246. \-P, \-\-parameterized\-uri[=\fItrue\fR|\fIfalse\fR]
  247. .RS 4
  248. Enable parameterized URI support\. You can specify set of parts:
  249. \fIhttp://{sv1,sv2,sv3}/foo\.iso\fR\. Also you can specify numeric sequences with step counter:
  250. \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:
  251. \fIfalse\fR
  252. .RE
  253. .PP
  254. \-\-enable\-http\-keep\-alive[=\fItrue\fR|\fIfalse\fR]
  255. .RS 4
  256. Enable HTTP/1\.1 persistent connection\. Default:
  257. \fIfalse\fR
  258. .RE
  259. .PP
  260. \-\-enable\-http\-pipelining[=\fItrue\fR|\fIfalse\fR]
  261. .RS 4
  262. Enable HTTP/1\.1 pipelining\. Default:
  263. \fIfalse\fR
  264. .RE
  265. .PP
  266. \-\-check\-integrity=\fItrue\fR|\fIfalse\fR
  267. .RS 4
  268. 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:
  269. \fIfalse\fR
  270. .RE
  271. .PP
  272. \-\-realtime\-chunk\-checksum=\fItrue\fR|\fIfalse\fR
  273. .RS 4
  274. 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:
  275. \fItrue\fR
  276. .RE
  277. .PP
  278. \-c, \-\-continue
  279. .RS 4
  280. 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\.
  281. .RE
  282. .PP
  283. \-U, \-\-user\-agent=USER_AGENT
  284. .RS 4
  285. Set user agent for http(s) downloads\.
  286. .RE
  287. .PP
  288. \-n, \-\-no\-netrc
  289. .RS 4
  290. Disables netrc support\. netrc support is enabled by default\.
  291. .RE
  292. .PP
  293. \-i, \-\-input\-file=FILE
  294. .RS 4
  295. 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
  296. \fI\-\fR
  297. is specified\.
  298. .RE
  299. .PP
  300. \-j, \-\-max\-concurrent\-downloads=N
  301. .RS 4
  302. Set maximum number of concurrent downloads\. It should be used with the \-i option\. Default:
  303. \fI5\fR
  304. .RE
  305. .PP
  306. \-\-load\-cookies=FILE
  307. .RS 4
  308. Load cookies from FILE\. The format of FILE is the same used by Netscape and Mozilla\.
  309. .RE
  310. .PP
  311. \-S, \-\-show\-files
  312. .RS 4
  313. Print file listing of \.torrent or \.metalink file and exit\. In case of \.torrent file, additional information (infohash, piece length, etc) is also printed\.
  314. .RE
  315. .PP
  316. \-\-select\-file=INDEX\&...
  317. .RS 4
  318. Set file to download by specifing its index\. You can find the file index using the \-\-show\-files option\. Multiple indexes can be specified by using ",", for example:
  319. \fI3,6\fR\. You can also use "\-" to specify a range:
  320. \fI1\-5\fR\. "," and "\-" can be used together:
  321. \fI1\-5,8,9\fR\. When used with the \-M option, index may vary depending on the query (see \-\-metalink\-* options)\.
  322. .PP
  323. Note
  324. .RS 4
  325. 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\.
  326. .RE
  327. .RE
  328. .PP
  329. \-T, \-\-torrent\-file=TORRENT_FILE
  330. .RS 4
  331. The path to the \.torrent file\.
  332. .RE
  333. .PP
  334. \-\-follow\-torrent=\fItrue\fR|\fIfalse\fR|\fImem\fR
  335. .RS 4
  336. If true or mem is specified, when a file whose suffix is \.metaink or content type is application/x\-bittorrent is downloaded, aria2 parses it as a torrent file and downloads files mentioned in it\. If mem is specified, a metalink file is not written to the disk, but is just kept in memory\. If false is specified, the action mentioned above is not taken\. Default: true
  337. .RE
  338. .PP
  339. \-\-direct\-file\-mapping=\fItrue\fR|\fIfalse\fR
  340. .RS 4
  341. 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:
  342. \fItrue\fR
  343. .RE
  344. .PP
  345. \-\-listen\-port=PORT\&...
  346. .RS 4
  347. Set TCP port number for BitTorrent downloads\. Multiple ports can be specified by using ",", for example:
  348. \fI6881,6885\fR\. You can also use "\-" to specify a range:
  349. \fI6881\-6999\fR\. "," and "\-" can be used together:
  350. \fI6881\-6889,6999\fR\. Default:
  351. \fI6881\-6999\fR
  352. .RE
  353. .PP
  354. \-\-max\-upload\-limit=SPEED
  355. .RS 4
  356. Set max upload speed in bytes per sec\.
  357. \fI0\fR
  358. means unrestricted\. You can append
  359. \fIK\fR
  360. or
  361. \fIM\fR(1K = 1024, 1M = 1024K)\. Default:
  362. \fI0\fR
  363. .RE
  364. .PP
  365. \-\-seed\-time=MINUTES
  366. .RS 4
  367. Specify seeding time in minutes\. Also see the \-\-seed\-ratio option\.
  368. .RE
  369. .PP
  370. \-\-seed\-ratio=RATIO
  371. .RS 4
  372. Specify share ratio\. Seed completed torrents until share ratio reaches] RATIO\. I strongly encourages you to specify equals or more than
  373. \fI1\.0\fR
  374. here\. Specify
  375. \fI0\.0\fR
  376. if you intend to do seeding regardless of share ratio\. If \-\-seed\-time option is specified along with this option, seeding ends when at least one of the conditions is satisfied\. Default:
  377. \fI1\.0\fR
  378. .RE
  379. .PP
  380. \-\-peer\-id\-prefix=PEERI_ID_PREFIX
  381. .RS 4
  382. 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:
  383. \fI\-aria2\-\fR
  384. .RE
  385. .PP
  386. \-M, \-\-metalink\-file=METALINK_FILE
  387. .RS 4
  388. The file path to \.metalink file\.
  389. .RE
  390. .PP
  391. \-C, \-\-metalink\-servers=NUM_SERVERS
  392. .RS 4
  393. The number of servers to connect to simultaneously\. Some metalinks regulates the number of servers to connect\. aria2 respects them\. Default:
  394. \fI5\fR
  395. .RE
  396. .PP
  397. \-\-metalink\-version=VERSION
  398. .RS 4
  399. The version of the file to download\.
  400. .RE
  401. .PP
  402. \-\-metalink\-language=LANGUAGE
  403. .RS 4
  404. The language of the file to download\.
  405. .RE
  406. .PP
  407. \-\-metalink\-os=OS
  408. .RS 4
  409. The operating system of the file to download\.
  410. .RE
  411. .PP
  412. \-\-metalink\-location=LOCATION[,\&...]
  413. .RS 4
  414. The location of the preferred server\. A comma\-deliminated list of locations is acceptable, for example,
  415. \fIJP,US\fR\.
  416. .RE
  417. .PP
  418. \-\-follow\-metalink=\fItrue\fR|\fIfalse\fR|\fImem\fR
  419. .RS 4
  420. If true or mem 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 mem is specified, a metalink file is not written to the disk, but is just kept in memory\. If false is specified, the action mentioned above is not taken\. Default:
  421. \fItrue\fR
  422. .RE
  423. .PP
  424. \-v, \-\-version
  425. .RS 4
  426. Print the version number, copyright and the configuration information and exit\.
  427. .RE
  428. .PP
  429. \-h, \-\-help
  430. .RS 4
  431. Print this message and exit\.
  432. .RE
  433. .PP
  434. URL
  435. .RS 4
  436. You can specify multiple URLs\. Unless you specify \-Z option, all URLs must point to the same file or downloading will fail\. 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\.
  437. .RE
  438. .SH "EXAMPLES"
  439. .SS "HTTP/FTP Segmented Download"
  440. .sp
  441. .it 1 an-trap
  442. .nr an-no-space-flag 1
  443. .nr an-break-flag 1
  444. .br
  445. Download a file using 1 connection
  446. .RS
  447. .sp
  448. .RS 4
  449. .nf
  450. aria2c http://host/file\.zip
  451. .fi
  452. .RE
  453. .sp
  454. .it 1 an-trap
  455. .nr an-no-space-flag 1
  456. .nr an-break-flag 1
  457. .br
  458. Note
  459. To pause a download, press Ctrl\-C\. You can resume the transfer by run aria2c with the same argument at the same directory\. You can change URLs as long as they are pointing to the same file\.
  460. .sp
  461. .RE
  462. .sp
  463. .it 1 an-trap
  464. .nr an-no-space-flag 1
  465. .nr an-break-flag 1
  466. .br
  467. Download a file using 2 connections
  468. .RS
  469. .sp
  470. .RS 4
  471. .nf
  472. aria2c \-s 2 http://host/file\.zip
  473. .fi
  474. .RE
  475. .RE
  476. .sp
  477. .it 1 an-trap
  478. .nr an-no-space-flag 1
  479. .nr an-break-flag 1
  480. .br
  481. Download a file from 2 difference http servers
  482. .RS
  483. .sp
  484. .RS 4
  485. .nf
  486. aria2c http://host1/file\.zip ftp://host2/file\.zip
  487. .fi
  488. .RE
  489. .RE
  490. .sp
  491. .it 1 an-trap
  492. .nr an-no-space-flag 1
  493. .nr an-break-flag 1
  494. .br
  495. Download a file from http and ftp servers
  496. .RS
  497. .sp
  498. .RS 4
  499. .nf
  500. aria2c http://host1/file\.zip ftp://host2/file\.zip
  501. .fi
  502. .RE
  503. .RE
  504. .sp
  505. .it 1 an-trap
  506. .nr an-no-space-flag 1
  507. .nr an-break-flag 1
  508. .br
  509. Download files listed in a file concurrently
  510. .RS
  511. .sp
  512. .RS 4
  513. .nf
  514. aria2c \-i files\.txt \-j 5
  515. .fi
  516. .RE
  517. .sp
  518. .it 1 an-trap
  519. .nr an-no-space-flag 1
  520. .nr an-break-flag 1
  521. .br
  522. Note
  523. \-j option specifies the number of concurrent downloads\.
  524. .sp
  525. .RE
  526. .SS "Metalink Download"
  527. .sp
  528. .it 1 an-trap
  529. .nr an-no-space-flag 1
  530. .nr an-break-flag 1
  531. .br
  532. Download files with remote Metalink
  533. .RS
  534. .sp
  535. .RS 4
  536. .nf
  537. aria2c \-\-follow\-metalink=mem http://host/file\.metalink
  538. .fi
  539. .RE
  540. .RE
  541. .sp
  542. .it 1 an-trap
  543. .nr an-no-space-flag 1
  544. .nr an-break-flag 1
  545. .br
  546. Download using a local metalink file
  547. .RS
  548. .sp
  549. .RS 4
  550. .nf
  551. aria2c \-p \-t 10 \-\-lowest\-speed\-limit 4000 \-M test\.metalink
  552. .fi
  553. .RE
  554. .sp
  555. .it 1 an-trap
  556. .nr an-no-space-flag 1
  557. .nr an-break-flag 1
  558. .br
  559. Note
  560. To pause a download, press Ctrl\-C\. You can resume the transfer by run aria2c with the same argument at the same directory\.
  561. .sp
  562. .RE
  563. .sp
  564. .it 1 an-trap
  565. .nr an-no-space-flag 1
  566. .nr an-break-flag 1
  567. .br
  568. Download only selected files using index
  569. .RS
  570. .sp
  571. .RS 4
  572. .nf
  573. aria2c \-M test\.metalink \-\-select\-file 1\-4,8
  574. .fi
  575. .RE
  576. .sp
  577. .it 1 an-trap
  578. .nr an-no-space-flag 1
  579. .nr an-break-flag 1
  580. .br
  581. Note
  582. The index is printed to the console using \-S option\.
  583. .sp
  584. .RE
  585. .sp
  586. .it 1 an-trap
  587. .nr an-no-space-flag 1
  588. .nr an-break-flag 1
  589. .br
  590. Download a file using a local .metalink file with user preference
  591. .RS
  592. .sp
  593. .RS 4
  594. .nf
  595. aria2c \-M test\.metalink \-\-metalink\-location=JP,US \-\-metalink\-version=1\.1 \-\-metalink\-language=en\-US
  596. .fi
  597. .RE
  598. .RE
  599. .SS "BitTorrent Download"
  600. .sp
  601. .it 1 an-trap
  602. .nr an-no-space-flag 1
  603. .nr an-break-flag 1
  604. .br
  605. Download files from remote BitTorrent file
  606. .RS
  607. .sp
  608. .RS 4
  609. .nf
  610. aria2c \-\-follow\-bittorrent=mem http://host/file\.torrent
  611. .fi
  612. .RE
  613. .RE
  614. .sp
  615. .it 1 an-trap
  616. .nr an-no-space-flag 1
  617. .nr an-break-flag 1
  618. .br
  619. Download using a local torrent file
  620. .RS
  621. .sp
  622. .RS 4
  623. .nf
  624. aria2c \-\-max\-upload\-limit 40K \-T file\.torrent
  625. .fi
  626. .RE
  627. .sp
  628. .it 1 an-trap
  629. .nr an-no-space-flag 1
  630. .nr an-break-flag 1
  631. .br
  632. Note
  633. \-\-max\-upload\-limit specifies the max of upload rate\.
  634. .sp
  635. .sp
  636. .it 1 an-trap
  637. .nr an-no-space-flag 1
  638. .nr an-break-flag 1
  639. .br
  640. Note
  641. To pause a download, press Ctrl\-C\. You can resume the transfer by run aria2c with the same argument at the same directory\.
  642. .sp
  643. .RE
  644. .sp
  645. .it 1 an-trap
  646. .nr an-no-space-flag 1
  647. .nr an-break-flag 1
  648. .br
  649. Download a file using torrent and http/ftp server
  650. .RS
  651. .sp
  652. .RS 4
  653. .nf
  654. aria2c \-T test\.torrent http://host1/file ftp://host2/file
  655. .fi
  656. .RE
  657. .sp
  658. .it 1 an-trap
  659. .nr an-no-space-flag 1
  660. .nr an-break-flag 1
  661. .br
  662. Note
  663. Downloading multi file torrent with http/ftp is not supported\.
  664. .sp
  665. .RE
  666. .sp
  667. .it 1 an-trap
  668. .nr an-no-space-flag 1
  669. .nr an-break-flag 1
  670. .br
  671. Download only selected files using index(usually called "selectable download")
  672. .RS
  673. .sp
  674. .RS 4
  675. .nf
  676. aria2c \-T test\.torrent \-\-select\-file 1\-4,8
  677. .fi
  678. .RE
  679. .sp
  680. .it 1 an-trap
  681. .nr an-no-space-flag 1
  682. .nr an-break-flag 1
  683. .br
  684. Note
  685. The index is printed to the console using \-S option\.
  686. .sp
  687. .RE
  688. .sp
  689. .it 1 an-trap
  690. .nr an-no-space-flag 1
  691. .nr an-break-flag 1
  692. .br
  693. Change the listening port for incoming peer
  694. .RS
  695. .sp
  696. .RS 4
  697. .nf
  698. aria2c \-T test\.torrent \-\-listen\-port 7000\-7001,8000
  699. .fi
  700. .RE
  701. .RE
  702. .sp
  703. .it 1 an-trap
  704. .nr an-no-space-flag 1
  705. .nr an-break-flag 1
  706. .br
  707. Specify the condition to stop program after torrent download finished
  708. .RS
  709. .sp
  710. .RS 4
  711. .nf
  712. aria2c \-T test\.torrent \-\-seed\-time 120 \-\-seed\-ratio 1\.0
  713. .fi
  714. .RE
  715. .sp
  716. .it 1 an-trap
  717. .nr an-no-space-flag 1
  718. .nr an-break-flag 1
  719. .br
  720. Note
  721. In the above example, the program exists when the 120 minutes has elapsed since download completed or seed ratio reaches 1\.0\.
  722. .sp
  723. .RE
  724. .sp
  725. .it 1 an-trap
  726. .nr an-no-space-flag 1
  727. .nr an-break-flag 1
  728. .br
  729. Throttle upload speed
  730. .RS
  731. .sp
  732. .RS 4
  733. .nf
  734. aria2c \-T test\.torrent \-\-max\-upload\-limit 100K
  735. .fi
  736. .RE
  737. .RE
  738. .SS "More advanced HTTP features"
  739. .sp
  740. .it 1 an-trap
  741. .nr an-no-space-flag 1
  742. .nr an-break-flag 1
  743. .br
  744. Load cookies
  745. .RS
  746. .sp
  747. .RS 4
  748. .nf
  749. aria2c \-\-load\-cookies cookies\.txt http://host/file\.zip
  750. .fi
  751. .RE
  752. .sp
  753. .it 1 an-trap
  754. .nr an-no-space-flag 1
  755. .nr an-break-flag 1
  756. .br
  757. Note
  758. You can use Firefox/Mozilla\'s cookie file without modification\.
  759. .sp
  760. .RE
  761. .sp
  762. .it 1 an-trap
  763. .nr an-no-space-flag 1
  764. .nr an-break-flag 1
  765. .br
  766. Resume download started by web browsers or another programs
  767. .RS
  768. .sp
  769. .RS 4
  770. .nf
  771. aria2c \-c \-s 2 http://host/partiallydownloadedfile\.zip
  772. .fi
  773. .RE
  774. .RE
  775. .SS "And more advanced features"
  776. .sp
  777. .it 1 an-trap
  778. .nr an-no-space-flag 1
  779. .nr an-break-flag 1
  780. .br
  781. Throttle download speed
  782. .RS
  783. .sp
  784. .RS 4
  785. .nf
  786. aria2c \-M test\.metalink \-\-max\-download\-limit 100K
  787. .fi
  788. .RE
  789. .RE
  790. .sp
  791. .it 1 an-trap
  792. .nr an-no-space-flag 1
  793. .nr an-break-flag 1
  794. .br
  795. Repair a damaged download using --check-integrity option
  796. .RS
  797. .sp
  798. .RS 4
  799. .nf
  800. aria2c \-M test\.metalink \-\-check\-integrity=true
  801. .fi
  802. .RE
  803. .sp
  804. .it 1 an-trap
  805. .nr an-no-space-flag 1
  806. .nr an-break-flag 1
  807. .br
  808. Note
  809. This option is only available used with BitTorrent or metalink with chunk checksums\.
  810. .sp
  811. .RE
  812. .sp
  813. .it 1 an-trap
  814. .nr an-no-space-flag 1
  815. .nr an-break-flag 1
  816. .br
  817. Drop connection if download speed is lower than specified value
  818. .RS
  819. .sp
  820. .RS 4
  821. .nf
  822. aria2c \-M test\.metalink \-\-lowest\-speed\-limit 10K
  823. .fi
  824. .RE
  825. .RE
  826. .sp
  827. .it 1 an-trap
  828. .nr an-no-space-flag 1
  829. .nr an-break-flag 1
  830. .br
  831. Parameterized URI support
  832. .RS
  833. You can specify set of parts:
  834. .sp
  835. .sp
  836. .RS 4
  837. .nf
  838. aria2c \-P http://{host1,host2,host3}/file\.iso
  839. .fi
  840. .RE
  841. You can specify numeric sequence:
  842. .sp
  843. .sp
  844. .RS 4
  845. .nf
  846. aria2c \-Z \-P http://host/image[000\-100]\.png
  847. .fi
  848. .RE
  849. .sp
  850. .it 1 an-trap
  851. .nr an-no-space-flag 1
  852. .nr an-break-flag 1
  853. .br
  854. Note
  855. \-Z option is required if the all URIs don\'t point to the same file, such as the above example\.
  856. .sp
  857. You can specify step counter:
  858. .sp
  859. .sp
  860. .RS 4
  861. .nf
  862. aria2c \-Z \-P http://host/image[A\-Z:2]\.png
  863. .fi
  864. .RE
  865. .RE
  866. .SH "RESUME DOWNLOAD"
  867. Usually, you can resume transfer by just issuing same command(aria2c URL) if the previous transfer is made by aria2\.
  868. .sp
  869. 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)\.
  870. .sp
  871. .SH "CONTROL FILE"
  872. 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\.)
  873. .sp
  874. 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\.
  875. .sp
  876. 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\.
  877. .sp
  878. .SH "SEEDING DOWNLOADED FILE IN BITTORRENT"
  879. You can seed downloaded file using \-\-check\-integrity=true option\.
  880. .sp
  881. .sp
  882. .RS 4
  883. .nf
  884. aria2c \-\-check\-integrity=true \-T file\.torrent
  885. .fi
  886. .RE
  887. .SH "FILES"
  888. .SS "aria2\.conf"
  889. User configuration file\. It must be placed under ~/\.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\.
  890. .sp
  891. .sp
  892. .RS 4
  893. .nf
  894. # sample configuration file for aria2c
  895. file\-allocation=prealloc
  896. listen\-port=60000
  897. seed\-ratio=1\.0
  898. max\-upload\-limit=100K
  899. ftp\-pasv=true
  900. .fi
  901. .RE
  902. .SH "RESOURCES"
  903. Project web site: http://aria2\.sourceforge\.net/
  904. .sp
  905. metalink: http://www\.metalinker\.org/
  906. .sp
  907. .SH "REPORTING BUGS"
  908. Report bugs to Tatsuhiro Tsujikawa <t\-tujikawa@users\.sourceforge\.net>
  909. .sp
  910. .SH "AUTHOR"
  911. Tatsuhiro Tsujikawa <t\-tujikawa@users\.sourceforge\.net>
  912. .sp
  913. .SH "COPYRIGHT"
  914. Copyright \(co 2006, 2007 Tatsuhiro Tsujikawa
  915. .sp
  916. 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\.
  917. .sp
  918. 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\.
  919. .sp
  920. 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
  921. .sp
  922. 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\.
  923. .sp