How To Install zstd on Fedora 34

zstd is Zstd compression library

Introduction

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

What is zstd

Zstd, short for Zstandard, is a fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level compression ratio.

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

Install zstd 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 zstd using dnf by running the following command:

sudo dnf -y install zstd

Install zstd 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 zstd using yum by running the following command:

sudo yum -y install zstd

How To Uninstall zstd on Fedora 34

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

sudo dnf remove zstd

zstd Package Contents on Fedora 34

/usr/bin/pzstd
/usr/bin/unzstd
/usr/bin/zstd
/usr/bin/zstdcat
/usr/bin/zstdgrep
/usr/bin/zstdless
/usr/bin/zstdmt
/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/3104b833cd3b0b6092ef6abc31557f51263b1d
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/aff5bdc4bcefdd24881d60ab6a6a89f5872627
/usr/share/doc/zstd
/usr/share/doc/zstd/CHANGELOG
/usr/share/doc/zstd/README.md
/usr/share/licenses/zstd
/usr/share/licenses/zstd/COPYING
/usr/share/licenses/zstd/LICENSE
/usr/share/man/man1/pzstd.1.gz
/usr/share/man/man1/unzstd.1.gz
/usr/share/man/man1/zstd.1.gz
/usr/share/man/man1/zstdcat.1.gz
/usr/share/man/man1/zstdgrep.1.gz
/usr/share/man/man1/zstdless.1.gz
/usr/bin/pzstd
/usr/bin/unzstd
/usr/bin/zstd
/usr/bin/zstdcat
/usr/bin/zstdgrep
/usr/bin/zstdless
/usr/bin/zstdmt
/usr/lib/.build-id
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/caa311a54435aabdaf744f69ae434a52b51f42
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/ef28b57985b461cb9953f5e9e16b8cb467dc1a
/usr/share/doc/zstd
/usr/share/doc/zstd/CHANGELOG
/usr/share/doc/zstd/README.md
/usr/share/licenses/zstd
/usr/share/licenses/zstd/COPYING
/usr/share/licenses/zstd/LICENSE
/usr/share/man/man1/pzstd.1.gz
/usr/share/man/man1/unzstd.1.gz
/usr/share/man/man1/zstd.1.gz
/usr/share/man/man1/zstdcat.1.gz
/usr/share/man/man1/zstdgrep.1.gz
/usr/share/man/man1/zstdless.1.gz

References

Summary

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