What Is apt-fast And Why Should You Use It?

What Is apt-fast And Why Should You Use It?


This post was last updated on January 2nd, 2020 at 03:46 pm

What is apt-fast?

apt-fast is a shell script wrapper for apt-get and aptitude that can drastically improve the downloading speed of a package in the Debian based systems. It downloads packages in parallel with multiple connections per package. apt-fast utility uses aria2 or axel download accelerator to download different parts of a package simultaneously. Sometimes a package takes more than expected downloading time even when your internet is working fine In this case apt-fast can be very useful.

How to install it?

In Ubuntu/LinuxMint-
The apt-fast package can be installed in Ubuntu/LinuxMint by adding its PPA in your software repository. Execute the following commands to add the PPA in the software repository and install the package in your system.
sudo add-apt-repository ppa:apt-fast/stable
sudo apt-get update
sudo apt-get install apt-fast

Adding PPA manually and then installing apt-fast-
Some Linux distributions like PCLinuxOS include apt-fast in their repository. However, if you are using Debian, Kali Linux or such other similar distro. You will have to add it manually by creating a new file inside the /etc/apt/source.list.d/ with the name apt-fast.list and add the following lines inside this empty file and then save it.

deb http://ppa.launchpad.net/apt-fast/stable/ubuntu bionic main
deb-src http://ppa.launchpad.net/apt-fast/stable/ubuntu bionic main

Now execute the following commands to update and install the apt-fast package-

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A2166B8DE8BDC3367D1901C11EE2FF37CA8DA16B
sudo apt-get update
sudo apt-get install apt-fast

During the installation process, it will prompt you for some package configuration look at the screen below-

First, It will ask you to choose among the apt-get, apt and aptitude. You can choose any one of them but I will keep it to apt-get and finally press enter to proceed to the next screen. Now, look at the next screen which asks to enter the maximum number of connections.

As discussed above in this article apt-fast utility downloads a package in parallel with multiple connections per package. Now here you need to enter the max number of connections. Let it be to 5, press enter to proceed.

In the above screen, you can choose <Yes> to suppress the apt-fast confirmation dialog but we will choose <No> so that we will get a confirmation before downloading a package. At last press the enter to proceed with further installation process. The configuration file of apt-fast package is located at /etc/apt-fast.conf later you can make changes to it if needed.

How to use it?

Usage of apt-fast is similar to apt-get. Commands and options used in apt-fast are also similar to the commands and options that are used with the apt-get. Look at the screen below a package named vlc can be installed by using the following command –

apt-fast install vlc

It will prompt you for confirmation once you type Y and press enter downloading of the package will be started.

Some important and mostly used apt-fast commands are-

apt-fast install package_name
apt-fast upgrade
apt-fast dist-upgrade
apt-fast full-upgrade
apt-fast clean

To know more about the apt-fast commands and the options that can be used while downloading a package, you should visit the manual page of apt-fast. Use the following command to view manual page-

man apt-fast

You can also visit the apt-fast GitHub repository to get more information about it. Now if you want to say something on the topic, or you have a query regarding it please write us in the comments below.

Previous How To Use Firewall For Enhancing Network Security In Linux/Unix?
Next How To Use Nmap For Scanning A Port?

About author

You might also like

Uncategorized 0 Comments

How To Create A Shared Directory Between Host And Guest In KVM?

KVM or kernel-based virtual machine is a virtualization module of Linux kernel. It requires hardware with virtualization extensions such as Intel-VT or AMD-V to provide hardware-assisted virtualization. By using VirtIO

Uncategorized 0 Comments

Concepts Of Standard I/O, Pipe And Filters In Linux/Unix

Contents1 Standard streams1.1 Input redirection – 1.2 Output redirection – 1.3 Append the output to an existing file-2 Pipe And Filters2.1 grep command-2.2 sort command-2.3 awk command- Standard streams In

Uncategorized 0 Comments

How To Manage KVM Virtual Machines From The Host Terminal?

Virtualization means creating virtual instances of resources such as storage devices, network resources, etc. Kernel-based virtual machine or KVM is a virtualization module in the Linux Kernel which turns the


No Comments Yet!

You can be first to comment this post!

Leave a Reply