aria2c.1 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.71.0 <http://docbook.sf.net/>
  4. .\" Date: 03/28/2007
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "03/28/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 3n
  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 3n
  33. The directory to store downloaded file.
  34. .RE
  35. .PP
  36. \-o, \-\-out=FILE
  37. .RS 3n
  38. The file name for downloaded file.
  39. .RE
  40. .PP
  41. \-l, \-\-log=LOG
  42. .RS 3n
  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 3n
  50. Run as daemon.
  51. .RE
  52. .PP
  53. \-s, \-\-split=N
  54. .RS 3n
  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 3n
  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 3n
  79. Set timeout in second. Default:
  80. \fI60\fR
  81. .RE
  82. .PP
  83. \-m, \-\-max\-tries=N
  84. .RS 3n
  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 3n
  93. Use HTTP proxy server. This affects to all URLs.
  94. .RE
  95. .PP
  96. \-\-http\-user=USER
  97. .RS 3n
  98. Set HTTP user. This affects to all URLs.
  99. .RE
  100. .PP
  101. \-\-http\-passwd=PASSWD
  102. .RS 3n
  103. Set HTTP password. This affects to all URLs.
  104. .RE
  105. .PP
  106. \-\-http\-proxy\-user=USER
  107. .RS 3n
  108. Set HTTP proxy user. This affects to all URLs
  109. .RE
  110. .PP
  111. \-\-http\-proxy\-passwd=PASSWD
  112. .RS 3n
  113. Set HTTP proxy password. This affects to all URLs.
  114. .RE
  115. .PP
  116. \-\-http\-proxy\-method=METHOD
  117. .RS 3n
  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 3n
  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 3n
  137. Set Referer. This affects to all URLs.
  138. .RE
  139. .PP
  140. \-\-ftp\-user=USER
  141. .RS 3n
  142. Set FTP user. This affects to all URLs. Default:
  143. \fIanonymous\fR
  144. .RE
  145. .PP
  146. \-\-ftp\-passwd=PASSWD
  147. .RS 3n
  148. Set FTP password. This affects to all URLs. Default:
  149. \fIARIA2USER@\fR
  150. .RE
  151. .PP
  152. \-\-ftp\-type=TYPE
  153. .RS 3n
  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 3n
  163. Use passive mode in FTP.
  164. .RE
  165. .PP
  166. \-\-ftp\-via\-http\-proxy=METHOD
  167. .RS 3n
  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 3n
  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 3n
  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 3n
  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 3n
  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 3n
  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 3n
  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 3n
  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 3n
  241. Set user agent for http(s) downloads.
  242. .RE
  243. .PP
  244. \-n, \-\-no\-netrc
  245. .RS 3n
  246. Disables netrc support.
  247. .RE
  248. .PP
  249. \-T, \-\-torrent\-file=TORRENT_FILE
  250. .RS 3n
  251. The file path to .torrent file.
  252. .RE
  253. .PP
  254. \-\-follow\-torrent=true|false
  255. .RS 3n
  256. Setting this option to
  257. \fIfalse\fR
  258. prevents aria2 to enter BitTorrent mode even if the filename of downloaded file ends with .torrent. Default:
  259. \fItrue\fR
  260. .RE
  261. .PP
  262. \-S, \-\-show\-files
  263. .RS 3n
  264. Print file listing of .torrent file and exit.
  265. .RE
  266. .PP
  267. \-\-direct\-file\-mapping=true|false
  268. .RS 3n
  269. Directly read from and write to each file mentioned in .torrent file. Default:
  270. \fItrue\fR
  271. .RE
  272. .PP
  273. \-\-listen\-port=PORT
  274. .RS 3n
  275. Set port number to listen to for peer connection.
  276. .RE
  277. .PP
  278. \-\-max\-upload\-limit=SPEED
  279. .RS 3n
  280. Set max upload speed in bytes per sec.
  281. \fI0\fR
  282. means unrestricted. You can append
  283. \fIK\fR
  284. or
  285. \fIM\fR(1K = 1024, 1M = 1024K). Default:
  286. \fI0\fR
  287. .RE
  288. .PP
  289. \-\-select\-file=INDEX\&...
  290. .RS 3n
  291. Set file to download by specifing its index. You can know file index through
  292. \fI\-\-show\-files\fR
  293. option. Multiple indexes can be specified by using
  294. \fI,\fR
  295. like "3,6". You can also use
  296. \fI\-\fR
  297. to specify rangelike "1\-5".
  298. \fI,\fR
  299. and
  300. \fI\-\fR
  301. can be used together.
  302. .RE
  303. .PP
  304. \-\-seed\-time=MINUTES
  305. .RS 3n
  306. Specify seeding time in minutes. See also
  307. \fI\-\-seed\-ratio\fR
  308. option.
  309. .RE
  310. .PP
  311. \-\-seed\-ratio=RATIO
  312. .RS 3n
  313. Specify share ratio. Seed completed torrents until share ratio reaches
  314. \fIRATIO\fR.
  315. \fI1.0\fR
  316. is encouraged. If
  317. \fI\-\-seed\-time\fR
  318. option is specified along with this option, seeding ends when at least one of the conditions is satisfied.
  319. .RE
  320. .PP
  321. \-M, \-\-metalink\-file=METALINK_FILE
  322. .RS 3n
  323. The file path to .metalink file.
  324. .RE
  325. .PP
  326. \-C, \-\-metalink\-servers=NUM_SERVERS
  327. .RS 3n
  328. The number of servers to connect to simultaneously. If more than one connection per server is required, use
  329. \fI\-s\fR
  330. option. Default:
  331. \fI15\fR
  332. .RE
  333. .PP
  334. \-\-metalink\-version=VERSION
  335. .RS 3n
  336. The version of file to download.
  337. .RE
  338. .PP
  339. \-\-metalink\-language=LANGUAGE
  340. .RS 3n
  341. The language of file to download.
  342. .RE
  343. .PP
  344. \-\-metalink\-os=OS
  345. .RS 3n
  346. The operating system the file is targeted.
  347. .RE
  348. .PP
  349. \-\-metalink\-location=LOCATION
  350. .RS 3n
  351. The location of the prefered server.
  352. .RE
  353. .PP
  354. \-\-follow\-metalink=true|false
  355. .RS 3n
  356. Setting this option to
  357. \fIfalse\fR
  358. prevents aria2 to enter Metalink mode even if the filename of downloaded file ends with .metalink. Default:
  359. \fItrue\fR
  360. .RE
  361. .PP
  362. \-v, \-\-version
  363. .RS 3n
  364. Print the version number and exit.
  365. .RE
  366. .PP
  367. \-h, \-\-help
  368. .RS 3n
  369. Print this message and exit.
  370. .RE
  371. .PP
  372. URL
  373. .RS 3n
  374. You can specify multiple URLs. All URLs must point to the same file or downloading fails.
  375. .RE
  376. .PP
  377. FILE
  378. .RS 3n
  379. Specify files in multi\-file torrent to download. Use conjunction with
  380. \fI\-T\fR
  381. option. This arguments are ignored if you specify
  382. \fI\-\-select\-file\fR
  383. option.
  384. .RE
  385. .SH "EXAMPLES"
  386. .PP
  387. Download a file by 1 connection
  388. .RS 3n
  389. aria2c http://AAA.BBB.CCC/file.zip
  390. .RE
  391. .PP
  392. Download a file by 2 connections
  393. .RS 3n
  394. aria2c \-s 2 http://AAA.BBB.CCC/file.zip
  395. .RE
  396. .PP
  397. Download a file by 2 connections, each connects to a different server
  398. .RS 3n
  399. aria2c http://AAA.BBB.CCC/file.zip http://DDD.EEE.FFF/GGG/file.zip
  400. .RE
  401. .PP
  402. You can mix up different protocols
  403. .RS 3n
  404. aria2c http://AAA.BBB.CCC/file.zip ftp://DDD.EEE.FFF/GGG/file.zip
  405. .RE
  406. .PP
  407. Download a torrent
  408. .RS 3n
  409. aria2c \-o test.torrent http://AAA.BBB.CCC/file.torrent
  410. .RE
  411. .PP
  412. Download a torrent using local .torrent file
  413. .RS 3n
  414. aria2c \-T test.torrent
  415. .RE
  416. .PP
  417. Download only selected files
  418. .RS 3n
  419. aria2c \-T test.torrent dir/file1.zip dir/file2.zip
  420. .RE
  421. .PP
  422. Print file listing of .torrent file
  423. .RS 3n
  424. aria2c \-T test.torrent \-S
  425. .RE
  426. .PP
  427. Metalink downloading
  428. .RS 3n
  429. aria2c \-\-lowest\-speed\-limit 10K http://AAA.BBB.CCC/file.metalink
  430. .RE
  431. .PP
  432. Download a file using local .metalink file
  433. .RS 3n
  434. aria2c \-M test.metalink
  435. .RE
  436. .PP
  437. Metalink downloading with preferences
  438. .RS 3n
  439. aria2c \-M test.metalink \-\-metalink\-version=1.1.1 \-\-metalink\-language=en\-US
  440. .RE
  441. .SH "FILES"
  442. .PP
  443. aria2.conf
  444. .RS 3n
  445. User configuration file. Must be placed under ~/.aria2 directory.
  446. .RE
  447. .SH "REPORTING BUGS"
  448. Report bugs to Tatsuhiro Tsujikawa <t\-tujikawa@users.sourceforge.net>
  449. .sp
  450. .SH "AUTHOR"
  451. Tatsuhiro Tsujikawa <t\-tujikawa@users.sourceforge.net>
  452. .sp
  453. .SH "COPYRIGHT"
  454. Copyright \(co 2006, 2007 Tatsuhiro Tsujikawa
  455. .sp