aria2c.1 11 KB

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