Did You Know?
Got a tip? Let us know

HostGator Diwali Mega Offer 50% Flat Discount on all Hosting Plans - Grab it Now

Aria2 1.18.3 Released – A Multi-Protocol Command-Line Download Manager for Linux

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators
CW

Aria2 is an open source and free lightweight multi-protocol & multi-source command-line download manager for Windows, Linux and Mac OSX. It has an ability to download files from multiple protocols and sources including HTTP/HTTPS, FTP, BitTorrent and Metalink. It improves download speed by utilizing maximum download bandwidth and speeds up your download experience.

Aria2 1.18.3 is the latest release that comes with some exciting features, such as custom HTTP Header support, magnet links support, segmented downloading, and much more. For more information, read the official announcement page for the complete list of new changes and updates.

Install Aria2 in Linux

Install Aria2 in Linux

We should not considered aria2 is a replacement of wget, curl or torrent clients, but rather considered as an alternative with more support and download options.

Installing Aria2 Command-Line Download Manager in Linx

This article explains how to install Aria2 using RPMForge repository in RHEL, CentOS, Fedora and Debian, Ubuntu, Linux Mint systems with some useful download techniques and usage.

On RHEL/CentOS/Fedora

First, you need to download and enable RPMForge repository under RHEL/CentOS systems. (Note : Fedora users don’t need to add any repository, simply skip this step).

Now install Aria2 package from the enabled RPMForge repository under your system using YUM command tool.

# yum install aria2
Sample Output :
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package aria2.i386 0:1.3.1-1.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================
 Package           Arch			   Version                Repository		Size
=========================================================================================
Installing:
 aria2             i386            1.3.1-1.el5.rf         rpmforge          1.6 M

Transaction Summary
=========================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 1.6 M

On Debian/Ubuntu/Linux Mint

$ sudo apt-get install aria2
Sample Output
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)

Note : Sometimes, the default repositories don’t provide latest version. So, in that case you might need to compile and install it from the source package.

Aria2 Download Usage & Examples

Here we will explore some of useful aria2 download usage and options with their examples.

Download from WEB

To download single file from the web, execute the command as.

# aria2c http://releases.ubuntu.com/12.10/ubuntu-12.10-server-i386.iso
Download from Two sources

To download multiple files, say two files, then run the following command.

# aria2c http://releases.ubuntu.com/12.10/ubuntu-12.10-server-i386.iso http://releases.ubuntu.com/12.10/ubuntu-12.10-server-amd64.iso
Download using Two connections

To download file using only two connections per host, then use the option -x2 (connection 2) as shown below.

# aria2c -x2 http://releases.ubuntu.com/12.10/ubuntu-12.10-server-i386.iso
Download from BitTorrent

To download torrent file use the following command.

# aria2c http://releases.ubuntu.com/12.10/ubuntu-12.10-server-i386.iso.torrent
Download URLs found in text file

To download list of URL’s written in a text file called downloadurls.txt, then use the following command. The URL‘s should contain one download per line in downloadurls.txt file.

# aria2c -i downloadurls.txt
Set Download Speed Limit

To set download speed limit per download, use the following option.

# aria2c –max-download-limit=100K http://releases.ubuntu.com/12.10/ubuntu-12.10-server-i386.iso

For more usage and options, open a terminal and run the command as “man aria2c“. There are also graphical front-ends available for Aria2, you can find them at aria2c page.

Ravi Saive

Owner at TecMint.com
Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Linux Services & Free WordPress Setup

Our post is simply ‘DIY’ aka ‘Do It Yourself, still you may find difficulties and want us to help you out. We offer wide range of Linux and Web Hosting Solutions at fair minimum rates. Please submit your orders by Clicking Here.

Leave a Reply

This work is licensed under a (cc) BY-NC | TecMint uses cookies. By using our services, you comply to use of our cookies. More info: Privacy Policy.
© 2012-2014 All Rights Reserved.