aria2c.1 12 KB

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