GNU/Linux >> Linux の 問題 >  >> Ubuntu

Ubuntuでapt-fastを使用してaptダウンロードを高速化する方法

たくさんのアップデートをインストールしなければならなかったことがありますか?そして、それはあなたに長い時間がかかりますか?システムを常に最新の状態に保つことは重要ですが、時間を節約して作業を最適化することも重要です。
Apt-fastは、ダウンロード中に各パッケージを複数の場所からプルできるようにするスクリプトです。これにより、すべてのパッケージのダウンロードが高速化され、パッケージの更新とインストールに関する作業がより迅速に完了します。

まず最初に、リポジトリを追加し、アプリをすばやくダウンロードしてインストールしましょう

sudo add-apt-repository ppa:apt-fast/stable 
sudo apt-get update
sudo apt-get install apt-fast  
Code language: JavaScript (javascript)

これで、apt-getまたはapt

と同じように使用できます。
sudo apt-fast update
sudo apt-fast upgrade 
sudo apt-fast dist-update

これがapt-fastinstallingbmonの出力です

root@webleit:~# apt-fast install bmon
bmon                                     1:4.0-6                   45KiB
libconfuse2                              3.2.2+dfsg-1              24KiB
libconfuse-common                        3.2.2+dfsg-1             5.4KiB
libnl-route-3-200                        3.4.0-1                  146KiB
Download size: 219KiB

Do you want to download the packages? [Y/n]

02/20 17:07:47 [NOTICE] Downloading 4 item(s)

02/20 17:07:47 [NOTICE] Verification finished successfully. file=/var/cache/apt/apt-fast/libconfuse2_3.2.2+dfsg-1_amd64.deb

02/20 17:07:47 [NOTICE] Download complete: /var/cache/apt/apt-fast/libconfuse2_3.2.2+dfsg-1_amd64.deb

02/20 17:07:47 [NOTICE] Verification finished successfully. file=/var/cache/apt/apt-fast/libnl-route-3-200_3.4.0-1_amd64.deb

02/20 17:07:47 [NOTICE] Download complete: /var/cache/apt/apt-fast/libnl-route-3-200_3.4.0-1_amd64.deb

02/20 17:07:47 [NOTICE] Verification finished successfully. file=/var/cache/apt/apt-fast/libconfuse-common_3.2.2+dfsg-1_all.deb

02/20 17:07:47 [NOTICE] Download complete: /var/cache/apt/apt-fast/libconfuse-common_3.2.2+dfsg-1_all.deb

02/20 17:07:47 [NOTICE] Verification finished successfully. file=/var/cache/apt/apt-fast/bmon_1%3a4.0-6_amd64.deb

02/20 17:07:47 [NOTICE] Download complete: /var/cache/apt/apt-fast/bmon_1%3a4.0-6_amd64.deb

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
a26dfb|OK  |   5.6MiB/s|/var/cache/apt/apt-fast/libconfuse2_3.2.2+dfsg-1_amd64.deb
adf53e|OK  |    10MiB/s|/var/cache/apt/apt-fast/libnl-route-3-200_3.4.0-1_amd64.deb
977019|OK  |   2.6MiB/s|/var/cache/apt/apt-fast/libconfuse-common_3.2.2+dfsg-1_all.deb
77f61e|OK  |   5.4MiB/s|/var/cache/apt/apt-fast/bmon_1%3a4.0-6_amd64.deb

Status Legend:
(OK):download completed.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libconfuse-common libconfuse2 libnl-route-3-200
The following NEW packages will be installed:
  bmon libconfuse-common libconfuse2 libnl-route-3-200
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/224 kB of archives.
After this operation, 798 kB of additional disk space will be used.
Do you want to continue? [Y/n] y

Code language: Bash (bash)

ダウンロード中にファイルがクラッシュした場合は、コマンドclean

を使用できます。
sudo apt-fast clean 
apt-fast 構成ファイルは次のとおりです:/etc/apt-fast.conf 、複数のミラーを追加して負荷を分散することにより、ダウンロード速度をさらに上げることができます。必ず最も近いミラーを追加してください。
Ubuntu
  1. Ubuntu20.04にSpotifyをインストールする方法

  2. Ubuntu18.04にMavenをインストールする方法

  3. Ubuntu16.04でVarnishを使用してDrupalを高速化する方法

  1. Ubuntu18.04でアプリケーションメニューを高速化する方法

  2. Ubuntuターミナルでコマンドラインを使用してファイルをダウンロードする方法

  3. コマンドラインを使用してUbuntuにファイルをダウンロードする方法

  1. Ubuntu20.04でAptキャッシュをクリアする方法

  2. Ubuntu20.04にGrafanaをインストールする方法

  3. Ubuntu20.04でリンク速度を確認する方法