Linux command line download tool ARIA2 instance __linux

Source: Internet
Author: User
Tags bz2 owncloud arch linux metalink

Transferred from

Https://linux.cn/article-7982-1.html


Aria2 is a free, open source, lightweight multi-protocol, and multiple source command-line download tool. It supports the Http/https, FTP, SFTP, BitTorrent, and Metalink protocols. ARIA2 can be manipulated by built-in JSON-RPC and XML-RPC interfaces. ARIA2 automatically verifies data blocks when downloading files. It can download a file from multiple sources or multiple protocols, and will try to take advantage of your maximum download bandwidth. By default, all Linux distributions include aria2, so we can easily install them from the official library. Some GUI download managers such as uget use ARIA2 as plug-ins to increase download speed. Aria2 feature support Http/https get support HTTP proxy support HTTP BASIC authentication support HTTP proxy authentication support FTP (active, passive mode) FTP via HTTP proxy (get command line or tunnel ) Segmented download support cookies can be run as daemons. Support for BitTorrent protocol with fast extensions support to select File support in multiple file torrent Metalink version 3.0 (http/ftp/bittorrent) limit download, upload speed 1) Linux install ARIA2

We can easily install the ARIA2 command line downloader on all Linux distributions, such as Debian, Ubuntu, Mint, RHEL, CentOS, Fedora, SuSE, OpenSUSE, Arch Linux, Manjaro, Mageia and so on ... Just enter the following command to install it. For CentOS, RHEL systems, we need to turn on Uget or Rpmforge library support.

   
   
    
    [For Debian, Ubuntu, and Mint]
    
    $ sudo apt-get install aria2
    
    
    
    [for CentOS, RHEL, Fedora 21 and earlier operating systems]
    
    # yum install aria2
    
    
    
    [Fedora 22 and after system]
  # DNF Install aria2
    
    
    
    [for SuSE and OpenSUSE]
    
    # zypper install wget
    
    
    
    [Mageia]
    
    # URPMI aria2
    
    
    
    [for Arch Linu X]
    
    $ sudo pacman-s aria2
   
   
2) Download a single file

The following command downloads a file from the specified URL and is saved in the current directory, and we can see the file (date, time, download speed, and download progress) during the download file.

   
   
    
    # aria2c https://download.owncloud.org/community/owncloud-9.0.0.tar.bz2
    
    [#986c80 19mib/21mib (90%) Cn:1 Dl:3.0mib]
    
    03/22 09:49:13 [NOTICE] Download complete:/opt/owncloud-9.0.0.tar.bz2 Download Results
    
    
    
    :
    
    GID   |stat|avg speed  |path/uri
    
    ======+====+===========+============================================= ==========
    
    986c80| OK  |   3.0mib/s|/opt/owncloud-9.0.0.tar.bz2
    
    
    
    Status Legend:
    
    (OK):d Ownload completed.
   
   
3 Save the file with a different name

When initializing a download, we can use the-O (lowercase) option to use a different name when saving the file. Here we will use the Owncloud.zip filename to save the file.

 # Aria2c-o Owncloud.zip https://download.owncloud.org/c ommunity/owncloud-9.0.0.tar.bz2 [#d31304 16mib/21mib (74%) Cn:1 Dl:6.2mib] 03/22 09:51:02 [NOTICE] Download complete:< 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.