About
aria2 pulls one file over several connections at once and can fetch a batch of URLs in a single run. It also handles BitTorrent and Metalink. Control it from the command line or a small RPC interface.
Install it
pkg install aria2
Run this inside Termux. If the package is already present, pkg will say so and
do nothing.
Commands worth knowing
5 of the invocations you will actually reach for. Tap the copy button to put one on your clipboard.
aria2c -x 8 -s 8 https://example.com/big.iso Download a single file over eight parallel connections. Makes the most of a fast link. aria2c -d /sdcard/Download -o file.zip https://example.com/file.zip Choose the destination directory and filename. Handy on a phone with tight storage paths. aria2c -Z https://example.com/a https://example.com/b https://example.com/c Fetch several URLs in one run, each with its own progress line. aria2c -c https://example.com/big.iso Continue a partial download that was cut off partway through. aria2c --seed-time=0 file.torrent Download a torrent and stop sharing it the moment it finishes. Suits a phone on metered data. Worked example
Run aria2c -x 8 https://example.com/big.iso and this is what you should see.
$ aria2c -x 8 https://example.com/big.iso
[#1 SIZE:0B/4.2MiB CN:1 SPD:0Bs]
*** Download Progress Summary ***
Download Results:
gid |stat|avg speed |path
1 |OK |2.1MiB/s |/sdcard/Download/file.iso Developed by
Tatsuhiro Tsujikawa · released under GPL-2.0.