How To Install zchunk on Fedora 34

zchunk is Compressed file format that allows easy deltas

Introduction

In this tutorial we learn how to install zchunk on Fedora 34.

What is zchunk

zchunk is a compressed file format that splits the file into independent chunks. This allows you to only download the differences when downloading a new version of the file, and also makes zchunk files efficient over rsync. zchunk files are protected with strong checksums to verify that the file you downloaded is in fact the file you wanted.

We can use yum or dnf to install zchunk on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install zchunk.

Install zchunk on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install zchunk using dnf by running the following command:

sudo dnf -y install zchunk

Install zchunk on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install zchunk using yum by running the following command:

sudo yum -y install zchunk

How To Uninstall zchunk on Fedora 34

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

sudo dnf remove zchunk

zchunk Package Contents on Fedora 34

/usr/bin/unzck
/usr/bin/zck
/usr/bin/zck_delta_size
/usr/bin/zck_gen_zdict
/usr/bin/zck_read_header
/usr/bin/zckdl
/usr/lib/.build-id
/usr/lib/.build-id/26
/usr/lib/.build-id/26/4fd0bf6e023433dfdd62b8d7c740c40213ddc0
/usr/lib/.build-id/92
/usr/lib/.build-id/92/f799ee083aaed4a8c1a3b00c926c21de9ae74d
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/593c5f24f4ee94691559d0f6f58a2c1d4ec4be
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/0d83772c3358f1432392ec7112f18df368f61a
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/ed1e4f019439fe0980158382a6a7331e1c83bf
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/62e31879ced6ff9c4f5fa5cc233987da507753
/usr/libexec/zck_gen_xml_dictionary
/usr/share/doc/zchunk
/usr/share/doc/zchunk/README.md
/usr/share/doc/zchunk/contrib
/usr/share/doc/zchunk/contrib/gen_xml_dictionary
/usr/share/man/man1/unzck.1.gz
/usr/share/man/man1/zck.1.gz
/usr/share/man/man1/zck_delta_size.1.gz
/usr/share/man/man1/zck_gen_zdict.1.gz
/usr/share/man/man1/zck_read_header.1.gz
/usr/share/man/man1/zckdl.1.gz
/usr/bin/unzck
/usr/bin/zck
/usr/bin/zck_delta_size
/usr/bin/zck_gen_zdict
/usr/bin/zck_read_header
/usr/bin/zckdl
/usr/lib/.build-id
/usr/lib/.build-id/4e
/usr/lib/.build-id/4e/faaa697dba742b2177fcbdf48bc6d2fc44e59b
/usr/lib/.build-id/99
/usr/lib/.build-id/99/542da0200ebb1150f6412d04fdebe5c9fc6dbc
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/a28093bbb94c989a07536bdfbe64b0378e95c9
/usr/lib/.build-id/a1/bd87ece133d3a5bb79757fb295574c8abd95ac
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/713fbd398511d093b0bf201a525283ccd0deda
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/463643d67898ed22d092cc4330b982ef66fd8b
/usr/libexec/zck_gen_xml_dictionary
/usr/share/doc/zchunk
/usr/share/doc/zchunk/README.md
/usr/share/doc/zchunk/contrib
/usr/share/doc/zchunk/contrib/gen_xml_dictionary
/usr/share/man/man1/unzck.1.gz
/usr/share/man/man1/zck.1.gz
/usr/share/man/man1/zck_delta_size.1.gz
/usr/share/man/man1/zck_gen_zdict.1.gz
/usr/share/man/man1/zck_read_header.1.gz
/usr/share/man/man1/zckdl.1.gz

References

Summary

In this tutorial we learn how to install zchunk on Fedora 34 using yum and dnf.