Zsync – File transfer utility to download only new parts of a file

Zsync is a file transfer utility that allows you to download only new parts of a file, given that the file provider has a .zsync file on the server.


Technology has sure been progressing at a faster pace, and the internet is cheaper than ever. However, there is no fun in wasting the bandwidth and your valuable time on downloading the same file over and over again. Unfortunately, the updated versions of a file with minor changes still force us to do exactly that.

Zsync File Transfer Utility

To get over this situation, we recommend Zsync. It is a file transfer utility that allows you to download only new parts of a file, given that the file provider has a .zsync file on the server. Thankfully, several distribution maintainers are starting to use this format, making it a much easier way to keep your ISO images to the latest version without downloading them every time they have been updated with minor updates.

How it works

Zsync works on a simple CLI command, and what it basically does is compare the file that you maintain, to the URL that you provided. If there are any additional parts of the file, Zsync will download those parts for you. If not, it will download the whole file.

It uses the URL as a central server to which the computers of the downloaders are compared. Any difference will be updated. It works like a massive network of shared directories.

Zsync installation on Ubuntu, Linux Mint, Arch Linux, Fedora


Zsync is available in most distributions’ official repositories, so you can just install Zsync from the command line.

For Ubuntu/Linux Mint (or any derivatives):

sudo apt-get install zsync

For Arch and derivatives:

sudo pacman -S zsync

For Fedora, you have to enable the repository first:

sudo dnf copr enable ngompa/zsync

and install:

sudo dnf install zsync

If none of these work, you can download and install the source code. For that, enter these sequence of commands. You can obtain the latest download link from the Zync website.

wget http://zsync.moria.org.uk/download/zsync-0.6.2.tar.bz2
tar xjf zsync*
cd zsync-0.6.2/
sudo make install

And that’s all you need to do for the installation.

Sample output on Linux Mint

Zsync installation.
Zsync installation in Linux MInt.


New parts of an existing file

The usage is fairly simple. The things that you need are :

  • The URL of the zsync file to be downloaded.
  • An older version of the same file (if you have it).

In this example, I will be downloading Ubuntu. I already have the ISO file of Ubuntu 18.04-2, and I will update it with the daily build. This is the URL to find Ubuntu’s daily builds.

Ubuntu Daily Build
Ubuntu’s .zsync file is present in the downloads.

The filename of the already existing file has to be added with the -i attribute. So the syntax for that is:

zsync -i ubuntu-18.04.2-desktop-amd64.iso http://cdimage.ubuntu.com/ubuntu/daily-live/20190222/disco-desktop-amd64.iso.zsync

Zsync updating.
Zsync downloading new parts of the same ISO.

Here, it’s visible that after comparing the files, it is downloading the rest of the file from the given URL!

If the file doesn’t exist…

If the older version is not present, and you only put in the URL of the .zsync file, it will additionally download the whole original file. So in this case, it will download the original ISO file of Ubuntu too.

Ubuntu download
Zsync downloads the whole file in case its older version is not present.


Zsync is an excellent file transfer utility that can save a lot of your time and bandwidth. Even though not supported by a lot of distributions, it’s still spreading quite fast. So next time before downloading a distribution’s new version, make sure to check if it has a .zsync download.

That’s all for today. Cheers!

Pulkit Chandak
Pulkit Chandak is a Linux enthusiast and has been using and experimenting with open source software and hardware too since a long time. He is a huge admirer of open source software and wants to ventilate it to all around him. He is interested in reviewing and writing tutorials on Linux and its many distributions. He believes that freedom in software leads to freedom of the mind from the chains of limits.


Please enter your comment!
Please enter your name here




Top 20 Git Commands with Practical Examples

If you are here reading this post, there is a high probability that you have heard or interacted with Github, and you now want to learn Git. Before we continue with showing you some of the cool Git commands, let's understand the difference between Git and GitHub.

Top 10 New Features in Linux Kernel 5.7

Linus Torvalds has announced the release of Linux Kernel 5.7 after seven weeks of development. The release announcement comes as a piece of exciting news as it brings a host of new features for the hardware manufacturers as well as the developers.

How to install CMake on Ubuntu

CMake is a cross-platform free and open-source software tool designed to build, test, and package the software. CMake uses a simple platform and compiler-independent configuration files to control the software compilation process.

How to install Lightworks on Ubuntu

Even though Linux may not get a native installer of video editing software like Adobe Premiere or Final Cut Pro, that doesn't mean there are no industry standards tools available. Lightworks is non-linear editing (NLE) video mastering app for Windows, Linux, and macOS. Installing it on Ubuntu is simple due to deb package availability.

How to install DaVinci Resolve on Fedora

Davinci Resolve is a professional application used for color correction, video editing, visual effects, and motion graphics. It is one of the extensively used software by movie industries located in Hollywood.

The 10 Best Programming Languages for Hacking

One of the significant entities we have in Cyber Security is Ethical Hacking (ETH). It is the process of detecting and finding flaws or vulnerabilities in a system that a hacker would exploit.


Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

13 ways to use the copy command in Linux (with examples)

Being a Linux user, copying files and directories is one of the everyday tasks that you have to carry out. It can be copying a file to make a backup or copy it to another partition, directory, or external storage drive.

Installing multiple Linux distros on a USB drive

A bootable Linux USB drive, which also referred to as a Live USB drive, is a drive containing files that enable a computer to boot into a specific Linux distro. It is most commonly used to test-drive various Linux distros before installing on the computer for use as a daily driver.

10 top reasons to switch to Manjaro Linux

Manjaro is Linux distro based on Arch-Linux which follows a rolling release model. Is this distro good for you? Let's find out the main reasons for using Manjaro.

What is the difference between Linux and Unix?

When discussing Linux and Unix with average users, it's not uncommon that they will sometimes mistakenly interchange the terms Linux and Unix.  The two are not the same.  Though they share similarities in their overall structures and toolkits, they are decidedly not the same.