ウェブサイト検索

Aria2 - Linux 用マルチプロトコル コマンドライン ダウンロード ツール


Aria2 は、WindowsLinuxMac 用のオープンソースの無料の軽量マルチプロトコルおよびマルチサーバー コマンドライン ダウンロード ユーティリティです。 OSX です。

HTTP/HTTPSFTPBitTorrent、< などの複数のプロトコルやソースからファイルをダウンロードする機能があります。強>メタリンクです。最大ダウンロード帯域幅を利用することでダウンロード速度が向上し、ダウンロード体験が高速化されます。

特徴

  • マルチ接続ダウンロード – 複数のソース/プロトコルからファイルをダウンロードし、最大のダウンロード帯域幅を使用して全体的なダウンロード エクスペリエンスを向上させることができます。
  • 軽量 – メモリや CPU の使用率をあまり必要としません。 HTTP/FTP ダウンロードでは 4 MB のメモリのみが使用され、BitTorrent ダウンロードでは 9 MB のみが使用されます。
  • フル機能の BitTorrent クライアント – DHT、PEX、暗号化、マグネット URI、Web シーディング、選択的ダウンロード、ローカル ピア検出、UDP トラッカーをサポートするフル機能の BitTorrent クライアント。
  • Metalink 有効 – Metalink バージョン 4 および 3 をサポートしており、HTTP/FTP/SFTP/BitTorrent 統合のファイル検証と、場所、言語、OS などのさまざまな構成を提供します。
  • リモート コントロール – aria2 プロセスを制御するための RPC インターフェイス サポート。サポートされているインターフェイスは、JSON-RPC (HTTP および WebSocket 経由) と XML-RPC です。

aria2 は wget、curl、torrent クライアントの代替品であると考えるべきではなく、より多くのサポートとダウンロード オプションを備えた代替品として考慮されるべきであることに注意してください。

Linx への Aria2 コマンドライン ダウンロード マネージャーのインストール

この記事では、RHELAria2 コマンドライン ダウンロード ユーティリティをインストールする方法について説明します。 CentOSFedoraDebianUbuntuLinux Mint > いくつかの便利なダウンロード技術と使用法を備えたシステム。

RHEL/CentOS/Fedora の場合

まず、RHEL/CentOS システムで EPEL リポジトリをダウンロードして有効にする必要があります。 (注:Fedora ユーザーはリポジトリを追加する必要はありません。示されているように dnf コマンドを使用して aria2 をインストールするだけです)。


dnf install aria2

次に、YUM コマンド ツールを使用して、システム内の有効なEPELリポジトリからAria2パッケージをインストールします。


yum install epel-release -y
yum install aria2 -y
サンプル出力:

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.mirrors.estointernet.in
 * elrepo: mirror-hk.koddos.net
 * epel: repos.del.extreme-ix.org
 * extras: centos.mirrors.estointernet.in
 * updates: centos.mirrors.estointernet.in
Resolving Dependencies
--> Running transaction check
---> Package aria2.x86_64 0:1.18.10-2.el7.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================
 Package                                         Arch               Version                Repository           Size
==========================================================================================================================
Installing:
 aria2                                           x86_64             1.18.10-2.el7.1        epel                 1.3 M

Transaction Summary
==========================================================================================================================
Install  1 Package

Total download size: 1.3 M
Installed size: 4.1 M
Downloading packages:
aria2-1.18.10-2.el7.1.x86_64.rpm                                                                        | 1.3 MB  00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : aria2-1.18.10-2.el7.1.x86_64                                                             1/1 
  Verifying  : aria2-1.18.10-2.el7.1.x86_64                                                             1/1 
Installed:
  aria2.x86_64 0:1.18.10-2.el7.1

Complete!

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)

: デフォルトのリポジトリが最新バージョンを提供していない場合があります。したがって、その場合は、ここに示すようにソース パッケージからコンパイルしてインストールする必要がある場合があります。

Aria2 ダウンロードの使用法と例

ここでは、aria2 ダウンロードの便利な使用法とオプションの例をいくつか紹介します。

WEBからダウンロード

Web から 1 つのファイルをダウンロードするには、次のコマンドを実行します。

aria2c http://releases.ubuntu.com/disco/ubuntu-19.04-desktop-amd64.iso
2 つのソースからダウンロード

複数のファイル (たとえば 2 つのファイル) をダウンロードするには、次のコマンドを実行します。

aria2c http://releases.ubuntu.com/disco/ubuntu-19.04-desktop-amd64.iso http://releases.ubuntu.com/cosmic/ubuntu-18.10-desktop-amd64.iso
2 つの接続を使用してダウンロードする

ホストごとに 2 つの接続のみを使用してファイルをダウンロードするには、以下に示すようにオプション -x2 (接続 2) を使用します。

aria2c -x2 http://releases.ubuntu.com/disco/ubuntu-19.04-desktop-amd64.iso
BitTorrentからダウンロード

torrent ファイルをダウンロードするには、次のコマンドを使用します。

aria2c http://releases.ubuntu.com/disco/ubuntu-19.04-desktop-amd64.iso.torrent
メタルリンクからダウンロード

metallink ファイルをダウンロードするには、次のコマンドを使用します。


aria2c http://example.org/mylinux.metalink
テキスト ファイル内にあるダウンロード URL

downloadurls.txt というテキスト ファイルに記述された URL のリストをダウンロードするには、次のコマンドを使用します。 URLdownloadurls.txt ファイルには、1 行に 1 つのダウンロードが含まれている必要があります。

aria2c -i downloadurls.txt
ダウンロード速度制限を設定する

ダウンロードごとのダウンロード速度制限を設定するには、次のオプションを使用します。

aria2c –max-download-limit=100K http://releases.ubuntu.com/disco/ubuntu-19.04-desktop-amd64.iso.torrent

さらに詳しい使用方法とオプションについては、ターミナルを開いてコマンドを「man aria2c」として実行します。 Aria2 で利用できるグラフィカル フロントエンドもあり、aria2 ページで見つけることができます。