LinuxCommandLibrary

aria2

Multi-protocol multi-source download utility

TLDR

Download a file
$ aria2c [https://example.com/file.zip]
copy
Download with multiple connections
$ aria2c -x [16] [https://example.com/file.zip]
copy
Download from multiple sources
$ aria2c [http://mirror1.com/file] [http://mirror2.com/file]
copy
Resume interrupted download
$ aria2c -c [https://example.com/file.zip]
copy
Download torrent
$ aria2c [file.torrent]
copy

SYNOPSIS

aria2c [-x connections] [-c] [options] urls|torrent|metalink

DESCRIPTION

aria2 is a lightweight multi-protocol download utility supporting HTTP/HTTPS, FTP, SFTP, BitTorrent, and Metalink. It can download files using multiple connections and sources simultaneously for faster speeds.
The tool is highly optimized, using minimal memory while supporting advanced features like segmented downloading and BitTorrent.

PARAMETERS

-x n, --max-connection-per-server n

Maximum connections per server
-s n, --split n
Split download into n parts
-c, --continue
Resume download
-d dir, --dir dir
Download directory
-o file, --out file
Output filename
-j n, --max-concurrent-downloads n
Parallel downloads
-i file, --input-file file
Download URLs from file
--enable-rpc
Enable JSON-RPC/XML-RPC
--seed-time minutes
BitTorrent seeding time
--select-file indices
Select files from torrent

CONFIGURATION

~/.aria2/aria2.conf

Default configuration file for setting download options, connection limits, and protocol-specific settings.

CAVEATS

Multiple connections may be limited by server. BitTorrent requires proper port forwarding for best performance. Some features require specific options enabled.

HISTORY

aria2 was developed by Tatsuhiro Tsujikawa, with initial release around 2006. It has become a popular alternative to wget and curl for its multi-connection download capability.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard