Aria2 is a lightweight and powerful download manager that supports HTTP, HTTPS, FTP, SFTP, BitTorrent, and Metalink downloads. It is known for its fast download speed and multi-connection support, making it useful for downloading files directly from the terminal. You can install and use Aria2 in Termux to download files, resume interrupted downloads, and manage downloads using simple commands.
Here’s what you can do with Aria2 in Termux:
- Download files from direct URLs.
- Resume interrupted downloads.
- Download files using multiple connections.
- Download torrent files.
- Download magnet links.
- Manage downloads from the terminal.
How to Install Aria2 in Termux
Below are the simple commands to install Aria2 in Termux. Copy and run each command one by one to install the tool on your Android device.
Update Termux packages first.
pkg update && pkg upgrade -yAllow Termux to access your device storage.
termux-setup-storageA permission popup will appear. Allow the storage permission and return to Termux.
Install the Aria2 package.
pkg install aria2 -yCheck the installed version.
aria2c --versionAfter completing the installation, Aria2 will be ready to use inside the Termux terminal.
How to Use Aria2 in Termux
Aria2 uses the aria2c command to download and manage files. Below are some useful commands that can be used with Aria2.
Download a file from a direct URL.
aria2c https://example.com/file.zipDownload a file and save it with a custom name.
aria2c -o myfile.zip https://example.com/file.zipResume an interrupted download.
aria2c -c https://example.com/file.zipDownload a file using multiple connections for faster speed.
aria2c -x 16 -s 16 https://example.com/file.zipDownload multiple files from a text file.
aria2c -i links.txtDownload a torrent file.
aria2c file.torrentDownload using a magnet link.
aria2c "magnet:?xt=urn:btih:HASH"Limit download speed.
aria2c --max-download-limit=1M https://example.com/file.zipDownload a file directly from a GitHub repository.
aria2c https://raw.githubusercontent.com/user/repo/main/file.txtMove a downloaded file to your device storage.
mv file.zip ~/storage/downloads/The downloaded file will be moved to the Android Downloads folder.
Move all downloaded files to the Downloads folder.
mv * ~/storage/downloads/Show the Aria2 help menu.
aria2c --helpEnd Note
Aria2 is a fast and lightweight download manager that makes downloading files easier from the terminal. It supports direct downloads, torrents, magnet links, multiple connections, and download resuming features. By using Aria2 in Termux, you can download files efficiently and move them directly to your Android storage whenever needed.

