How to Install Aria2 1.18.3 - A Download Manager in Linux

To Install Aria2 1.18.3 - A Multi Protocol Command Line Download Manager for Linux

Aria2 1.18.3 is an open source and lightweight multi protocol command line download manager for Windows, Mac OSX and Linux. Installation of Aria2 is explained in this article.


To Install Aria2

On RHEL/CentOS/Fedora

To install Aria2 by using the following command.

# yum install aria2

On Debian/Ubuntu/Linux Mint

user1@linuxhelp:~/Desktop$ sudo apt-get install aria2
ravisaive@ravisaive-OptiPlex-380:~$  sudo apt-get install aria2
[sudo] password for ravisaive:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ksysguardd libruby1.9.1 ruby1.9.1
Use ' apt-get autoremove'  to remove them.
The following extra packages will be installed:
  libc-ares2
The following NEW packages will be installed:
  aria2 libc-ares2
0 upgraded, 2 newly installed, 0 to remove and 234 not upgraded.
10 not fully installed or removed.
Need to get 1,651 kB of archives.
After this operation, 4,536 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://in.archive.ubuntu.com/ubuntu/ saucy/main libc-ares2 i386 1.10.0-2 [38.3 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu/ saucy/universe aria2 i386 1.17.0-1 [1,613 kB]
Fetched 1,651 kB in 7s (235 kB/s)

The default repositories don' t give latest version sometimes. In that case, you have to compile and install it from source package.


To download from WEB

To download single file from the web, run the following command.

user1@linuxhelp:~/Desktop$ aria2c https://download.fedoraproject.org/pub/fedora/linux/releases/23/Workstation/x86_64/iso/Fedora-Live-Workstation-x86_64-23-10.iso
[#1e0a7d 2.4MiB/1.3GiB(0%) CN:1 DL:347KiB ETA:1h8m39s]

Execute the following command to download multiple files.

user1@linuxhelp:~/Desktop$ aria2c https://download.fedoraproject.org/pub/fedora/linux/releases/23/Server/x86_64/iso/Fedora-Server-DVD-x86_64-23.iso https://download.fedoraproject.org/pub/fedora/linux/releases/23/Workstation/x86_64/iso/Fedora-Live-Workstation-x86_64-23-10.iso
[#d5ee18 5.6MiB/2.0GiB(0%) CN:1 DL:502KiB ETA:1h9m22s]


To download from BitTorrent

Use the following command to download torrent file.

user1@linuxhelp:~/Desktop$ aria2c http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso.torrent

06/01 04:04:54 [NOTICE] Download complete: /home/user1/Desktop/ubuntu-16.04-desktop-amd64.iso.torrent

06/01 04:04:54 [NOTICE] IPv4 DHT: listening on UDP port 6961

06/01 04:04:54 [NOTICE] IPv4 BitTorrent: listening on TCP port 6944

06/01 04:04:54 [NOTICE] IPv6 BitTorrent: listening on TCP port 6944
[#6f9f1e 16MiB/1.3GiB(1%) CN:44 SD:38 DL:664KiB ETA:35m58s]^C                                       
06/01 04:05:26 [NOTICE] Shutdown sequence commencing... Press Ctrl-C again for emergency shutdown.
[#6f9f1e 17MiB/1.3GiB(1%) CN:0 SD:0 DL:474KiB ETA:50m19s]                                           
06/01 04:05:30 [NOTICE] Emergency shutdown sequence commencing...

06/01 04:05:30 [NOTICE] Download GID#6f9f1ebf172b6847 not complete: /home/user1/Desktop/ubuntu-16.04-desktop-amd64.iso


To download URLs found in text file

Execute the following command to download list of URLs written in a text file called download.txt.

user1@linuxhelp:~/Desktop$ aria2c -i download.txt
06/01 04:05:59 [NOTICE] File already exists. Renamed to /home/user1/Desktop/ubuntu-16.04-desktop-amd64.iso.torrent.1.


To set Download Speed Limit

To set download speed limit per download, execute the following command.

user1@linuxhelp:~/Desktop$ aria2c --max-download-limit=100k https://download.fedoraproject.org/pub/fedora/linux/releases/23/Server/x86_64/iso/Fedora-Server-DVD-x86_64-23.iso
[#c898bc 2.9MiB/2.0GiB(0%) CN:1 DL:91KiB ETA:6h20m2s]

FAQ
Q
What is the configuration file for Aria2?
A
This is the aria2c v1.18.10 x64 or x86 exe, in a folder that includes a aria2c.bat, a runme.vbs file and a custom aria2.conf with some pre configured settings.
Q
How does the downlaod process?
A
aria2c will create a new folder relative (in the same place) to the aria2c.exe when you start a download and use this location to store downloads.
Q
How to install it in fedora? Please reply?
A
dnf install aria2
Q
Is this replaces the work of wget
A
Similar to wget almost
Q
How to install it in arch linux?
A
"pkg install package name"