aria2c.1 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.73.1 <http://docbook.sf.net/>
  4. .\" Date: 09/03/2007
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "09/03/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. \fIhttp://{sv1,sv2,sv3}/foo\.iso\fR
  218. Also you can specify numeric sequences with step counter:
  219. \fI000\-100:2\fR\fI\.img\fR
  220. 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: false
  221. .RE
  222. .PP
  223. \-\-check\-integrity=true|false
  224. .RS 4
  225. 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
  226. .RE
  227. .PP
  228. \-\-realtime\-chunk\-checksum=true|false
  229. .RS 4
  230. Validate chunk checksum while downloading a file in Metalink mode\. This option on affects Metalink mode with chunk checksums\. Default: true
  231. .RE
  232. .PP
  233. \-c, \-\-continue
  234. .RS 4
  235. 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\.
  236. .RE
  237. .PP
  238. \-U, \-\-user\-agent=USER_AGENT
  239. .RS 4
  240. Set user agent for http(s) downloads\.
  241. .RE
  242. .PP
  243. \-n, \-\-no\-netrc
  244. .RS 4
  245. Disables netrc support\.
  246. .RE
  247. .PP
  248. \-i, \-\-input\-file=FILE
  249. .RS 4
  250. 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
  251. \fI\-\fR
  252. is specified\.
  253. .RE
  254. .PP
  255. \-j, \-\-max\-concurrent\-downloads=N
  256. .RS 4
  257. Set maximum number of concurrent downloads\. It should be used with the \-i option\. Default: 5
  258. .RE
  259. .PP
  260. \-\-load\-cookies=FILE
  261. .RS 4
  262. Load cookies from FILE\. The format of FILE is the same used by Netscape and Mozilla\.
  263. .RE
  264. .PP
  265. \-S, \-\-show\-files
  266. .RS 4
  267. Print file listing of \.torrent or \.metalink file and exit\.
  268. .RE
  269. .PP
  270. \-\-select\-file=INDEX\&...
  271. .RS 4
  272. 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
  273. \fI,\fR, for example: "3,6"\. You can also use
  274. \fI\-\fR
  275. to specify a range: "1\-5"\.
  276. \fI,\fR
  277. and
  278. \fI\-\fR
  279. can be used together\. When used with the \-M option, index may vary depending on the query(see \-\-metalink\-* options)\.
  280. .RE
  281. .PP
  282. \-T, \-\-torrent\-file=TORRENT_FILE
  283. .RS 4
  284. The path to the \.torrent file\.
  285. .RE
  286. .PP
  287. \-\-follow\-torrent=true|false
  288. .RS 4
  289. Set to false to prevent aria2 from entering BitTorrent mode even if the filename of the downloaded file ends with \.torrent\. Default: true
  290. .RE
  291. .PP
  292. \-\-direct\-file\-mapping=true|false
  293. .RS 4
  294. Directly read from and write to each file mentioned in \.torrent file\. Default:
  295. \fItrue\fR
  296. .RE
  297. .PP
  298. \-\-listen\-port=PORT
  299. .RS 4
  300. Set TCP port number for BitTorrent downloads\. Default: 6881\-6999
  301. .RE
  302. .PP
  303. \-\-max\-upload\-limit=SPEED
  304. .RS 4
  305. Set max upload speed in bytes per sec\.
  306. \fI0\fR
  307. means unrestricted\. You can append
  308. \fIK\fR
  309. or
  310. \fIM\fR(1K = 1024, 1M = 1024K)\. Default:
  311. \fI0\fR
  312. .RE
  313. .PP
  314. \-\-seed\-time=MINUTES
  315. .RS 4
  316. Specify seeding time in minutes\. Also see the \-\-seed\-ratio option\.
  317. .RE
  318. .PP
  319. \-\-seed\-ratio=RATIO
  320. .RS 4
  321. 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\.
  322. .RE
  323. .PP
  324. \-\-peer\-id\-prefix=PEERI_ID_PREFIX
  325. .RS 4
  326. 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\-
  327. .RE
  328. .PP
  329. \-M, \-\-metalink\-file=METALINK_FILE
  330. .RS 4
  331. The file path to \.metalink file\.
  332. .RE
  333. .PP
  334. \-C, \-\-metalink\-servers=NUM_SERVERS
  335. .RS 4
  336. The number of servers to connect to simultaneously\. Default:
  337. \fI5\fR
  338. .RE
  339. .PP
  340. \-\-metalink\-version=VERSION
  341. .RS 4
  342. The version of the file to download\.
  343. .RE
  344. .PP
  345. \-\-metalink\-language=LANGUAGE
  346. .RS 4
  347. The language of the file to download\.
  348. .RE
  349. .PP
  350. \-\-metalink\-os=OS
  351. .RS 4
  352. The operating system of the file to download\.
  353. .RE
  354. .PP
  355. \-\-metalink\-location=LOCATION
  356. .RS 4
  357. The location of the prefered server\.
  358. .RE
  359. .PP
  360. \-\-follow\-metalink=true|false
  361. .RS 4
  362. Set to false to prevent aria2 from entering Metalink mode even if the filename of the downloaded file ends with \.metalink\. Default: true
  363. .RE
  364. .PP
  365. \-v, \-\-version
  366. .RS 4
  367. Print the version number and exit\.
  368. .RE
  369. .PP
  370. \-h, \-\-help
  371. .RS 4
  372. Print this message and exit\.
  373. .RE
  374. .PP
  375. URL
  376. .RS 4
  377. You can specify multiple URLs\. All URLs must point to the same file or downloading will fail\.
  378. .RE
  379. .PP
  380. FILE
  381. .RS 4
  382. 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\.
  383. .RE
  384. .SH "EXAMPLES"
  385. .PP
  386. Download a file using 1 connection
  387. .RS 4
  388. aria2c http://AAA\.BBB\.CCC/file\.zip
  389. .RE
  390. .PP
  391. Download a file using 2 connections
  392. .RS 4
  393. aria2c \-s 2 http://AAA\.BBB\.CCC/file\.zip
  394. .RE
  395. .PP
  396. Download a file using 2 connections, each connects to a different server
  397. .RS 4
  398. aria2c http://AAA\.BBB\.CCC/file\.zip http://DDD\.EEE\.FFF/GGG/file\.zip
  399. .RE
  400. .PP
  401. You can mix up different protocols
  402. .RS 4
  403. aria2c http://AAA\.BBB\.CCC/file\.zip ftp://DDD\.EEE\.FFF/GGG/file\.zip
  404. .RE
  405. .PP
  406. Download files listed in a text file\. 5 files are downloaded concurrently
  407. .RS 4
  408. aria2c \-i uris\.txt \-j 5
  409. .RE
  410. .PP
  411. Download files passed through stdin
  412. .RS 4
  413. cat uris\.txt | aria2c \-i \-
  414. .RE
  415. .PP
  416. Download a file using local cookies
  417. .RS 4
  418. aria2c \-\-load\-cookies cookies\.txt http://AAA\.BBB\.CCC/file\.zip
  419. .RE
  420. .PP
  421. Parameterized URI
  422. .RS 4
  423. aria2c \-P http://{server1,server2,server3}/file\.iso
  424. .RE
  425. .PP
  426. Parameterized URI\. \-Z option is required in this case
  427. .RS 4
  428. aria2c \-P \-Z
  429. 001\-100:2\.img
  430. .RE
  431. .PP
  432. Download a torrent
  433. .RS 4
  434. aria2c \-o test\.torrent http://AAA\.BBB\.CCC/file\.torrent
  435. .RE
  436. .PP
  437. Download a torrent using a local \.torrent file
  438. .RS 4
  439. aria2c \-T test\.torrent
  440. .RE
  441. .PP
  442. Download only selected files
  443. .RS 4
  444. aria2c \-T test\.torrent dir/file1\.zip dir/file2\.zip
  445. .RE
  446. .PP
  447. Download only selected files using index
  448. .RS 4
  449. aria2c \-T test\.torrent \-\-select\-file 1,3\-5
  450. .RE
  451. .PP
  452. Print file listing of \.torrent file
  453. .RS 4
  454. aria2c \-T test\.torrent \-S
  455. .RE
  456. .PP
  457. Metalink downloading
  458. .RS 4
  459. aria2c \-\-lowest\-speed\-limit 10K http://AAA\.BBB\.CCC/file\.metalink
  460. .RE
  461. .PP
  462. Download a file using a local \.metalink file
  463. .RS 4
  464. aria2c \-M test\.metalink
  465. .RE
  466. .PP
  467. Metalink downloading with preferences
  468. .RS 4
  469. aria2c \-M test\.metalink \-\-metalink\-version=1\.1\.1 \-\-metalink\-language=en\-US
  470. .RE
  471. .PP
  472. Download only selected files
  473. .RS 4
  474. aria2c \-M test\.metalink \-\-metalink\-language=en\-US dir/file1\.zip dir/file2\.zip
  475. .RE
  476. .PP
  477. Download only selected files using index
  478. .RS 4
  479. aria2c \-M test\.metalink \-\-metalink\-language=en\-US \-\-select\-file 1,3\-5
  480. .RE
  481. .PP
  482. Print file listing of \.metalink file
  483. .RS 4
  484. aria2c \-M test\.metalink \-S \-\-metalink\-language=en\-US
  485. .RE
  486. .SH "FILES"
  487. .PP
  488. aria2\.conf
  489. .RS 4
  490. 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
  491. \fI\-\-\fR
  492. prefix\. The lines beginning
  493. \fI#\fR
  494. are treated as comments\.
  495. .sp
  496. .RS 4
  497. .nf
  498. Example:
  499. .fi
  500. .RE
  501. .sp
  502. .RS 4
  503. .nf
  504. # sample configuration file for aria2c
  505. file\-allocation=prealloc
  506. listen\-port=60000
  507. seed\-ratio=1\.0
  508. max\-upload\-limit=40K
  509. ftp\-pasv=true
  510. .fi
  511. .RE
  512. .RE
  513. .SH "REPORTING BUGS"
  514. Report bugs to Tatsuhiro Tsujikawa <t\-tujikawa@users\.sourceforge\.net>
  515. .sp
  516. .SH "AUTHOR"
  517. Tatsuhiro Tsujikawa <t\-tujikawa@users\.sourceforge\.net>
  518. .sp
  519. .SH "COPYRIGHT"
  520. Copyright \(co 2006, 2007 Tatsuhiro Tsujikawa
  521. .sp
  522. .SH "NOTES"
  523. .IP " 1." 4
  524. 000-100:2
  525. .RS 4
  526. \%http://host/image
  527. .RE
  528. .IP " 2." 4
  529. 001-100:2
  530. .RS 4
  531. \%http://host/file
  532. .RE