$ service ssh0 start

from everything import *

apt-fastのインストール

You need to have aria2c installed:

sudo apt-get install aria2
git clone https://github.com/ilikenwf/apt-fast.git ~/.git/apt-fast
cd ~/.git/apt-fast
sudo cp apt-fast /usr/loca/bin/
sudo chmod +x /usr/local/bin/apt-fast
sudo cp apt-fast.conf /etc/

複数ミラーの設定

Adding multiple mirrors will further speed up downloads and distribute load, be sure to add mirrors near to your location. Official mirror lists:

日本のサーバーでよさ気なものをいくつか入れてみる。

@/etc/apt-fast.conf

MIRRORS=( 'http://ftp.riken.jp/Linux/ubuntu/, http://ftp.tsukuba.wide.ad.jp/Linux/ubuntu/, http://ubuntutym.u-toyama.ac.jp/ubuntu/' )

補完に関する設定

Bash

sudo cp completions/bash/apt-fast /etc/bash_completion.d/
sudo chown root:root /etc/bash_completion.d/apt-fast

Zsh

sudo cp completions/zsh/_apt-fast /usr/share/zsh/functions/Completion/Debian/
sudo chown root:root /usr/share/zsh/functions/Completion/Debian/_apt-fast

マニュアルのインストール

sudo cp man/apt-fast.8 /usr/share/man/man8/
sudo gzip -f9 /usr/share/man/man8/apt-fast.8
sudo cp man/apt-fast.conf.5 /usr/share/man/man5/
sudo gzip -f9 /usr/share/man/man5/apt-fast.conf.5

aliasを設定

@~/.zshrc

if hash apt-fast; then
  alias apt-upd='apt-fast update'
  alias apt-upg='apt-fast upgrade'
  alias apt-ins='apt-fast install'
else
  alias apt-upd='sudo apt update'
  alias apt-upg='sudo apt upgrade'
  alias apt-ins='sudo apt install'
fi

入れてみて

updateに関しては違いは感じられない。upgradeに関しては同じ条件で測定していないので確かなことは言えないが,体感では速くなった気がする。

カラーで表示してくれるので「pacmanとかyaourtとかいいなぁ」と思ってる勢にとっては少し嬉しい感じ。 (Arch使えばいいやんというのは今はなし)