How To Install zsync on Debian 11

In this tutorial we learn how to install zsync on Debian 11. zsync is client-side implementation of the rsync algorithm

Introduction

In this tutorial we learn how to install zsync on Debian 11.

What is zsync

zsync is:

zsync is a file transfer program to download files from remote web servers. If a previous version of a file is available locally, zsync will only download changed parts and hereby minimise the download volume. The algorithm is the same as used by rsync(1), but zsync does not require any server software (apart from a web server), nor does it need shell access. Instead, it uses a control file (.zsync file) that describes the file to be downloaded, which it uses to determine the blocks to fetch. This file is created once on the server (and not for each request) and sits next to actual file to download

There are three methods to install zsync on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install zsync Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install zsync using apt-get by running the following command:

sudo apt-get -y install zsync

Install zsync Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install zsync using apt by running the following command:

sudo apt -y install zsync

Install zsync Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install zsync using aptitude by running the following command:

sudo aptitude -y install zsync

How To Uninstall zsync on Debian 11

To uninstall only the zsync package we can use the following command:

sudo apt-get remove zsync

Uninstall zsync And Its Dependencies

To uninstall zsync and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove zsync

Remove zsync Configurations and Data

To remove zsync configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge zsync

Remove zsync configuration, data, and all of its dependencies

We can use the following command to remove zsync configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge zsync

Dependencies

zsync have the following dependencies:

References

Summary

In this tutorial we learn how to install zsync package on Debian 11 using different package management tools: apt, apt-get and aptitude.