aria2c.1 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/>
  4. .\" Date: 07/09/2007
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "07/09/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 downloaded file.
  34. .RE
  35. .PP
  36. \-o, \-\-out=FILE
  37. .RS 4
  38. The file name for downloaded file.
  39. .RE
  40. .PP
  41. \-l, \-\-log=LOG
  42. .RS 4
  43. The file path to store log. 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 amount of time in second between requests for errors. Specify a value between
  71. \fI0\fR
  72. and
  73. \fI60\fR. Default:
  74. \fI5\fR
  75. .RE
  76. .PP
  77. \-t, \-\-timeout=SEC
  78. .RS 4
  79. Set timeout in second. Default:
  80. \fI60\fR
  81. .RE
  82. .PP
  83. \-m, \-\-max\-tries=N
  84. .RS 4
  85. Set number of tries.
  86. \fI0\fR
  87. means unlimited. Default:
  88. \fI5\fR
  89. .RE
  90. .PP
  91. \-\-http\-proxy=HOST:PORT
  92. .RS 4
  93. Use HTTP proxy server. This affects to all URLs.
  94. .RE
  95. .PP
  96. \-\-http\-user=USER
  97. .RS 4
  98. Set HTTP user. This affects to all URLs.
  99. .RE
  100. .PP
  101. \-\-http\-passwd=PASSWD
  102. .RS 4
  103. Set HTTP password. This affects to all URLs.
  104. .RE
  105. .PP
  106. \-\-http\-proxy\-user=USER
  107. .RS 4
  108. Set HTTP proxy user. This affects to all URLs
  109. .RE
  110. .PP
  111. \-\-http\-proxy\-passwd=PASSWD
  112. .RS 4
  113. Set HTTP proxy password. This affects to all URLs.
  114. .RE
  115. .PP
  116. \-\-http\-proxy\-method=METHOD
  117. .RS 4
  118. Set the method to use in proxy request.
  119. \fIMETHOD\fR
  120. is either
  121. \fIget\fR
  122. or
  123. \fItunnel\fR. Default:
  124. \fItunnel\fR
  125. .RE
  126. .PP
  127. \-\-http\-auth\-scheme=SCHEME
  128. .RS 4
  129. Set HTTP authentication scheme. Currently,
  130. \fIbasic\fR
  131. is the only supported scheme. Default:
  132. \fIbasic\fR
  133. .RE
  134. .PP
  135. \-\-referer=REFERER
  136. .RS 4
  137. Set Referer. This affects to all URLs.
  138. .RE
  139. .PP
  140. \-\-ftp\-user=USER
  141. .RS 4
  142. Set FTP user. This affects to all URLs. Default:
  143. \fIanonymous\fR
  144. .RE
  145. .PP
  146. \-\-ftp\-passwd=PASSWD
  147. .RS 4
  148. Set FTP password. This affects to all URLs. Default:
  149. \fIARIA2USER@\fR
  150. .RE
  151. .PP
  152. \-\-ftp\-type=TYPE
  153. .RS 4
  154. Set FTP transfer type. TYPE is either
  155. \fIbinary\fR
  156. or
  157. \fIascii\fR. Default:
  158. \fIbinary\fR
  159. .RE
  160. .PP
  161. \-p, \-\-ftp\-pasv
  162. .RS 4
  163. Use passive mode in FTP.
  164. .RE
  165. .PP
  166. \-\-ftp\-via\-http\-proxy=METHOD
  167. .RS 4
  168. Use HTTP proxy in
  169. \fIFTP\fR.
  170. \fIMETHOD\fR
  171. is either
  172. \fIget\fR
  173. or
  174. \fItunnel\fR. Default:
  175. \fItunnel\fR
  176. .RE
  177. .PP
  178. \-\-lowest\-speed\-limit=SPEED
  179. .RS 4
  180. Close connection if download speed is lower than or equal to this value(bytes per sec). 0 means aria2 does not care lowest speed limit. You can append
  181. \fIK\fR
  182. or
  183. \fIM\fR(1K = 1024, 1M = 1024K). This option does not affect BitTorrent download. Default:
  184. \fI0\fR
  185. .RE
  186. .PP
  187. \-\-max\-download\-limit=SPEED
  188. .RS 4
  189. Set max download speed in bytes per sec.
  190. \fI0\fR
  191. means unrestricted. You can append
  192. \fIK\fR
  193. or
  194. \fIM\fR(1K = 1024, 1M = 1024K). Default:
  195. \fI0\fR
  196. .RE
  197. .PP
  198. \-\-file\-allocation=METHOD
  199. .RS 4
  200. Specify file allocation method.
  201. \fIMETHOD\fR
  202. is either
  203. \fInone\fR
  204. or
  205. \fIprealloc\fR.
  206. \fInone\fR
  207. doesn't pre\-allocate file space.
  208. \fIprealloc\fR
  209. pre\-allocates file space before download begins. This may take some time depending on the size of file. Default:
  210. \fInone\fR
  211. .RE
  212. .PP
  213. \-\-allow\-overwrite=true|false
  214. .RS 4
  215. If this option set to
  216. \fIfalse\fR, aria2 doesn't download a file which already exists in the file system but its corresponding .aria2 file doesn't exist. Default:
  217. \fIfalse\fR
  218. .RE
  219. .PP
  220. \-\-check\-integrity=true|false
  221. .RS 4
  222. Check file integrity by validating piece hash. This option makes effect in BitTorrent download and Metalink with chunk checksums. Use this option to redownload a damaged portion of file. You may need to specify
  223. \fI\-\-allow\-overwrite=true\fR
  224. option if .aria2 file doesn't exist. Default:
  225. \fIfalse\fR
  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 makes effect in Metalink with chunk checksums. Default:
  231. \fItrue\fR
  232. .RE
  233. .PP
  234. \-c, \-\-continue
  235. .RS 4
  236. Continue downloading a partially downloaded file. Use this option to resume a download started by web browsers or another programs which download files sequentially from the beginning. Currently this option is applicable to http(s)/ ftp downloads.
  237. .RE
  238. .PP
  239. \-U, \-\-user\-agent=USER_AGENT
  240. .RS 4
  241. Set user agent for http(s) downloads.
  242. .RE
  243. .PP
  244. \-n, \-\-no\-netrc
  245. .RS 4
  246. Disables netrc support.
  247. .RE
  248. .PP
  249. \-i, \-\-input\-file=FILE
  250. .RS 4
  251. Downloads URIs found in
  252. \fIFILE\fR. You can specify multiple URIs for a single entity: deliminate URIs by Tab in a single line. Reads input from stdin when
  253. \fI\-\fR
  254. is specified.
  255. .RE
  256. .PP
  257. \-j, \-\-max\-concurrent\-downloads=N
  258. .RS 4
  259. Set maximum number of concurrent downloads. It should be used with
  260. \fI\-i\fR
  261. option. Default:
  262. \fI5\fR
  263. .RE
  264. .PP
  265. \-\-load\-cookies=FILE
  266. .RS 4
  267. Load cookies from
  268. \fIFILE\fR. The format of
  269. \fIFILE\fR
  270. is one used by Netscape and Mozilla.
  271. .RE
  272. .PP
  273. \-S, \-\-show\-files
  274. .RS 4
  275. Print file listing of .torrent or .metalink file and exit.
  276. .RE
  277. .PP
  278. \-\-select\-file=INDEX\&...
  279. .RS 4
  280. Set file to download by specifing its index. You can know file index through
  281. \fI\-\-show\-files\fR
  282. option. Multiple indexes can be specified by using
  283. \fI,\fR
  284. like "3,6". You can also use
  285. \fI\-\fR
  286. to specify rangelike "1\-5".
  287. \fI,\fR
  288. and
  289. \fI\-\fR
  290. can be used together. When used with \-M option, index may vary depending on the query(see
  291. \fI\-\-metalink\-*\fR
  292. options).
  293. .RE
  294. .PP
  295. \-T, \-\-torrent\-file=TORRENT_FILE
  296. .RS 4
  297. The file path to .torrent file.
  298. .RE
  299. .PP
  300. \-\-follow\-torrent=true|false
  301. .RS 4
  302. Setting this option to
  303. \fIfalse\fR
  304. prevents aria2 to enter BitTorrent mode even if the filename of downloaded file ends with .torrent. Default:
  305. \fItrue\fR
  306. .RE
  307. .PP
  308. \-\-direct\-file\-mapping=true|false
  309. .RS 4
  310. Directly read from and write to each file mentioned in .torrent file. Default:
  311. \fItrue\fR
  312. .RE
  313. .PP
  314. \-\-listen\-port=PORT
  315. .RS 4
  316. Set port number to listen to for peer connection. Default:
  317. \fI6881\-6999\fR
  318. .RE
  319. .PP
  320. \-\-max\-upload\-limit=SPEED
  321. .RS 4
  322. Set max upload speed in bytes per sec.
  323. \fI0\fR
  324. means unrestricted. You can append
  325. \fIK\fR
  326. or
  327. \fIM\fR(1K = 1024, 1M = 1024K). Default:
  328. \fI0\fR
  329. .RE
  330. .PP
  331. \-\-seed\-time=MINUTES
  332. .RS 4
  333. Specify seeding time in minutes. See also
  334. \fI\-\-seed\-ratio\fR
  335. option.
  336. .RE
  337. .PP
  338. \-\-seed\-ratio=RATIO
  339. .RS 4
  340. Specify share ratio. Seed completed torrents until share ratio reaches
  341. \fIRATIO\fR.
  342. \fI1.0\fR
  343. is encouraged. If
  344. \fI\-\-seed\-time\fR
  345. option is specified along with this option, seeding ends when at least one of the conditions is satisfied.
  346. .RE
  347. .PP
  348. \-M, \-\-metalink\-file=METALINK_FILE
  349. .RS 4
  350. The file path to .metalink file.
  351. .RE
  352. .PP
  353. \-C, \-\-metalink\-servers=NUM_SERVERS
  354. .RS 4
  355. The number of servers to connect to simultaneously. Default:
  356. \fI5\fR
  357. .RE
  358. .PP
  359. \-\-metalink\-version=VERSION
  360. .RS 4
  361. The version of file to download.
  362. .RE
  363. .PP
  364. \-\-metalink\-language=LANGUAGE
  365. .RS 4
  366. The language of file to download.
  367. .RE
  368. .PP
  369. \-\-metalink\-os=OS
  370. .RS 4
  371. The operating system the file is targeted.
  372. .RE
  373. .PP
  374. \-\-metalink\-location=LOCATION
  375. .RS 4
  376. The location of the prefered server.
  377. .RE
  378. .PP
  379. \-\-follow\-metalink=true|false
  380. .RS 4
  381. Setting this option to
  382. \fIfalse\fR
  383. prevents aria2 to enter Metalink mode even if the filename of downloaded file ends with .metalink. Default:
  384. \fItrue\fR
  385. .RE
  386. .PP
  387. \-v, \-\-version
  388. .RS 4
  389. Print the version number and exit.
  390. .RE
  391. .PP
  392. \-h, \-\-help
  393. .RS 4
  394. Print this message and exit.
  395. .RE
  396. .PP
  397. URL
  398. .RS 4
  399. You can specify multiple URLs. All URLs must point to the same file or downloading fails.
  400. .RE
  401. .PP
  402. FILE
  403. .RS 4
  404. Specify files in multi\-file torrent to download. Use conjunction with
  405. \fI\-T\fR
  406. option. This arguments are ignored if you specify
  407. \fI\-\-select\-file\fR
  408. option.
  409. .RE
  410. .SH "EXAMPLES"
  411. .PP
  412. Download a file by 1 connection
  413. .RS 4
  414. aria2c http://AAA.BBB.CCC/file.zip
  415. .RE
  416. .PP
  417. Download a file by 2 connections
  418. .RS 4
  419. aria2c \-s 2 http://AAA.BBB.CCC/file.zip
  420. .RE
  421. .PP
  422. Download a file by 2 connections, each connects to a different server
  423. .RS 4
  424. aria2c http://AAA.BBB.CCC/file.zip http://DDD.EEE.FFF/GGG/file.zip
  425. .RE
  426. .PP
  427. You can mix up different protocols
  428. .RS 4
  429. aria2c http://AAA.BBB.CCC/file.zip ftp://DDD.EEE.FFF/GGG/file.zip
  430. .RE
  431. .PP
  432. Download files listed in a text file. 5 files are downloaded concurrently
  433. .RS 4
  434. aria2c \-i uris.txt \-j 5
  435. .RE
  436. .PP
  437. Download files passed through stdin
  438. .RS 4
  439. cat uris.txt | aria2c \-i \-
  440. .RE
  441. .PP
  442. Download a file using local cookies
  443. .RS 4
  444. aria2c \-\-load\-cookies cookies.txt http://AAA.BBB.CCC/file.zip
  445. .RE
  446. .PP
  447. Download a torrent
  448. .RS 4
  449. aria2c \-o test.torrent http://AAA.BBB.CCC/file.torrent
  450. .RE
  451. .PP
  452. Download a torrent using local .torrent file
  453. .RS 4
  454. aria2c \-T test.torrent
  455. .RE
  456. .PP
  457. Download only selected files
  458. .RS 4
  459. aria2c \-T test.torrent dir/file1.zip dir/file2.zip
  460. .RE
  461. .PP
  462. Download only selected files using index
  463. .RS 4
  464. aria2c \-T test.torrent \-\-select\-file 1,3\-5
  465. .RE
  466. .PP
  467. Print file listing of .torrent file
  468. .RS 4
  469. aria2c \-T test.torrent \-S
  470. .RE
  471. .PP
  472. Metalink downloading
  473. .RS 4
  474. aria2c \-\-lowest\-speed\-limit 10K http://AAA.BBB.CCC/file.metalink
  475. .RE
  476. .PP
  477. Download a file using local .metalink file
  478. .RS 4
  479. aria2c \-M test.metalink
  480. .RE
  481. .PP
  482. Metalink downloading with preferences
  483. .RS 4
  484. aria2c \-M test.metalink \-\-metalink\-version=1.1.1 \-\-metalink\-language=en\-US
  485. .RE
  486. .PP
  487. Download only selected files
  488. .RS 4
  489. aria2c \-M test.metalink \-\-metalink\-language=en\-US dir/file1.zip dir/file2.zip
  490. .RE
  491. .PP
  492. Download only selected files using index
  493. .RS 4
  494. aria2c \-M test.metalink \-\-metalink\-language=en\-US \-\-select\-file 1,3\-5
  495. .RE
  496. .PP
  497. Print file listing of .metalink file
  498. .RS 4
  499. aria2c \-M test.metalink \-S \-\-metalink\-language=en\-US
  500. .RE
  501. .SH "FILES"
  502. .PP
  503. aria2.conf
  504. .RS 4
  505. 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
  506. \fI\-\-\fR
  507. prefix. The lines beginning
  508. \fI#\fR
  509. are treated as comments.
  510. .sp
  511. .RS 4
  512. .nf
  513. Example:
  514. .fi
  515. .RE
  516. .sp
  517. .RS 4
  518. .nf
  519. # sample configuration file for aria2c
  520. file\-allocation=prealloc
  521. listen\-port=60000
  522. seed\-ratio=1.0
  523. max\-upload\-limit=40K
  524. ftp\-pasv=true
  525. .fi
  526. .RE
  527. .RE
  528. .SH "REPORTING BUGS"
  529. Report bugs to Tatsuhiro Tsujikawa <t\-tujikawa@users.sourceforge.net>
  530. .sp
  531. .SH "AUTHOR"
  532. Tatsuhiro Tsujikawa <t\-tujikawa@users.sourceforge.net>
  533. .sp
  534. .SH "COPYRIGHT"
  535. Copyright \(co 2006, 2007 Tatsuhiro Tsujikawa
  536. .sp