aria2c.1 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/>
  4. .\" Date: 06/10/2007
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "06/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 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.
  253. .RE
  254. .PP
  255. \-j, \-\-max\-concurrent\-downloads=N
  256. .RS 4
  257. Set maximum number of concurrent downloads. Default:
  258. \fI5\fR
  259. .RE
  260. .PP
  261. \-\-load\-cookies=FILE
  262. .RS 4
  263. Load cookies from
  264. \fIFILE\fR. The format of
  265. \fIFILE\fR
  266. is one used by Netscape and Mozilla.
  267. .RE
  268. .PP
  269. \-T, \-\-torrent\-file=TORRENT_FILE
  270. .RS 4
  271. The file path to .torrent file.
  272. .RE
  273. .PP
  274. \-\-follow\-torrent=true|false
  275. .RS 4
  276. Setting this option to
  277. \fIfalse\fR
  278. prevents aria2 to enter BitTorrent mode even if the filename of downloaded file ends with .torrent. Default:
  279. \fItrue\fR
  280. .RE
  281. .PP
  282. \-S, \-\-show\-files
  283. .RS 4
  284. Print file listing of .torrent file and exit.
  285. .RE
  286. .PP
  287. \-\-direct\-file\-mapping=true|false
  288. .RS 4
  289. Directly read from and write to each file mentioned in .torrent file. Default:
  290. \fItrue\fR
  291. .RE
  292. .PP
  293. \-\-listen\-port=PORT
  294. .RS 4
  295. Set port number to listen to for peer connection.
  296. .RE
  297. .PP
  298. \-\-max\-upload\-limit=SPEED
  299. .RS 4
  300. Set max upload speed in bytes per sec.
  301. \fI0\fR
  302. means unrestricted. You can append
  303. \fIK\fR
  304. or
  305. \fIM\fR(1K = 1024, 1M = 1024K). Default:
  306. \fI0\fR
  307. .RE
  308. .PP
  309. \-\-select\-file=INDEX\&...
  310. .RS 4
  311. Set file to download by specifing its index. You can know file index through
  312. \fI\-\-show\-files\fR
  313. option. Multiple indexes can be specified by using
  314. \fI,\fR
  315. like "3,6". You can also use
  316. \fI\-\fR
  317. to specify rangelike "1\-5".
  318. \fI,\fR
  319. and
  320. \fI\-\fR
  321. can be used together.
  322. .RE
  323. .PP
  324. \-\-seed\-time=MINUTES
  325. .RS 4
  326. Specify seeding time in minutes. See also
  327. \fI\-\-seed\-ratio\fR
  328. option.
  329. .RE
  330. .PP
  331. \-\-seed\-ratio=RATIO
  332. .RS 4
  333. Specify share ratio. Seed completed torrents until share ratio reaches
  334. \fIRATIO\fR.
  335. \fI1.0\fR
  336. is encouraged. If
  337. \fI\-\-seed\-time\fR
  338. option is specified along with this option, seeding ends when at least one of the conditions is satisfied.
  339. .RE
  340. .PP
  341. \-M, \-\-metalink\-file=METALINK_FILE
  342. .RS 4
  343. The file path to .metalink file.
  344. .RE
  345. .PP
  346. \-C, \-\-metalink\-servers=NUM_SERVERS
  347. .RS 4
  348. The number of servers to connect to simultaneously. Default:
  349. \fI5\fR
  350. .RE
  351. .PP
  352. \-\-metalink\-version=VERSION
  353. .RS 4
  354. The version of file to download.
  355. .RE
  356. .PP
  357. \-\-metalink\-language=LANGUAGE
  358. .RS 4
  359. The language of file to download.
  360. .RE
  361. .PP
  362. \-\-metalink\-os=OS
  363. .RS 4
  364. The operating system the file is targeted.
  365. .RE
  366. .PP
  367. \-\-metalink\-location=LOCATION
  368. .RS 4
  369. The location of the prefered server.
  370. .RE
  371. .PP
  372. \-\-follow\-metalink=true|false
  373. .RS 4
  374. Setting this option to
  375. \fIfalse\fR
  376. prevents aria2 to enter Metalink mode even if the filename of downloaded file ends with .metalink. Default:
  377. \fItrue\fR
  378. .RE
  379. .PP
  380. \-v, \-\-version
  381. .RS 4
  382. Print the version number and exit.
  383. .RE
  384. .PP
  385. \-h, \-\-help
  386. .RS 4
  387. Print this message and exit.
  388. .RE
  389. .PP
  390. URL
  391. .RS 4
  392. You can specify multiple URLs. All URLs must point to the same file or downloading fails.
  393. .RE
  394. .PP
  395. FILE
  396. .RS 4
  397. Specify files in multi\-file torrent to download. Use conjunction with
  398. \fI\-T\fR
  399. option. This arguments are ignored if you specify
  400. \fI\-\-select\-file\fR
  401. option.
  402. .RE
  403. .SH "EXAMPLES"
  404. .PP
  405. Download a file by 1 connection
  406. .RS 4
  407. aria2c http://AAA.BBB.CCC/file.zip
  408. .RE
  409. .PP
  410. Download a file by 2 connections
  411. .RS 4
  412. aria2c \-s 2 http://AAA.BBB.CCC/file.zip
  413. .RE
  414. .PP
  415. Download a file by 2 connections, each connects to a different server
  416. .RS 4
  417. aria2c http://AAA.BBB.CCC/file.zip http://DDD.EEE.FFF/GGG/file.zip
  418. .RE
  419. .PP
  420. You can mix up different protocols
  421. .RS 4
  422. aria2c http://AAA.BBB.CCC/file.zip ftp://DDD.EEE.FFF/GGG/file.zip
  423. .RE
  424. .PP
  425. Download a torrent
  426. .RS 4
  427. aria2c \-o test.torrent http://AAA.BBB.CCC/file.torrent
  428. .RE
  429. .PP
  430. Download a torrent using local .torrent file
  431. .RS 4
  432. aria2c \-T test.torrent
  433. .RE
  434. .PP
  435. Download only selected files
  436. .RS 4
  437. aria2c \-T test.torrent dir/file1.zip dir/file2.zip
  438. .RE
  439. .PP
  440. Print file listing of .torrent file
  441. .RS 4
  442. aria2c \-T test.torrent \-S
  443. .RE
  444. .PP
  445. Metalink downloading
  446. .RS 4
  447. aria2c \-\-lowest\-speed\-limit 10K http://AAA.BBB.CCC/file.metalink
  448. .RE
  449. .PP
  450. Download a file using local .metalink file
  451. .RS 4
  452. aria2c \-M test.metalink
  453. .RE
  454. .PP
  455. Metalink downloading with preferences
  456. .RS 4
  457. aria2c \-M test.metalink \-\-metalink\-version=1.1.1 \-\-metalink\-language=en\-US
  458. .RE
  459. .SH "FILES"
  460. .PP
  461. aria2.conf
  462. .RS 4
  463. 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
  464. \fI\-\-\fR
  465. prefix. The lines beginning
  466. \fI#\fR
  467. are treated as comments.
  468. .sp
  469. .RS 4
  470. .nf
  471. Example:
  472. .fi
  473. .RE
  474. .sp
  475. .RS 4
  476. .nf
  477. # sample configuration file for aria2c
  478. file\-allocation=prealloc
  479. listen\-port=60000
  480. seed\-ratio=1.0
  481. max\-upload\-limit=40K
  482. ftp\-pasv=true
  483. .fi
  484. .RE
  485. .RE
  486. .SH "REPORTING BUGS"
  487. Report bugs to Tatsuhiro Tsujikawa <t\-tujikawa@users.sourceforge.net>
  488. .sp
  489. .SH "AUTHOR"
  490. Tatsuhiro Tsujikawa <t\-tujikawa@users.sourceforge.net>
  491. .sp
  492. .SH "COPYRIGHT"
  493. Copyright \(co 2006, 2007 Tatsuhiro Tsujikawa
  494. .sp