Aria2 in Termux – Download Files, Torrents & Magnet Links

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 -y

Allow Termux to access your device storage.

termux-setup-storage

A permission popup will appear. Allow the storage permission and return to Termux.

Install the Aria2 package.

pkg install aria2 -y

Check the installed version.

aria2c --version

After 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.zip

Download a file and save it with a custom name.

aria2c -o myfile.zip https://example.com/file.zip

Resume an interrupted download.

aria2c -c https://example.com/file.zip

Download a file using multiple connections for faster speed.

aria2c -x 16 -s 16 https://example.com/file.zip

Download multiple files from a text file.

aria2c -i links.txt

Download a torrent file.

aria2c file.torrent

Download using a magnet link.

aria2c "magnet:?xt=urn:btih:HASH"

Limit download speed.

aria2c --max-download-limit=1M https://example.com/file.zip

Download a file directly from a GitHub repository.

aria2c https://raw.githubusercontent.com/user/repo/main/file.txt

Move 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 --help

End 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.

SHARE THIS POST: