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.
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.
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
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.
Latest posts by Ravi Saive (see all)
- How to Install GUI (Gnome 3) Using CD/DVD on RHEL/CentOS 7 - December 18, 2014
- Wine 1.7.33 (Development Version) Released – Install in RedHat and Debian Based Systems - December 13, 2014
- How to Enable RPMForge Repository in RHEL/CentOS 7.x/6.x/5.x - December 12, 2014