[‘
In this editorial, we take a look at a great and powerful utility called apt-fast
that you can use to speed up downloading packages by APT or Aptitude.
n
apt-fast is an open-source shell script wrapper for the popular APT and Aptitude package managing tools that helps to speed the downloading of packages on Debian systems.
n
It’s main function is to remarkably speed up the downloading of packages by apt-get or aptitude by downloading packages in parallel, with numerous connections per package.
n
Read some of the following articles, that discusses about APT and Aptitude along with their usage with examples:
n
- n
- What’s Difference Between APT and Aptitude
- 25 Useful Commands of apt-get for Package Management
- 15 Useful APT Commands for Package Management
- Learn Package Management with Aptitude in Ubuntu
n
n
n
n
n
Requirement for running apt-fast utility, is to have aria2c or axel download managers.
n
- n
- How to Install Aria2 Command-Line Download Manager
- How to Install Axel to Speed Up FTP/HTTP Downloads
n
n
n
How to Install apt-fast on Ubuntu 16.04-14.04 and Linux Mint 18/17.x
n
Firstly add the the PPA for apt-fast package as follows and then update your system.
n
$ sudo add-apt-repository ppa:saiarcot895/mypparn$ sudo apt-get updatern
n
Thereafter, run the command below to install apt-fast tool:
n
$ sudo apt-get -y install apt-fastrn
n
During the apt-fast installation process, you will be prompted to perform some package configuration as follows.
n
In the screen below, you can set the number of connections allowed, remember, you can also configure it later in the apt-fast configuration file using the _MAXNUM
directive.
n

n
Next, you can also choose to suppress the apt-fast confirmation message every time you want to install a package. But leaving the default value is okay, therefore, choose <No>
and hit Enter to advance.
n

n
How to Use apt-fast?
n
After successfully installing apt-fast, simply use it the same way you run apt
or aptitude
commands.
n
The apt-fast configuration file is: /etc/apt-fast.conf
, you can further increase your download speeds by adding multiple mirrors and distribute load, make sure to add nearest mirrors.
n
Official mirror lists for Debian and Ubuntu/Linux Mint:
n
- n
- Debian: http://www.debian.org/mirror/list
- Ubuntu: https://launchpad.net/ubuntu/+archivemirrors
n
n
n
You can add them to whitespace and comma separated mirrors in the configuration file as follows:
n
For Debian
n
MIRRORS=( 'http://ftp.debian.org/debian, http://ftp2.de.debian.org/debian, http://ftp.de.debian.org/debian, ftp://ftp.uni-kl.de/debian' )rn
n
For Ubuntu/Linux Mint
n
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/' )rn
n
Important: To use mirrors in /etc/apt/sources.list or /etc/apt/sources.list.d/, you also need to add them to /etc/apt-fast.conf as well.
n
$ sudo vi /etc/apt-fast.confrn
n

n
You also view the man page for apt-fast and apt-fast.conf as follows:
n
$ man apt-fastrn$ man apt-fast.confrn
n
Let us dive into how apt-fast works by installing git
package as follows:
n
$ sudo apt-fast install gitrn
n
You will be asked to confirm whether to download package or not, enter Yes/Y
to continue. The image below shows apt-fast working – downloading git
package using several connections.
n

n
After downloading the git
package, you will again be asked to install it by entering Yes/Y
and press Enter to proceed with the installation process.
n
Some important apt-fast commands:
n
$ sudo apt-fast updatern$ sudo apt-fast upgrade rnORrn$ sudo apt-fast dist-updatern
n
In case a downloading process stops or breaks, run the command below:
n
$ sudo apt-fast clean rn
n
For more information, visit the apt-fast Github repository.
n
Conclusion
n
Here, we reviewed a powerful shell-script front-end for apt and aptitude that helps you to boost download speeds while installing packages on your Debian-based systems such as Ubuntu, Linux Mint and many more.
n
What is you experience with apt-fast? Do you think it works well for you? Then give us your thoughts plus any other questions you would like to ask, via the feedback form below.
n
‘]