Apt-Fast is a small shell script wrapper that can drastically improve
apt-get & aptitude download speed using multi threaded tool such as
aria2 which is simultaneously download packages with multiple connections per package (from different sources).
This will be suitable for bigger download and OS upgrade. I have tested this and realized 2-3 times fast compare with normal apt-get. You can also give a try and update your feedback, make sure this purely depends upon your Internet connection.
In order to use Apt-Fast, we have to install either
aria2 multi-protocol & multi-source command-line download utility.
$ sudo apt-get install curl git $ sudo apt-get install aria2 or $ sudo apt-get install axel
Navigate to following links to know more about an utility.
Install Apt-Fast in Debian based system
There is no official package for Debian system but one good thing, developer offering a shell script to install Apt-Fast quickly.
$ sudo /bin/bash -c "$(curl -sL https://git.io/vokNn)"
Use the following PPA to install Apt-Fast on Ubuntu 14.04 and later versions.
$ sudo add-apt-repository ppa:saiarcot895/myppa $ sudo apt-get update $ sudo apt-get -y install apt-fast
After installation, open
/etc/apt-fast.conf file and add following mirrors based on your distribution.
Also navigate to following distribution official mirror page and get nearest mirrors based on your geographical location and add it.
Add a mirrors using the below format with space and comma to separate it.
$ sudo nano /etc/apt-fast.conf [For Ubuntu/Linux Mint] MIRRORS=( 'http://archive.ubuntu.com/ubuntu, http://de.archive.ubuntu.com/ubuntu, http://ftp.halifax.rwth-aachen.de/ubuntu, http://ftp.uni-kl.de/pub/linux/ubuntu, http://mirror.informatik.uni- mannheim.de/pub/linux/distributions/ubuntu/' ) [For Debian] MIRRORS=( 'http://ftp.debian.org/debian, http://ftp2.de.debian.org/debian, http://ftp.de.debian.org/debian, ftp://ftp.uni-kl.de/debian' )
Note : Make sure you have to add all the mirrors which was present in
How to use Apt-Fast ?
We have successfully installed and configured Apt-Fast. Now, its time to use Apt-Fast. Apt-Fast is similar to Apt-Get, so use FAST instead of GET followed by Apt and rest of the things are same.
[Syntax for Apt-Fast] $ apt-fast [options] [arguments] [Install Package using Apt-Fast] $ apt-fast install package-1 package-2
For demonstration purpose, we are going to install
MariDB package with help of Apt-Fast command to check either it’s improving the package download speed or not?
$ sudo apt-fast install mariadb-server
Use the following frequent/routine commands on your system to boost package download speeds.
$ sudo apt-fast update $ sudo apt-fast upgrade $ sudo apt-fast dist-update