aria2c.1 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.73.1 <http://docbook.sf.net/>
  4. .\" Date: 11/22/2007
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "11/22/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. .sp
  17. .RS 4
  18. .nf
  19. aria2c [OPTIONS] URL \.\.\.
  20. aria2c [OPTIONS] \-T TORRENT_FILE URL \.\.\.
  21. aria2c [OPTIONS] \-M METALINK_FILE
  22. .fi
  23. .RE
  24. .SH "DESCRIPTION"
  25. aria2 is a utility for downloading files\. The supporting 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/ftp and BitTorrent at the same time, while the data downloaded form http/ftp is uploaded to BitTorrent swarm\.
  26. .sp
  27. aria2 also provides most reliable http/ftp downloading experience ever\. Using Metalink\'s chunk checksums, aria2 automatically validates chunk of data while downloading like BitTorrent\.
  28. .sp
  29. Please visit the project web site at http://aria2\.sourceforge\.net/
  30. .sp
  31. .SH "OPTIONS"
  32. .PP
  33. \-d, \-\-dir=DIR
  34. .RS 4
  35. The directory to store the downloaded file\.
  36. .RE
  37. .PP
  38. \-o, \-\-out=FILE
  39. .RS 4
  40. The file name of the downloaded file\.
  41. .RE
  42. .PP
  43. \-l, \-\-log=LOG
  44. .RS 4
  45. The file name of the log file\. If
  46. \fI\-\fR
  47. is specified, log is written to stdout\.
  48. .RE
  49. .PP
  50. \-D, \-\-daemon
  51. .RS 4
  52. Run as daemon\.
  53. .RE
  54. .PP
  55. \-s, \-\-split=N
  56. .RS 4
  57. Download a file using
  58. \fIN\fR
  59. connections\.
  60. \fIN\fR
  61. must be between
  62. \fI1\fR
  63. and
  64. \fI5\fR\. This option affects all URLs\. Thus, aria2 connects to each URL with
  65. \fIN\fR
  66. connections\. Default:
  67. \fI1\fR
  68. .RE
  69. .PP
  70. \-\-retry\-wait=SEC
  71. .RS 4
  72. Set the seconds to wait to retry after an error has occured\. Specify a value between 0 and 60\. Default: 5
  73. .RE
  74. .PP
  75. \-t, \-\-timeout=SEC
  76. .RS 4
  77. Set timeout in seconds\. Default: 60
  78. .RE
  79. .PP
  80. \-m, \-\-max\-tries=N
  81. .RS 4
  82. Set number of tries\.
  83. \fI0\fR
  84. means unlimited\. Default:
  85. \fI5\fR
  86. .RE
  87. .PP
  88. \-\-http\-proxy=HOST:PORT
  89. .RS 4
  90. Use HTTP proxy server\. This affects all URLs\.
  91. .RE
  92. .PP
  93. \-\-http\-user=USER
  94. .RS 4
  95. Set HTTP user\. This affects all URLs\.
  96. .RE
  97. .PP
  98. \-\-http\-passwd=PASSWD
  99. .RS 4
  100. Set HTTP password\. This affects all URLs\.
  101. .RE
  102. .PP
  103. \-\-http\-proxy\-user=USER
  104. .RS 4
  105. Set HTTP proxy user\. This affects all URLs\.
  106. .RE
  107. .PP
  108. \-\-http\-proxy\-passwd=PASSWD
  109. .RS 4
  110. Set HTTP proxy password\. This affects all URLs\.
  111. .RE
  112. .PP
  113. \-\-http\-proxy\-method=METHOD
  114. .RS 4
  115. Set the method to use in proxy request\.
  116. \fIMETHOD\fR
  117. is either
  118. \fIget\fR
  119. or
  120. \fItunnel\fR\. Default:
  121. \fItunnel\fR
  122. .RE
  123. .PP
  124. \-\-http\-auth\-scheme=SCHEME
  125. .RS 4
  126. Set HTTP authentication scheme\. Currently,
  127. \fIbasic\fR
  128. is the only supported scheme\. Default:
  129. \fIbasic\fR
  130. .RE
  131. .PP
  132. \-\-referer=REFERER
  133. .RS 4
  134. Set Referer\. This affects all URLs\.
  135. .RE
  136. .PP
  137. \-\-ftp\-user=USER
  138. .RS 4
  139. Set FTP user\. This affects all URLs\. Default: anonymous
  140. .RE
  141. .PP
  142. \-\-ftp\-passwd=PASSWD
  143. .RS 4
  144. Set FTP password\. This affects all URLs\. Default: ARIA2USER@
  145. .RE
  146. .PP
  147. \-\-ftp\-type=TYPE
  148. .RS 4
  149. Set FTP transfer type\. TYPE is either
  150. \fIbinary\fR
  151. or
  152. \fIascii\fR\. Default:
  153. \fIbinary\fR
  154. .RE
  155. .PP
  156. \-p, \-\-ftp\-pasv
  157. .RS 4
  158. Use passive mode in FTP\.
  159. .RE
  160. .PP
  161. \-\-ftp\-via\-http\-proxy=METHOD
  162. .RS 4
  163. Use HTTP proxy in
  164. \fIFTP\fR\.
  165. \fIMETHOD\fR
  166. is either
  167. \fIget\fR
  168. or
  169. \fItunnel\fR\. Default:
  170. \fItunnel\fR
  171. .RE
  172. .PP
  173. \-\-lowest\-speed\-limit=SPEED
  174. .RS 4
  175. Close connection if download speed is lower than or equal to this value(bytes per sec)\. 0 means aria2 does not have a lowest speed limit\. You can append K or M(1K = 1024, 1M = 1024K)\. This option does not affect BitTorrent downloads\. Default: 0
  176. .RE
  177. .PP
  178. \-\-max\-download\-limit=SPEED
  179. .RS 4
  180. Set max download speed in bytes per sec\.
  181. \fI0\fR
  182. means unrestricted\. You can append
  183. \fIK\fR
  184. or
  185. \fIM\fR(1K = 1024, 1M = 1024K)\. Default:
  186. \fI0\fR
  187. .RE
  188. .PP
  189. \-\-file\-allocation=METHOD
  190. .RS 4
  191. Specify file allocation method\. METHOD is either
  192. \fInone\fR
  193. or
  194. \fIprealloc\fR\.
  195. \fInone\fR
  196. doesn\'t pre\-allocate file space\.
  197. \fIprealloc\fR
  198. pre\-allocates file space before download begins\. This may take some time depending on the size of the file\. Default: prealloc
  199. .RE
  200. .PP
  201. \-\-no\-file\-allocation\-limit=SIZE
  202. .RS 4
  203. No file allocation is made for files whose size is smaller than SIZE\. You can append K or M(1K = 1024, 1M = 1024K)\. Default: 5M
  204. .RE
  205. .PP
  206. \-\-allow\-overwrite=true|false
  207. .RS 4
  208. If false, aria2 doesn\'t download a file which already exists but the corresponding \.aria2 file doesn\'t exist\. Default: false
  209. .RE
  210. .PP
  211. \-Z, \-\-force\-sequential[=true|false]
  212. .RS 4
  213. Fetch URIs in the command\-line sequentially and download each URI in a separate session, like the usual command\-line download utilities\. Default: false
  214. .RE
  215. .PP
  216. \-\-auto\-file\-renaming[=true|false]
  217. .RS 4
  218. 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: true
  219. .RE
  220. .PP
  221. \-P, \-\-parameterized\-uri[=true|false]
  222. .RS 4
  223. Enable parameterized URI support\. You can specify set of parts:
  224. .RE
  225. .sp
  226. .RS 4
  227. .nf
  228. http://{sv1,sv2,sv3}/foo\.iso
  229. .fi
  230. .RE
  231. .sp
  232. .RS 4
  233. .nf
  234. Also you can specify numeric sequences with step
  235. counter:
  236. .fi
  237. .RE
  238. .sp
  239. .RS 4
  240. .nf
  241. http://host/image[000\-100:2]\.img
  242. .fi
  243. .RE
  244. .sp
  245. .RS 4
  246. .nf
  247. A step counter can be omitted\.
  248. If all URIs do not point to the same file, such
  249. as the second example above, \-Z option is
  250. required\.
  251. Default: false
  252. .fi
  253. .RE
  254. .PP
  255. \-\-enable\-http\-keep\-alive[=true|false]
  256. .RS 4
  257. Enable HTTP/1\.1 persistent connection\. Default: false
  258. .RE
  259. .PP
  260. \-\-enable\-http\-pipelining[=true|false]
  261. .RS 4
  262. Enable HTTP/1\.1 pipelining\. Default: false
  263. .RE
  264. .PP
  265. \-\-check\-integrity=true|false
  266. .RS 4
  267. 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: false
  268. .RE
  269. .PP
  270. \-\-realtime\-chunk\-checksum=true|false
  271. .RS 4
  272. Validate chunk checksum while downloading a file in Metalink mode\. This option on affects Metalink mode with chunk checksums\. Default: true
  273. .RE
  274. .PP
  275. \-c, \-\-continue
  276. .RS 4
  277. 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\.
  278. .RE
  279. .PP
  280. \-U, \-\-user\-agent=USER_AGENT
  281. .RS 4
  282. Set user agent for http(s) downloads\.
  283. .RE
  284. .PP
  285. \-n, \-\-no\-netrc
  286. .RS 4
  287. Disables netrc support\.
  288. .RE
  289. .PP
  290. \-i, \-\-input\-file=FILE
  291. .RS 4
  292. 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
  293. \fI\-\fR
  294. is specified\.
  295. .RE
  296. .PP
  297. \-j, \-\-max\-concurrent\-downloads=N
  298. .RS 4
  299. Set maximum number of concurrent downloads\. It should be used with the \-i option\. Default: 5
  300. .RE
  301. .PP
  302. \-\-load\-cookies=FILE
  303. .RS 4
  304. Load cookies from FILE\. The format of FILE is the same used by Netscape and Mozilla\.
  305. .RE
  306. .PP
  307. \-S, \-\-show\-files
  308. .RS 4
  309. Print file listing of \.torrent or \.metalink file and exit\.
  310. .RE
  311. .PP
  312. \-\-select\-file=INDEX\&...
  313. .RS 4
  314. 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
  315. \fI,\fR, for example: "3,6"\. You can also use
  316. \fI\-\fR
  317. to specify a range: "1\-5"\.
  318. \fI,\fR
  319. and
  320. \fI\-\fR
  321. can be used together\. When used with the \-M option, index may vary depending on the query(see \-\-metalink\-* options)\.
  322. .sp
  323. .RS 4
  324. .nf
  325. Note: In multi file torrent, it seems that adjacent files specified
  326. by this option are downloaded\. This is by design, not a bug\.
  327. A single piece may include several files or part of files,
  328. and aria2 writes the piece to the appropriate files\.
  329. .fi
  330. .RE
  331. .RE
  332. .PP
  333. \-T, \-\-torrent\-file=TORRENT_FILE
  334. .RS 4
  335. The path to the \.torrent file\.
  336. .RE
  337. .PP
  338. \-\-follow\-torrent=true|false
  339. .RS 4
  340. Set to false to prevent aria2 from entering BitTorrent mode even if the filename of the downloaded file ends with \.torrent\. Default: true
  341. .RE
  342. .PP
  343. \-\-direct\-file\-mapping=true|false
  344. .RS 4
  345. Directly read from and write to each file mentioned in \.torrent file\. Default:
  346. \fItrue\fR
  347. .sp
  348. .RS 4
  349. .nf
  350. \-\-listen\-port=PORT\.\.\.
  351. Set TCP port number for BitTorrent downloads\.
  352. Multiple values can be specified by using \',\',
  353. for example: "6881,6885"\.
  354. You can also use \'\-\' to specify a range: "6881\-6999"\.
  355. \',\' and \'\-\' can be used together\.
  356. Default: 6881\-6999
  357. .fi
  358. .RE
  359. .RE
  360. .PP
  361. \-\-max\-upload\-limit=SPEED
  362. .RS 4
  363. Set max upload speed in bytes per sec\.
  364. \fI0\fR
  365. means unrestricted\. You can append
  366. \fIK\fR
  367. or
  368. \fIM\fR(1K = 1024, 1M = 1024K)\. Default:
  369. \fI0\fR
  370. .RE
  371. .PP
  372. \-\-seed\-time=MINUTES
  373. .RS 4
  374. Specify seeding time in minutes\. Also see the \-\-seed\-ratio option\.
  375. .RE
  376. .PP
  377. \-\-seed\-ratio=RATIO
  378. .RS 4
  379. Specify share ratio\. Seed completed torrents until share ratio reaches RATIO\. 1\.0 is encouraged\. Specify 0\.0 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: 1\.0
  380. .RE
  381. .PP
  382. \-\-peer\-id\-prefix=PEERI_ID_PREFIX
  383. .RS 4
  384. Specify the prefix of peer ID\. The peer ID in 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: \-aria2\-
  385. .RE
  386. .PP
  387. \-M, \-\-metalink\-file=METALINK_FILE
  388. .RS 4
  389. The file path to \.metalink file\.
  390. .RE
  391. .PP
  392. \-C, \-\-metalink\-servers=NUM_SERVERS
  393. .RS 4
  394. The number of servers to connect to simultaneously\. Default:
  395. \fI5\fR
  396. .RE
  397. .PP
  398. \-\-metalink\-version=VERSION
  399. .RS 4
  400. The version of the file to download\.
  401. .RE
  402. .PP
  403. \-\-metalink\-language=LANGUAGE
  404. .RS 4
  405. The language of the file to download\.
  406. .RE
  407. .PP
  408. \-\-metalink\-os=OS
  409. .RS 4
  410. The operating system of the file to download\.
  411. .RE
  412. .PP
  413. \-\-metalink\-location=LOCATION[,\&...]
  414. .RS 4
  415. The location of the preferred server\. A comma\-deliminated list of locations is acceptable\.
  416. .RE
  417. .PP
  418. \-\-follow\-metalink=true|false
  419. .RS 4
  420. Set to false to prevent aria2 from entering Metalink mode even if the filename of the downloaded file ends with \.metalink\. Default: true
  421. .RE
  422. .PP
  423. \-v, \-\-version
  424. .RS 4
  425. Print the version number and exit\.
  426. .RE
  427. .PP
  428. \-h, \-\-help
  429. .RS 4
  430. Print this message and exit\.
  431. .RE
  432. .PP
  433. URL
  434. .RS 4
  435. 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/ftp server at the same time, while the data from http/ftp are uploaded to the torrent swarm\. Note that only single file torrent can be integrated with http/ftp\.
  436. .RE
  437. .SH "EXAMPLES"
  438. .PP
  439. Download a file using 1 connection
  440. .RS 4
  441. aria2c http://AAA\.BBB\.CCC/file\.zip
  442. .RE
  443. .PP
  444. Download a file using 2 connections
  445. .RS 4
  446. aria2c \-s 2 http://AAA\.BBB\.CCC/file\.zip
  447. .RE
  448. .PP
  449. Download a file using 2 connections, each connects to a different server
  450. .RS 4
  451. aria2c http://AAA\.BBB\.CCC/file\.zip http://DDD\.EEE\.FFF/GGG/file\.zip
  452. .RE
  453. .PP
  454. You can mix up different protocols
  455. .RS 4
  456. aria2c http://AAA\.BBB\.CCC/file\.zip ftp://DDD\.EEE\.FFF/GGG/file\.zip
  457. .RE
  458. .PP
  459. Download files listed in a text file\. 5 files are downloaded concurrently
  460. .RS 4
  461. aria2c \-i uris\.txt \-j 5
  462. .RE
  463. .PP
  464. Download files passed through stdin
  465. .RS 4
  466. cat uris\.txt | aria2c \-i \-
  467. .RE
  468. .PP
  469. Download a file using local cookies
  470. .RS 4
  471. aria2c \-\-load\-cookies cookies\.txt http://AAA\.BBB\.CCC/file\.zip
  472. .RE
  473. .PP
  474. Parameterized URI
  475. .RS 4
  476. aria2c \-P http://{server1,server2,server3}/file\.iso
  477. .RE
  478. .PP
  479. Parameterized URI\. \-Z option is required in this case
  480. .RS 4
  481. aria2c \-P \-Z http://host/file[001\-100:2]\.img
  482. .RE
  483. .PP
  484. Download a torrent
  485. .RS 4
  486. aria2c \-o test\.torrent http://AAA\.BBB\.CCC/file\.torrent
  487. .RE
  488. .PP
  489. Download a torrent using a local \.torrent file
  490. .RS 4
  491. aria2c \-T test\.torrent
  492. .RE
  493. .PP
  494. Download only selected files
  495. .RS 4
  496. aria2c \-T test\.torrent dir/file1\.zip dir/file2\.zip
  497. .RE
  498. .PP
  499. Download only selected files using index
  500. .RS 4
  501. aria2c \-T test\.torrent \-\-select\-file 1,3\-5
  502. .RE
  503. .PP
  504. Print file listing of \.torrent file
  505. .RS 4
  506. aria2c \-T test\.torrent \-S Download a file using torrent and http/ftp server aria2c \-T test\.torrent http://host1/file ftp://host2/file
  507. .RE
  508. .PP
  509. Metalink downloading
  510. .RS 4
  511. aria2c \-\-lowest\-speed\-limit 10K http://AAA\.BBB\.CCC/file\.metalink
  512. .RE
  513. .PP
  514. Download a file using a local \.metalink file
  515. .RS 4
  516. aria2c \-M test\.metalink
  517. .RE
  518. .PP
  519. Download a file using a local \.metalink file with preferred server locations
  520. .RS 4
  521. aria2c \-M test\.metalink \-\-metalink\-location=JP,US
  522. .RE
  523. .PP
  524. Metalink downloading with preferences
  525. .RS 4
  526. aria2c \-M test\.metalink \-\-metalink\-version=1\.1\.1 \-\-metalink\-language=en\-US
  527. .RE
  528. .PP
  529. Download only selected files
  530. .RS 4
  531. aria2c \-M test\.metalink \-\-metalink\-language=en\-US dir/file1\.zip dir/file2\.zip
  532. .RE
  533. .PP
  534. Download only selected files using index
  535. .RS 4
  536. aria2c \-M test\.metalink \-\-metalink\-language=en\-US \-\-select\-file 1,3\-5
  537. .RE
  538. .PP
  539. Print file listing of \.metalink file
  540. .RS 4
  541. aria2c \-M test\.metalink \-S \-\-metalink\-language=en\-US
  542. .RE
  543. .SH "FILES"
  544. .PP
  545. aria2\.conf
  546. .RS 4
  547. 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
  548. \fI\-\-\fR
  549. prefix\. The lines beginning
  550. \fI#\fR
  551. are treated as comments\.
  552. .sp
  553. .RS 4
  554. .nf
  555. Example:
  556. .fi
  557. .RE
  558. .sp
  559. .RS 4
  560. .nf
  561. # sample configuration file for aria2c
  562. file\-allocation=prealloc
  563. listen\-port=60000
  564. seed\-ratio=1\.0
  565. max\-upload\-limit=40K
  566. ftp\-pasv=true
  567. .fi
  568. .RE
  569. .RE
  570. .SH "REPORTING BUGS"
  571. Report bugs to Tatsuhiro Tsujikawa <t\-tujikawa@users\.sourceforge\.net>
  572. .sp
  573. .SH "AUTHOR"
  574. Tatsuhiro Tsujikawa <t\-tujikawa@users\.sourceforge\.net>
  575. .sp
  576. .SH "COPYRIGHT"
  577. Copyright \(co 2006, 2007 Tatsuhiro Tsujikawa
  578. .sp