aria2c.1 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
  4. .\" Date: 10/13/2008
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "10/13/2008" "" ""
  9. .\" disable hyphenation
  10. .nh
  11. .\" disable justification (adjust text to left margin only)
  12. .ad l
  13. .SH "NAME"
  14. aria2c \- The ultra fast download utility
  15. .SH "SYNOPSIS"
  16. aria2c [\fIOPTIONS\fR] [\fIURL\fR | \fITORRENT_FILE\fR | \fIMETALINK_FILE\fR]\&...
  17. .sp
  18. .SH "DESCRIPTION"
  19. aria2 is a utility for downloading files\&. The supported protocols are HTTP(S), FTP, BitTorrent, and Metalink\&. It can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth\&. It supports downloading a file from HTTP(S)/FTP and BitTorrent at the same time, while the data downloaded from HTTP(S)/FTP is uploaded to the BitTorrent swarm\&. Using Metalink\'s chunk checksums, aria2 automatically validates chunks of data while downloading a file like BitTorrent\&.
  20. .sp
  21. .SH "OPTIONS"
  22. .SS "Basic Options"
  23. .PP
  24. \fB\-d\fR, \fB\-\-dir\fR=DIR
  25. .RS 4
  26. The directory to store the downloaded file\&.
  27. .RE
  28. .PP
  29. \fB\-i\fR, \fB\-\-input\-file\fR=FILE
  30. .RS 4
  31. 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
  32. \fI\-\fR
  33. is specified\&.
  34. .RE
  35. .PP
  36. \fB\-l\fR, \fB\-\-log\fR=LOG
  37. .RS 4
  38. The file name of the log file\&. If
  39. \fI\-\fR
  40. is specified, log is written to stdout\&.
  41. .RE
  42. .PP
  43. \fB\-j\fR, \fB\-\-max\-concurrent\-downloads\fR=N
  44. .RS 4
  45. Set maximum number of parallel downloads for every static (HTTP/FTP) URL, torrent and metalink\&. Default:
  46. \fI5\fR
  47. .RE
  48. .PP
  49. \fB\-\-check\-integrity\fR=\fItrue\fR|\fIfalse\fR
  50. .RS 4
  51. 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\&. Default:
  52. \fIfalse\fR
  53. .RE
  54. .PP
  55. \fB\-c\fR, \fB\-\-continue\fR
  56. .RS 4
  57. 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\&.
  58. .RE
  59. .PP
  60. \fB\-h\fR, \fB\-\-help\fR[=CATEGORY]
  61. .RS 4
  62. Print usage and exit\&. The help messages are classified in several categories\&. For example, type "\fB\-\-help\fR=http" for detailed explanation for the options related to HTTP\&. If no matching category is found, search option name using a given word in middle match and print the result\&. Available Values:
  63. \fIbasic\fR,
  64. \fIadvanced\fR,
  65. \fIhttp\fR,
  66. \fIftp\fR,
  67. \fImetalink\fR,
  68. \fIbittorrent\fR,
  69. \fIall\fR
  70. Default:
  71. \fIbasic\fR
  72. .RE
  73. .SS "HTTP/FTP Options"
  74. .PP
  75. \fB\-\-connect\-timeout\fR=SEC
  76. .RS 4
  77. Set the connect timeout in seconds to establish connection to HTTP/FTP/proxy server\&. After the connection is established, this option makes no effect and
  78. \fB\-\-timeout\fR
  79. option is used instead\&. Default:
  80. \fI60\fR
  81. .RE
  82. .PP
  83. \fB\-\-lowest\-speed\-limit\fR=SPEED
  84. .RS 4
  85. Close connection if download speed is lower than or equal to this value(bytes per sec)\&.
  86. \fI0\fR
  87. means aria2 does not have a lowest speed limit\&. You can append
  88. \fIK\fR
  89. or
  90. \fIM\fR(1K = 1024, 1M = 1024K)\&. This option does not affect BitTorrent downloads\&. Default:
  91. \fI0\fR
  92. .RE
  93. .PP
  94. \fB\-\-max\-file\-not\-found\fR=NUM
  95. .RS 4
  96. If aria2 recieves `file not found\' status from the remote HTTP/FTP servers NUM times without getting a single byte, then force the download to fail\&. Specify
  97. \fI0\fR
  98. to disable this option\&. This options is only effective only when using HTTP/FTP servers\&. Default:
  99. \fI0\fR
  100. .RE
  101. .PP
  102. \fB\-m\fR, \fB\-\-max\-tries\fR=N
  103. .RS 4
  104. Set number of tries\&.
  105. \fI0\fR
  106. means unlimited\&. Default:
  107. \fI5\fR
  108. .RE
  109. .PP
  110. \fB\-o\fR, \fB\-\-out\fR=FILE
  111. .RS 4
  112. The file name of the downloaded file\&.
  113. .RE
  114. .sp
  115. .it 1 an-trap
  116. .nr an-no-space-flag 1
  117. .nr an-break-flag 1
  118. .br
  119. Note
  120. In Metalink, BitTorrent download you cannot specify file name\&. The file name specified here is only used when the URLs fed to aria2 is done by command line without \fB\-i\fR, \fB\-Z\fR option, like this: aria2c \-o myfile\&.zip http://mirror1/file\&.zip http://mirror2/file\&.zip
  121. .PP
  122. \fB\-R\fR, \fB\-\-remote\-time\fR[=\fItrue\fR|\fIfalse\fR]
  123. .RS 4
  124. Retrieve timestamp of the remote file from the remote HTTP/FTP server and if it is available, apply it to the local file\&. Default:
  125. \fIfalse\fR
  126. .RE
  127. .PP
  128. \fB\-\-retry\-wait\fR=SEC
  129. .RS 4
  130. Set the seconds to wait to retry after an error has occured\&. Specify a value between
  131. \fI0\fR
  132. and
  133. \fI60\fR\&. Default:
  134. \fI5\fR
  135. .RE
  136. .PP
  137. \fB\-\-server\-stat\-of\fR=FILE
  138. .RS 4
  139. Specify the filename to which performance profile of the servers is saved\&. You can load saved data using
  140. \fB\-\-server\-stat\-if\fR
  141. option\&. See SERVER PERFORMANCE PROFILE section below for file format\&.
  142. .RE
  143. .PP
  144. \fB\-\-server\-stat\-if\fR=FILE
  145. .RS 4
  146. Specify the filename to load performance profile of the servers\&. The loaded data will be used in some URI selector such as
  147. \fIfeedback\fR\&. See also
  148. \fB\-\-uri\-selector\fR
  149. option\&. See SERVER PERFORMANCE PROFILE section below for file format\&.
  150. .RE
  151. .PP
  152. \fB\-\-server\-stat\-timeout\fR=SEC
  153. .RS 4
  154. Specifies timeout in seconds to invalidate performance profile of the servers since the last contact to them\&. Default:
  155. \fI86400\fR
  156. (24hours)
  157. .RE
  158. .PP
  159. \fB\-s\fR, \fB\-\-split\fR=N
  160. .RS 4
  161. Download a file using N connections\&. If more than N URLs are given, first N URLs are used and remaining URLs are used for backup\&. If less than N URLs are given, those URLs are used more than once so that N connections total are made simultaneously\&. N must be between
  162. \fI1\fR
  163. and
  164. \fI16\fR\&. Please see
  165. \fB\-j\fR
  166. option too\&. Default:
  167. \fI5\fR
  168. .RE
  169. .PP
  170. \fB\-t\fR, \fB\-\-timeout\fR=SEC
  171. .RS 4
  172. Set timeout in seconds\&. Default:
  173. \fI60\fR
  174. .RE
  175. .PP
  176. \fB\-\-uri\-selector\fR=SELECTOR
  177. .RS 4
  178. Specify URI selection algorithm\&. Possible values are
  179. \fIinorder\fR
  180. and
  181. \fIfeedback\fR\&. If
  182. \fIinorder\fR
  183. is given, URI is tried in the order appeared in the URI list\&. If
  184. \fIfeedback\fR
  185. is given, aria2 uses download speed observed in the previous downloads and choose fastest server in the URI list\&. This also effectively skips dead mirrors\&. The observed download speed is a part of performance profile of servers mentioned in
  186. \fB\-\-server\-stat\-of\fR
  187. and
  188. \fB\-\-server\-stat\-if\fR
  189. options\&. Default:
  190. \fIinorder\fR
  191. .RE
  192. .SS "HTTP Specific Options"
  193. .PP
  194. \fB\-\-http\-auth\-scheme\fR=SCHEME
  195. .RS 4
  196. Set HTTP authentication scheme\&. Currently,
  197. \fIbasic\fR
  198. is the only supported scheme\&. Default:
  199. \fIbasic\fR
  200. .RE
  201. .PP
  202. \fB\-\-http\-user\fR=USER
  203. .RS 4
  204. Set HTTP user\&. This affects all URLs\&.
  205. .RE
  206. .PP
  207. \fB\-\-http\-passwd\fR=PASSWD
  208. .RS 4
  209. Set HTTP password\&. This affects all URLs\&.
  210. .RE
  211. .PP
  212. \fB\-\-http\-proxy\fR=HOST:PORT
  213. .RS 4
  214. Use HTTP proxy server\&. This affects all URLs\&.
  215. .RE
  216. .PP
  217. \fB\-\-http\-proxy\-user\fR=USER
  218. .RS 4
  219. Set HTTP proxy user\&. This affects all URLs\&.
  220. .RE
  221. .PP
  222. \fB\-\-http\-proxy\-passwd\fR=PASSWD
  223. .RS 4
  224. Set HTTP proxy password\&. This affects all URLs\&.
  225. .RE
  226. .PP
  227. \fB\-\-http\-proxy\-method\fR=METHOD
  228. .RS 4
  229. Set the method to use in proxy request\&.
  230. \fIMETHOD\fR
  231. is either
  232. \fIget\fR
  233. or
  234. \fItunnel\fR\&. Default:
  235. \fItunnel\fR
  236. .RE
  237. .PP
  238. \fB\-\-referer\fR=REFERER
  239. .RS 4
  240. Set Referer\&. This affects all URLs\&.
  241. .RE
  242. .PP
  243. \fB\-\-enable\-http\-keep\-alive\fR[=\fItrue\fR|\fIfalse\fR]
  244. .RS 4
  245. Enable HTTP/1\&.1 persistent connection\&. Default:
  246. \fItrue\fR
  247. .RE
  248. .PP
  249. \fB\-\-enable\-http\-pipelining\fR[=\fItrue\fR|\fIfalse\fR]
  250. .RS 4
  251. Enable HTTP/1\&.1 pipelining\&. Default:
  252. \fIfalse\fR
  253. .RE
  254. .PP
  255. \fB\-\-header\fR=HEADER
  256. .RS 4
  257. Append HEADER to HTTP request header\&. You can use this option repeatedly to specify more than one header: aria2c
  258. \fB\-\-header\fR="X\-A: b78"
  259. \fB\-\-header\fR="X\-B: 9J1"
  260. http://host/file
  261. .RE
  262. .PP
  263. \fB\-\-load\-cookies\fR=FILE
  264. .RS 4
  265. Load Cookies from FILE using the Firefox3 format(SQLite3) and the Mozilla/Firefox(1\&.x/2\&.x)/Netscape format\&.
  266. .RE
  267. .sp
  268. .it 1 an-trap
  269. .nr an-no-space-flag 1
  270. .nr an-break-flag 1
  271. .br
  272. Note
  273. If aria2 is build without libsqlite3, then it doesn\'t support Firefox3 cookie\&.
  274. .PP
  275. \fB\-U\fR, \fB\-\-user\-agent\fR=USER_AGENT
  276. .RS 4
  277. Set user agent for HTTP(S) downloads\&.
  278. .RE
  279. .SS "FTP Specific Options"
  280. .PP
  281. \fB\-\-ftp\-user\fR=USER
  282. .RS 4
  283. Set FTP user\&. This affects all URLs\&. Default:
  284. \fIanonymous\fR
  285. .RE
  286. .PP
  287. \fB\-\-ftp\-passwd\fR=PASSWD
  288. .RS 4
  289. Set FTP password\&. This affects all URLs\&. Default:
  290. \fIARIA2USER@\fR
  291. .RE
  292. .PP
  293. \fB\-p\fR, \fB\-\-ftp\-pasv\fR
  294. .RS 4
  295. Use passive mode in FTP\&.
  296. .RE
  297. .PP
  298. \fB\-\-ftp\-type\fR=TYPE
  299. .RS 4
  300. Set FTP transfer type\&. TYPE is either
  301. \fIbinary\fR
  302. or
  303. \fIascii\fR\&. Default:
  304. \fIbinary\fR
  305. .RE
  306. .PP
  307. \fB\-\-ftp\-reuse\-connection\fR[=\fItrue\fR|\fIfalse\fR]
  308. .RS 4
  309. Reuse connection in FTP\&. Default:
  310. \fItrue\fR
  311. .RE
  312. .PP
  313. \fB\-\-ftp\-via\-http\-proxy\fR=METHOD
  314. .RS 4
  315. Use HTTP proxy in FTP\&. METHOD is either
  316. \fIget\fR
  317. or
  318. \fItunnel\fR\&. Default:
  319. \fItunnel\fR
  320. .RE
  321. .PP
  322. \fB\-n\fR, \fB\-\-no\-netrc\fR
  323. .RS 4
  324. Disables netrc support\&. netrc support is enabled by default\&.
  325. .RE
  326. .SS "BitTorrent/Metalink Options"
  327. .PP
  328. \fB\-\-select\-file\fR=INDEX\&...
  329. .RS 4
  330. Set file to download by specifing its index\&. You can find the file index using the
  331. \fB\-\-show\-files\fR
  332. option\&. Multiple indexes can be specified by using ",", for example:
  333. \fI3,6\fR\&. You can also use "\-" to specify a range:
  334. \fI1\-5\fR\&. "," and "\-" can be used together:
  335. \fI1\-5,8,9\fR\&. When used with the \-M option, index may vary depending on the query (see
  336. \fB\-\-metalink\-\fR* options)\&.
  337. .RE
  338. .sp
  339. .it 1 an-trap
  340. .nr an-no-space-flag 1
  341. .nr an-break-flag 1
  342. .br
  343. Note
  344. In multi file torrent, the adjacent files specified by this option may also be downloaded\&. This is by design, not a bug\&. A single piece may include several files or part of files, and aria2 writes the piece to the appropriate files\&.
  345. .PP
  346. \fB\-S\fR, \fB\-\-show\-files\fR
  347. .RS 4
  348. Print file listing of \&.torrent or \&.metalink file and exit\&. In case of \&.torrent file, additional information (infohash, piece length, etc) is also printed\&.
  349. .RE
  350. .SS "BitTorrent Specific Options"
  351. .PP
  352. \fB\-\-bt\-max\-open\-files\fR=NUM
  353. .RS 4
  354. Specify maximum number of files to open in each BitTorrent download\&. Default:
  355. \fI100\fR
  356. .RE
  357. .PP
  358. \fB\-\-bt\-min\-crypto\-level\fR=\fIplain\fR|\fIarc4\fR
  359. .RS 4
  360. Set minimum level of encryption method\&. If several encryption methods are provided by a peer, aria2 chooses a lowest one which satisfies the given level\&. Default:
  361. \fIplain\fR
  362. .RE
  363. .PP
  364. \fB\-\-bt\-require\-crypto\fR=\fItrue\fR|\fIfalse\fR
  365. .RS 4
  366. If true is given, aria2 doesn\'t accept and establish connection with legacy BitTorrent handshake(\e19BitTorrent protocol)\&. Thus aria2 always uses Obfuscation handshake\&. Default:
  367. \fIfalse\fR
  368. .RE
  369. .PP
  370. \fB\-\-bt\-request\-peer\-speed\-limit\fR=SPEED
  371. .RS 4
  372. In BitTorrent downloads, if the download speed is lower than SPEED, aria2 initiates and accepts connections ignoring max peer cap\&. You can append
  373. \fIK\fR
  374. or
  375. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  376. \fI51200\fR
  377. .RE
  378. .PP
  379. \fB\-\-bt\-seed\-unverified\fR[=\fItrue\fR|\fIfalse\fR]
  380. .RS 4
  381. Seed previously downloaded files without verifying piece hashes\&. Default:
  382. \fIfalse\fR
  383. .RE
  384. .PP
  385. \fB\-\-dht\-entry\-point\fR=HOST:PORT
  386. .RS 4
  387. Set host and port as an entry point to DHT network\&.
  388. .RE
  389. .PP
  390. \fB\-\-dht\-file\-path\fR=PATH
  391. .RS 4
  392. Change the DHT routing table file to PATH\&. Default:
  393. \fI$HOME/\&.aria2/dht\&.dat\fR
  394. .RE
  395. .PP
  396. \fB\-\-dht\-listen\-port\fR=PORT\&...
  397. .RS 4
  398. Set UDP listening port for DHT\&. Multiple ports can be specified by using ",", for example:
  399. \fI6881,6885\fR\&. You can also use "\-" to specify a range:
  400. \fI6881\-6999\fR\&. "," and "\-" can be used together\&. Default:
  401. \fI6881\-6999\fR
  402. .RE
  403. .PP
  404. \fB\-\-direct\-file\-mapping\fR=\fItrue\fR|\fIfalse\fR
  405. .RS 4
  406. Directly read from and write to each file mentioned in \&.torrent file\&. Use this option if lots of files are listed in \&.torrent file and aria2 complains it cannot open files anymore\&. Default:
  407. \fItrue\fR
  408. .RE
  409. .PP
  410. \fB\-\-enable\-dht\fR[=\fItrue\fR|\fIfalse\fR]
  411. .RS 4
  412. Enable DHT functionality\&. If a private flag is set in a torrent, aria2 doesn\'t use DHT for that download even if
  413. \fItrue\fR
  414. is given\&. Default:
  415. \fIfalse\fR
  416. .RE
  417. .PP
  418. \fB\-\-enable\-peer\-exchange\fR[=\fItrue\fR|\fIfalse\fR]
  419. .RS 4
  420. Enable Peer Exchange extension\&. If a private flag is set in a torrent, this feature is disabled for that download even if
  421. \fItrue\fR
  422. is given\&. Default:
  423. \fItrue\fR
  424. .RE
  425. .PP
  426. \fB\-\-follow\-torrent\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  427. .RS 4
  428. If
  429. \fItrue\fR
  430. or
  431. \fImem\fR
  432. is specified, when a file whose suffix is "\&.torrent" or content type is "application/x\-bittorrent" is downloaded, aria2 parses it as a torrent file and downloads files mentioned in it\&. If
  433. \fImem\fR
  434. is specified, a torrent file is not written to the disk, but is just kept in memory\&. If
  435. \fIfalse\fR
  436. is specified, the action mentioned above is not taken\&. Default:
  437. \fItrue\fR
  438. .RE
  439. .PP
  440. \fB\-\-listen\-port\fR=PORT\&...
  441. .RS 4
  442. Set TCP port number for BitTorrent downloads\&. Multiple ports can be specified by using ",", for example:
  443. \fI6881,6885\fR\&. You can also use "\-" to specify a range:
  444. \fI6881\-6999\fR\&. "," and "\-" can be used together:
  445. \fI6881\-6889,6999\fR\&. Default:
  446. \fI6881\-6999\fR
  447. .RE
  448. .sp
  449. .it 1 an-trap
  450. .nr an-no-space-flag 1
  451. .nr an-break-flag 1
  452. .br
  453. Note
  454. Make sure that the specified ports are open for incoming TCP traffic\&.
  455. .PP
  456. \fB\-\-max\-upload\-limit\fR=SPEED
  457. .RS 4
  458. Set max upload speed in bytes per sec\&.
  459. \fI0\fR
  460. means unrestricted\&. You can append
  461. \fIK\fR
  462. or
  463. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  464. \fI0\fR
  465. .RE
  466. .PP
  467. \fB\-\-peer\-id\-prefix\fR=PEERI_ID_PREFIX
  468. .RS 4
  469. Specify the prefix of peer ID\&. The peer ID 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:
  470. \fI\-aria2\-\fR
  471. .RE
  472. .PP
  473. \fB\-\-seed\-ratio\fR=RATIO
  474. .RS 4
  475. Specify share ratio\&. Seed completed torrents until share ratio reaches] RATIO\&. I strongly encourages you to specify equals or more than
  476. \fI1\&.0\fR
  477. here\&. Specify
  478. \fI0\&.0\fR
  479. if you intend to do seeding regardless of share ratio\&. If
  480. \fB\-\-seed\-time\fR
  481. option is specified along with this option, seeding ends when at least one of the conditions is satisfied\&. Default:
  482. \fI1\&.0\fR
  483. .RE
  484. .PP
  485. \fB\-\-seed\-time\fR=MINUTES
  486. .RS 4
  487. Specify seeding time in minutes\&. Also see the
  488. \fB\-\-seed\-ratio\fR
  489. option\&.
  490. .RE
  491. .PP
  492. \fB\-T\fR, \fB\-\-torrent\-file\fR=TORRENT_FILE
  493. .RS 4
  494. The path to the \&.torrent file\&. You may not use this option because you can specify torrent file without \-T\&.
  495. .RE
  496. .SS "Metalink Specific Options"
  497. .PP
  498. \fB\-\-follow\-metalink\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  499. .RS 4
  500. If
  501. \fItrue\fR
  502. or
  503. \fImem\fR
  504. is specified, when a file whose suffix is "\&.metaink" or content type is "application/metalink+xml" is downloaded, aria2 parses it as a metalink file and downloads files mentioned in it\&. If
  505. \fImem\fR
  506. is specified, a metalink file is not written to the disk, but is just kept in memory\&. If
  507. \fIfalse\fR
  508. is specified, the action mentioned above is not taken\&. Default:
  509. \fItrue\fR
  510. .RE
  511. .PP
  512. \fB\-M\fR, \fB\-\-metalink\-file\fR=METALINK_FILE
  513. .RS 4
  514. The file path to \&.metalink file\&. You may not use this option because you can specify metalink file without \-M\&.
  515. .RE
  516. .PP
  517. \fB\-C\fR, \fB\-\-metalink\-servers\fR=NUM_SERVERS
  518. .RS 4
  519. The number of servers to connect to simultaneously\&. Some metalinks regulates the number of servers to connect\&. aria2 respects them\&. Default:
  520. \fI5\fR
  521. .RE
  522. .PP
  523. \fB\-\-metalink\-language\fR=LANGUAGE
  524. .RS 4
  525. The language of the file to download\&.
  526. .RE
  527. .PP
  528. \fB\-\-metalink\-location\fR=LOCATION[,\&...]
  529. .RS 4
  530. The location of the preferred server\&. A comma\-deliminated list of locations is acceptable, for example,
  531. \fIJP,US\fR\&.
  532. .RE
  533. .PP
  534. \fB\-\-metalink\-os\fR=OS
  535. .RS 4
  536. The operating system of the file to download\&.
  537. .RE
  538. .PP
  539. \fB\-\-metalink\-version\fR=VERSION
  540. .RS 4
  541. The version of the file to download\&.
  542. .RE
  543. .PP
  544. \fB\-\-metalink\-preferred\-protocol\fR=PROTO
  545. .RS 4
  546. Specify preferred protocol\&. The possible values are
  547. \fIhttp\fR,
  548. \fIhttps\fR,
  549. \fIftp\fR
  550. and
  551. \fInone\fR\&. Specifiy
  552. \fInone\fR
  553. to disable this feature\&. Default:
  554. \fInone\fR
  555. .RE
  556. .PP
  557. \fB\-\-metalink\-enable\-unique\-protocol\fR=\fItrue\fR|\fIfalse\fR
  558. .RS 4
  559. If
  560. \fItrue\fR
  561. is given and several protocols are available for a mirror in a metalink file, aria2 uses one of them\&. Use
  562. \fB\-\-metalink\-preferred\-protocol\fR
  563. option to specify the preference of protocol\&. Default:
  564. \fItrue\fR
  565. .RE
  566. .SS "Advanced Options"
  567. .PP
  568. \fB\-\-allow\-overwrite\fR=\fItrue\fR|\fIfalse\fR
  569. .RS 4
  570. If
  571. \fIfalse\fR
  572. is given, aria2 doesn\'t download a file which already exists but the corresponding \&.aria2 file doesn\'t exist\&. In HTTP(S)/FTP download, if
  573. \fB\-\-auto\-file\-renaming\fR=\fItrue\fR
  574. then, file name will be renamed\&. See
  575. \fB\-\-auto\-file\-renaming\fR
  576. for details\&. Default:
  577. \fIfalse\fR
  578. .RE
  579. .PP
  580. \fB\-\-allow\-piece\-length\-change\fR=\fItrue\fR|\fIfalse\fR
  581. .RS 4
  582. If false is given, aria2 aborts download when a piece length is different from one in a control file\&. If true is given, you can proceed but some download progress will be lost\&. Default:
  583. \fIfalse\fR
  584. .RE
  585. .PP
  586. \fB\-\-async\-dns\fR[=\fItrue\fR|\fIfalse\fR]
  587. .RS 4
  588. Enable asynchronous DNS\&. Default:
  589. \fItrue\fR
  590. .RE
  591. .PP
  592. \fB\-\-auto\-file\-renaming\fR[=\fItrue\fR|\fIfalse\fR]
  593. .RS 4
  594. 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:
  595. \fItrue\fR
  596. .RE
  597. .PP
  598. \fB\-\-auto\-save\-interval\fR=SEC
  599. .RS 4
  600. Save a control file(*\&.aria2) every SEC seconds\&. If
  601. \fI0\fR
  602. is given, a control file is not saved during download\&. aria2 saves a control file when it stops regardless of the value\&. The possible values are between
  603. \fI0\fR
  604. to
  605. \fI600\fR\&. Default:
  606. \fI60\fR
  607. .RE
  608. .PP
  609. \fB\-\-conf\-path\fR=PATH
  610. .RS 4
  611. Change the configuration file path to PATH\&. Default:
  612. \fI$HOME/\&.aria2/aria2\&.conf\fR
  613. .RE
  614. .PP
  615. \fB\-D\fR, \fB\-\-daemon\fR
  616. .RS 4
  617. Run as daemon\&.
  618. .RE
  619. .PP
  620. \fB\-\-enable\-direct\-io\fR[=\fItrue\fR|\fIfalse\fR]
  621. .RS 4
  622. Enable directI/O, which lowers cpu usage while allocating/checking files\&. Turn off if you encounter any error\&. Default:
  623. \fIfalse\fR
  624. .RE
  625. .PP
  626. \fB\-\-file\-allocation\fR=METHOD
  627. .RS 4
  628. Specify file allocation method\&. METHOD is either
  629. \fInone\fR
  630. or
  631. \fIprealloc\fR\&.
  632. \fInone\fR
  633. doesn\'t pre\-allocate file space\&.
  634. \fIprealloc\fR
  635. pre\-allocates file space before download begins\&. This may take some time depending on the size of the file\&. Default:
  636. \fIprealloc\fR
  637. .RE
  638. .PP
  639. \fB\-\-log\-level\fR=LEVEL
  640. .RS 4
  641. Set log level to output\&. LEVEL is either
  642. \fIdebug\fR,
  643. \fIinfo\fR,
  644. \fInotice\fR,
  645. \fIwarn\fR
  646. or
  647. \fIerror\fR\&. Default:
  648. \fIdebug\fR
  649. .RE
  650. .PP
  651. \fB\-\-summary\-interval\fR=SEC
  652. .RS 4
  653. Set interval in seconds to output download progress summary\&. Setting
  654. \fI0\fR
  655. suppresses the output\&. Default:
  656. \fI60\fR
  657. .RE
  658. .sp
  659. .it 1 an-trap
  660. .nr an-no-space-flag 1
  661. .nr an-break-flag 1
  662. .br
  663. Note
  664. In multi file torrent, the files adjacent forward to the specified files are also allocated if they share a same piece\&.
  665. .PP
  666. \fB\-Z\fR, \fB\-\-force\-sequential\fR[=\fItrue\fR|\fIfalse\fR]
  667. .RS 4
  668. Fetch URIs in the command\-line sequentially and download each URI in a separate session, like the usual command\-line download utilities\&. Default:
  669. \fIfalse\fR
  670. .RE
  671. .PP
  672. \fB\-\-max\-download\-limit\fR=SPEED
  673. .RS 4
  674. Set max download speed in bytes per sec\&.
  675. \fI0\fR
  676. means unrestricted\&. You can append
  677. \fIK\fR
  678. or
  679. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  680. \fI0\fR
  681. .RE
  682. .PP
  683. \fB\-\-no\-conf\fR
  684. .RS 4
  685. Disable loading aria2\&.conf file\&.
  686. .RE
  687. .PP
  688. \fB\-\-no\-file\-allocation\-limit\fR=SIZE
  689. .RS 4
  690. No file allocation is made for files whose size is smaller than SIZE\&. You can append
  691. \fIK\fR
  692. or
  693. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  694. \fI5M\fR
  695. .RE
  696. .PP
  697. \fB\-P\fR, \fB\-\-parameterized\-uri\fR[=\fItrue\fR|\fIfalse\fR]
  698. .RS 4
  699. Enable parameterized URI support\&. You can specify set of parts:
  700. \fIhttp://{sv1,sv2,sv3}/foo\&.iso\fR\&. Also you can specify numeric sequences with step counter:
  701. \fIhttp://host/image[000\-100:2]\&.img\fR\&. 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:
  702. \fIfalse\fR
  703. .RE
  704. .PP
  705. \fB\-q\fR, \fB\-\-quiet\fR[=\fItrue\fR|\fIfalse\fR]
  706. .RS 4
  707. Make aria2 quite (no console output)\&. Default:
  708. \fIfalse\fR
  709. .RE
  710. .PP
  711. \fB\-\-realtime\-chunk\-checksum\fR=\fItrue\fR|\fIfalse\fR
  712. .RS 4
  713. Validate chunk of data by calculating checkusm while download a file if chunk checksums are provided\&. Currently Metalink is the only way to to provide chunk checksums\&. Default:
  714. \fItrue\fR
  715. .RE
  716. .PP
  717. \fB\-\-stop\fR=SEC
  718. .RS 4
  719. Stop application after SEC seconds has passed\&. If
  720. \fI0\fR
  721. is given, this feature is disabled\&. Default:
  722. \fI0\fR
  723. .RE
  724. .PP
  725. \fB\-v\fR, \fB\-\-version\fR
  726. .RS 4
  727. Print the version number, copyright and the configuration information and exit\&.
  728. .RE
  729. .SS "URL, TORRENT_FILE, METALINK_FILE"
  730. You can specify multiple URLs in command\-line\&. Unless you specify \fB\-Z\fR option, all URLs must point to the same file or downloading will fail\&.
  731. .sp
  732. You can also specify arbitrary number of torrent files and metalink files stored in a local drive\&. Please note that they are always treated as a separate download\&.
  733. .sp
  734. You can specify both torrent file with \-T option and URLs\&. By doing this, download a file from both torrent swarm and HTTP(S)/FTP server at the same time, while the data from HTTP(S)/FTP are uploaded to the torrent swarm\&. Note that only single file torrent can be integrated with HTTP(S)/FTP\&.
  735. .sp
  736. .sp
  737. .it 1 an-trap
  738. .nr an-no-space-flag 1
  739. .nr an-break-flag 1
  740. .br
  741. Note
  742. Make sure that URL is quoted with single(\') or double(") quotation if it contains "&" or any characters that have special meaning in shell\&.
  743. .sp
  744. .SH "EXAMPLES"
  745. .SS "HTTP/FTP Segmented Download"
  746. .sp
  747. .it 1 an-trap
  748. .nr an-no-space-flag 1
  749. .nr an-break-flag 1
  750. .br
  751. Download a file
  752. .RS
  753. .sp
  754. .RS 4
  755. .nf
  756. aria2c http://host/file\&.zip
  757. .fi
  758. .RE
  759. .sp
  760. .it 1 an-trap
  761. .nr an-no-space-flag 1
  762. .nr an-break-flag 1
  763. .br
  764. Note
  765. aria2 uses 5 connections to download 1 file by default\&.
  766. .sp
  767. .RE
  768. .sp
  769. .it 1 an-trap
  770. .nr an-no-space-flag 1
  771. .nr an-break-flag 1
  772. .br
  773. Download a file using 1 connection
  774. .RS
  775. .sp
  776. .RS 4
  777. .nf
  778. aria2c \-s1 http://host/file\&.zip
  779. .fi
  780. .RE
  781. .sp
  782. .it 1 an-trap
  783. .nr an-no-space-flag 1
  784. .nr an-break-flag 1
  785. .br
  786. Note
  787. aria2 uses 5 connections to download 1 file by default\&. \-s1 limtis the number of connections to just 1\&.
  788. .sp
  789. .sp
  790. .it 1 an-trap
  791. .nr an-no-space-flag 1
  792. .nr an-break-flag 1
  793. .br
  794. Note
  795. To pause a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument at the same directory\&. You can change URLs as long as they are pointing to the same file\&.
  796. .sp
  797. .RE
  798. .sp
  799. .it 1 an-trap
  800. .nr an-no-space-flag 1
  801. .nr an-break-flag 1
  802. .br
  803. Download a file from 2 different HTTP servers
  804. .RS
  805. .sp
  806. .RS 4
  807. .nf
  808. aria2c http://host/file\&.zip http://mirror/file\&.zip
  809. .fi
  810. .RE
  811. .RE
  812. .sp
  813. .it 1 an-trap
  814. .nr an-no-space-flag 1
  815. .nr an-break-flag 1
  816. .br
  817. Download a file from HTTP and FTP servers
  818. .RS
  819. .sp
  820. .RS 4
  821. .nf
  822. aria2c http://host1/file\&.zip ftp://host2/file\&.zip
  823. .fi
  824. .RE
  825. .RE
  826. .sp
  827. .it 1 an-trap
  828. .nr an-no-space-flag 1
  829. .nr an-break-flag 1
  830. .br
  831. Download files listed in a file concurrently
  832. .RS
  833. .sp
  834. .RS 4
  835. .nf
  836. aria2c \-ifiles\&.txt \-j2
  837. .fi
  838. .RE
  839. .sp
  840. .it 1 an-trap
  841. .nr an-no-space-flag 1
  842. .nr an-break-flag 1
  843. .br
  844. Note
  845. \-j option specifies the number of parallel downloads\&.
  846. .sp
  847. .RE
  848. .SS "Metalink Download"
  849. .sp
  850. .it 1 an-trap
  851. .nr an-no-space-flag 1
  852. .nr an-break-flag 1
  853. .br
  854. Download files with remote Metalink
  855. .RS
  856. .sp
  857. .RS 4
  858. .nf
  859. aria2c \-\-follow\-metalink=mem http://host/file\&.metalink
  860. .fi
  861. .RE
  862. .RE
  863. .sp
  864. .it 1 an-trap
  865. .nr an-no-space-flag 1
  866. .nr an-break-flag 1
  867. .br
  868. Download using a local metalink file
  869. .RS
  870. .sp
  871. .RS 4
  872. .nf
  873. aria2c \-p \-\-lowest\-speed\-limit=4000 file\&.metalink
  874. .fi
  875. .RE
  876. .sp
  877. .it 1 an-trap
  878. .nr an-no-space-flag 1
  879. .nr an-break-flag 1
  880. .br
  881. Note
  882. To pause a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument at the same directory\&.
  883. .sp
  884. .RE
  885. .sp
  886. .it 1 an-trap
  887. .nr an-no-space-flag 1
  888. .nr an-break-flag 1
  889. .br
  890. Download several local metalink files
  891. .RS
  892. .sp
  893. .RS 4
  894. .nf
  895. aria2c \-j2 file1\&.metalink file2\&.metalink
  896. .fi
  897. .RE
  898. .RE
  899. .sp
  900. .it 1 an-trap
  901. .nr an-no-space-flag 1
  902. .nr an-break-flag 1
  903. .br
  904. Download only selected files using index
  905. .RS
  906. .sp
  907. .RS 4
  908. .nf
  909. aria2c \-\-select\-file=1\-4,8 file\&.metalink
  910. .fi
  911. .RE
  912. .sp
  913. .it 1 an-trap
  914. .nr an-no-space-flag 1
  915. .nr an-break-flag 1
  916. .br
  917. Note
  918. The index is printed to the console using \-S option\&.
  919. .sp
  920. .RE
  921. .sp
  922. .it 1 an-trap
  923. .nr an-no-space-flag 1
  924. .nr an-break-flag 1
  925. .br
  926. Download a file using a local .metalink file with user preference
  927. .RS
  928. .sp
  929. .RS 4
  930. .nf
  931. aria2c \-\-metalink\-location=JP,US \-\-metalink\-version=1\&.1 \-\-metalink\-language=en\-US file\&.metalink
  932. .fi
  933. .RE
  934. .RE
  935. .SS "BitTorrent Download"
  936. .sp
  937. .it 1 an-trap
  938. .nr an-no-space-flag 1
  939. .nr an-break-flag 1
  940. .br
  941. Download files from remote BitTorrent file
  942. .RS
  943. .sp
  944. .RS 4
  945. .nf
  946. aria2c \-\-follow\-torrent=mem http://host/file\&.torrent
  947. .fi
  948. .RE
  949. .RE
  950. .sp
  951. .it 1 an-trap
  952. .nr an-no-space-flag 1
  953. .nr an-break-flag 1
  954. .br
  955. Download using a local torrent file
  956. .RS
  957. .sp
  958. .RS 4
  959. .nf
  960. aria2c \-\-max\-upload\-limit=40K file\&.torrent
  961. .fi
  962. .RE
  963. .sp
  964. .it 1 an-trap
  965. .nr an-no-space-flag 1
  966. .nr an-break-flag 1
  967. .br
  968. Note
  969. \-\-max\-upload\-limit specifies the max of upload rate\&.
  970. .sp
  971. .sp
  972. .it 1 an-trap
  973. .nr an-no-space-flag 1
  974. .nr an-break-flag 1
  975. .br
  976. Note
  977. To pause a download, press Ctrl\-C\&. You can resume the transfer by run aria2c with the same argument at the same directory\&.
  978. .sp
  979. .RE
  980. .sp
  981. .it 1 an-trap
  982. .nr an-no-space-flag 1
  983. .nr an-break-flag 1
  984. .br
  985. Download 2 torrents
  986. .RS
  987. .sp
  988. .RS 4
  989. .nf
  990. aria2c \-j2 file1\&.torrent file2\&.torrent
  991. .fi
  992. .RE
  993. .RE
  994. .sp
  995. .it 1 an-trap
  996. .nr an-no-space-flag 1
  997. .nr an-break-flag 1
  998. .br
  999. Download a file using torrent and HTTP/FTP server
  1000. .RS
  1001. .sp
  1002. .RS 4
  1003. .nf
  1004. aria2c \-Ttest\&.torrent http://host1/file ftp://host2/file
  1005. .fi
  1006. .RE
  1007. .sp
  1008. .it 1 an-trap
  1009. .nr an-no-space-flag 1
  1010. .nr an-break-flag 1
  1011. .br
  1012. Note
  1013. Downloading multi file torrent with HTTP/FTP is not supported\&.
  1014. .sp
  1015. .RE
  1016. .sp
  1017. .it 1 an-trap
  1018. .nr an-no-space-flag 1
  1019. .nr an-break-flag 1
  1020. .br
  1021. Download only selected files using index(usually called "selectable download")
  1022. .RS
  1023. .sp
  1024. .RS 4
  1025. .nf
  1026. aria2c \-\-select\-file=1\-4,8 file\&.torrent
  1027. .fi
  1028. .RE
  1029. .sp
  1030. .it 1 an-trap
  1031. .nr an-no-space-flag 1
  1032. .nr an-break-flag 1
  1033. .br
  1034. Note
  1035. The index is printed to the console using \-S option\&.
  1036. .sp
  1037. .RE
  1038. .sp
  1039. .it 1 an-trap
  1040. .nr an-no-space-flag 1
  1041. .nr an-break-flag 1
  1042. .br
  1043. Change the listening port for incoming peer
  1044. .RS
  1045. .sp
  1046. .RS 4
  1047. .nf
  1048. aria2c \-\-listen\-port=7000\-7001,8000 file\&.torrent
  1049. .fi
  1050. .RE
  1051. .sp
  1052. .it 1 an-trap
  1053. .nr an-no-space-flag 1
  1054. .nr an-break-flag 1
  1055. .br
  1056. Note
  1057. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\&.
  1058. .sp
  1059. .RE
  1060. .sp
  1061. .it 1 an-trap
  1062. .nr an-no-space-flag 1
  1063. .nr an-break-flag 1
  1064. .br
  1065. Specify the condition to stop program after torrent download finished
  1066. .RS
  1067. .sp
  1068. .RS 4
  1069. .nf
  1070. aria2c \-\-seed\-time=120 \-\-seed\-ratio=1\&.0 file\&.torrent
  1071. .fi
  1072. .RE
  1073. .sp
  1074. .it 1 an-trap
  1075. .nr an-no-space-flag 1
  1076. .nr an-break-flag 1
  1077. .br
  1078. Note
  1079. In the above example, the program exists when the 120 minutes has elapsed since download completed or seed ratio reaches 1\&.0\&.
  1080. .sp
  1081. .RE
  1082. .sp
  1083. .it 1 an-trap
  1084. .nr an-no-space-flag 1
  1085. .nr an-break-flag 1
  1086. .br
  1087. Throttle upload speed
  1088. .RS
  1089. .sp
  1090. .RS 4
  1091. .nf
  1092. aria2c \-\-max\-upload\-limit=100K file\&.torrent
  1093. .fi
  1094. .RE
  1095. .RE
  1096. .sp
  1097. .it 1 an-trap
  1098. .nr an-no-space-flag 1
  1099. .nr an-break-flag 1
  1100. .br
  1101. Enable DHT
  1102. .RS
  1103. .sp
  1104. .RS 4
  1105. .nf
  1106. aria2c \-\-enable\-dht \-\-dht\-listen\-port=6881 file\&.torrent
  1107. .fi
  1108. .RE
  1109. .sp
  1110. .it 1 an-trap
  1111. .nr an-no-space-flag 1
  1112. .nr an-break-flag 1
  1113. .br
  1114. Note
  1115. DHT uses udp port\&. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\&.
  1116. .sp
  1117. .RE
  1118. .SS "More advanced HTTP features"
  1119. .sp
  1120. .it 1 an-trap
  1121. .nr an-no-space-flag 1
  1122. .nr an-break-flag 1
  1123. .br
  1124. Load cookies
  1125. .RS
  1126. .sp
  1127. .RS 4
  1128. .nf
  1129. aria2c \-\-load\-cookies=cookies\&.txt http://host/file\&.zip
  1130. .fi
  1131. .RE
  1132. .sp
  1133. .it 1 an-trap
  1134. .nr an-no-space-flag 1
  1135. .nr an-break-flag 1
  1136. .br
  1137. Note
  1138. You can use Firefox/Mozilla\'s cookie file without modification\&.
  1139. .sp
  1140. .RE
  1141. .sp
  1142. .it 1 an-trap
  1143. .nr an-no-space-flag 1
  1144. .nr an-break-flag 1
  1145. .br
  1146. Resume download started by web browsers or another programs
  1147. .RS
  1148. .sp
  1149. .RS 4
  1150. .nf
  1151. aria2c \-c \-s2 http://host/partiallydownloadedfile\&.zip
  1152. .fi
  1153. .RE
  1154. .RE
  1155. .SS "And more advanced features"
  1156. .sp
  1157. .it 1 an-trap
  1158. .nr an-no-space-flag 1
  1159. .nr an-break-flag 1
  1160. .br
  1161. Throttle download speed
  1162. .RS
  1163. .sp
  1164. .RS 4
  1165. .nf
  1166. aria2c \-\-max\-download\-limit=100K file\&.metalink
  1167. .fi
  1168. .RE
  1169. .RE
  1170. .sp
  1171. .it 1 an-trap
  1172. .nr an-no-space-flag 1
  1173. .nr an-break-flag 1
  1174. .br
  1175. Repair a damaged download using --check-integrity option
  1176. .RS
  1177. .sp
  1178. .RS 4
  1179. .nf
  1180. aria2c \-\-check\-integrity=true file\&.metalink
  1181. .fi
  1182. .RE
  1183. .sp
  1184. .it 1 an-trap
  1185. .nr an-no-space-flag 1
  1186. .nr an-break-flag 1
  1187. .br
  1188. Note
  1189. This option is only available used with BitTorrent or metalink with chunk checksums\&.
  1190. .sp
  1191. .RE
  1192. .sp
  1193. .it 1 an-trap
  1194. .nr an-no-space-flag 1
  1195. .nr an-break-flag 1
  1196. .br
  1197. Drop connection if download speed is lower than specified value
  1198. .RS
  1199. .sp
  1200. .RS 4
  1201. .nf
  1202. aria2c \-\-lowest\-speed\-limit=10K file\&.metalink
  1203. .fi
  1204. .RE
  1205. .RE
  1206. .sp
  1207. .it 1 an-trap
  1208. .nr an-no-space-flag 1
  1209. .nr an-break-flag 1
  1210. .br
  1211. Parameterized URI support
  1212. .RS
  1213. You can specify set of parts:
  1214. .sp
  1215. .sp
  1216. .RS 4
  1217. .nf
  1218. aria2c \-P http://{host1,host2,host3}/file\&.iso
  1219. .fi
  1220. .RE
  1221. You can specify numeric sequence:
  1222. .sp
  1223. .sp
  1224. .RS 4
  1225. .nf
  1226. aria2c \-Z \-P http://host/image[000\-100]\&.png
  1227. .fi
  1228. .RE
  1229. .sp
  1230. .it 1 an-trap
  1231. .nr an-no-space-flag 1
  1232. .nr an-break-flag 1
  1233. .br
  1234. Note
  1235. \-Z option is required if the all URIs don\'t point to the same file, such as the above example\&.
  1236. .sp
  1237. You can specify step counter:
  1238. .sp
  1239. .sp
  1240. .RS 4
  1241. .nf
  1242. aria2c \-Z \-P http://host/image[A\-Z:2]\&.png
  1243. .fi
  1244. .RE
  1245. .RE
  1246. .sp
  1247. .it 1 an-trap
  1248. .nr an-no-space-flag 1
  1249. .nr an-break-flag 1
  1250. .br
  1251. Parallel downloads of arbitrary number of URL,metalink,torrent
  1252. .RS
  1253. .sp
  1254. .RS 4
  1255. .nf
  1256. aria2c \-j3 \-Z http://host/file1 file2\&.torrent file3\&.metalink
  1257. .fi
  1258. .RE
  1259. .RE
  1260. .sp
  1261. .it 1 an-trap
  1262. .nr an-no-space-flag 1
  1263. .nr an-break-flag 1
  1264. .br
  1265. BitTorrent Encryption
  1266. .RS
  1267. Encrypt whole payload using ARC4:
  1268. .sp
  1269. .sp
  1270. .RS 4
  1271. .nf
  1272. aria2c \-\-bt\-min\-crypto\-level=arc4 \-\-bt\-require\-crypto=true file\&.torrent
  1273. .fi
  1274. .RE
  1275. .RE
  1276. .SH "RESUME DOWNLOAD"
  1277. Usually, you can resume transfer by just issuing same command(aria2c URL) if the previous transfer is made by aria2\&.
  1278. .sp
  1279. If the previous transfer is made by a browser or wget like sequencial download manager, then use \-c option to continue the transfer(aria2c \-c URL)\&.
  1280. .sp
  1281. .SH "CONTROL FILE"
  1282. aria2 uses a control file to keep track the progress of download\&. A control file is placed at the same directory of the dowloading file and its filename is the filename of downloading file with "\&.aria2" appended\&. For example, if you are downloading file\&.zip, then the control file should be file\&.zip\&.aria2\&. (There is a exception for this naming convention\&. If you are downloading a multi torrent, its control file is the "top directory" name of the torrent with "\&.aria2" appended\&. The "top directory" name is a value of "name" key in "info" directory in a torrent file\&.)
  1283. .sp
  1284. Usually a control file is deleted once download completed\&. If aria2 decides that download cannot be resumed(for example, when downloading a file from a HTTP server which doesn\'t support resume), a control file is not created\&.
  1285. .sp
  1286. Normally if you lose a control file, you cannot resume download\&. But if you have a torrent or metalink with chunk checksums for the file, you can resume the download without a control file by giving \-\-check\-integrity=true option to aria2c in command\-line\&.
  1287. .sp
  1288. .SH "SEEDING DOWNLOADED FILE IN BITTORRENT"
  1289. You can seed downloaded file using \-\-check\-integrity=true option\&.
  1290. .sp
  1291. .sp
  1292. .RS 4
  1293. .nf
  1294. aria2c \-\-check\-integrity=true file\&.torrent
  1295. .fi
  1296. .RE
  1297. .SH "SERVER PERFORMANCE PROFILE"
  1298. This section describes the format of server performance profile\&. The file is plain text and each line has several NAME=VALUE pair, delimited by comma\&. Currently following NAMEs are recognized:
  1299. .PP
  1300. host
  1301. .RS 4
  1302. Hostname of the server\&. Required\&.
  1303. .RE
  1304. .PP
  1305. protocol
  1306. .RS 4
  1307. Protocol for this profile, such as ftp, http\&. Required\&.
  1308. .RE
  1309. .PP
  1310. dl_speed
  1311. .RS 4
  1312. The average download speed observed in the previous download in bytes per sec\&. Required\&.
  1313. .RE
  1314. .PP
  1315. last_updated
  1316. .RS 4
  1317. Last contact time in GMT with this server, specified in the seconds from the Epoch\&. Required\&.
  1318. .RE
  1319. .PP
  1320. status
  1321. .RS 4
  1322. ERROR is set when server cannot be reached or out\-of\-service or timeout occurred\&. Otherwise, OK is set\&.
  1323. .RE
  1324. Those fields must exist in one line\&. The order of the fields is not significant\&.You can put pairs other than above; they are simply ignored\&.
  1325. .sp
  1326. An example is follow:
  1327. .sp
  1328. .sp
  1329. .RS 4
  1330. .nf
  1331. host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  1332. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR
  1333. .fi
  1334. .RE
  1335. .SH "FILES"
  1336. .SS "aria2\&.conf"
  1337. User configuration file\&. It must be placed under $HOME/\&.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 \fI\-\-\fR prefix\&. The lines beginning \fI#\fR are treated as comments\&.
  1338. .sp
  1339. .sp
  1340. .RS 4
  1341. .nf
  1342. # sample configuration file for aria2c
  1343. listen\-port=60000
  1344. dht\-listen\-port=60000
  1345. seed\-ratio=1\&.0
  1346. max\-upload\-limit=50K
  1347. ftp\-pasv=true
  1348. .fi
  1349. .RE
  1350. .SS "dht\&.dat"
  1351. By default, the routing table of DHT is saved to the path $HOME/\&.aria2/dht\&.dat\&.
  1352. .sp
  1353. .SH "RESOURCES"
  1354. Project web site: http://aria2\&.sourceforge\&.net/
  1355. .sp
  1356. metalink: http://www\&.metalinker\&.org/
  1357. .sp
  1358. .SH "REPORTING BUGS"
  1359. Report bugs to Tatsuhiro Tsujikawa <t\-tujikawa@users\&.sourceforge\&.net>
  1360. .sp
  1361. .SH "AUTHOR"
  1362. Tatsuhiro Tsujikawa <t\-tujikawa@users\&.sourceforge\&.net>
  1363. .sp
  1364. .SH "COPYRIGHT"
  1365. Copyright \(co 2006, 2008 Tatsuhiro Tsujikawa
  1366. .sp
  1367. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version\&.
  1368. .sp
  1369. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
  1370. .sp
  1371. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc\&., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301 USA
  1372. .sp
  1373. In addition, as a special exception, the copyright holders give permission to link the code of portions of this program with the OpenSSL library under certain conditions as described in each individual source file, and distribute linked combinations including the two\&. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL\&. If you modify file(s) with this exception, you may extend this exception to your version of the file(s), but you are not obligated to do so\&. If you do not wish to do so, delete this exception statement from your version\&. If you delete this exception statement from all source files in the program, then also delete it here\&.
  1374. .sp
  1375. .SH "NOTES"
  1376. .IP " 1." 4
  1377. t-tujikawa@users.sourceforge.net
  1378. .RS 4
  1379. \%mailto:t-tujikawa@users.sourceforge.net
  1380. .RE