How To Install zopfli on Fedora 34

zopfli is Zlib compatible better compressor Zlib compatible better compressor

Introduction

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

What is zopfli

Zopfli is a compression algorithm bit-stream compatible with compression used in gzip, Zip, PNG, HTTP requests, and others. Zopfli compresses more (~5%) but is slower (~100x) and uses more CPU, and is hence best suited for applications where data is compressed once and sent over a network many times, for example, static content for the web. zopfli 1.0.3 4.fc34 x86_64 136 k zopfli-1.0.3-4.fc34.src.rpm fedora Zlib compatible better compressor https ASL 2.0 Zopfli is a compression algorithm bit-stream compatible with compression used in gzip, Zip, PNG, HTTP requests, and others. Zopfli compresses more (~5%) but is slower (~100x) and uses more CPU, and is hence best suited for applications where data is compressed once and sent over a network many times, for example, static content for the web.

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

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

sudo dnf -y install zopfli

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

sudo yum -y install zopfli

How To Uninstall zopfli on Fedora 34

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

sudo dnf remove zopfli

zopfli Package Contents on Fedora 34

/usr/bin/zopfli
/usr/bin/zopflipng
/usr/lib/.build-id
/usr/lib/.build-id/25
/usr/lib/.build-id/25/76dfa6e6f4ec110d8f547f954c5a8bd6302770
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/f1f164b6def72eb70c06ffd3430b887bfd719b
/usr/lib/.build-id/92
/usr/lib/.build-id/92/2b53bf5e8b7ecc557c5c5d627db24d6b8baeac
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/6da0526ce8214e5a283ca766bea72ec46bff0c
/usr/lib64/libzopfli.so.1
/usr/lib64/libzopfli.so.1.0.3
/usr/lib64/libzopflipng.so.1
/usr/lib64/libzopflipng.so.1.0.3
/usr/share/doc/zopfli
/usr/share/doc/zopfli/CONTRIBUTORS
/usr/share/doc/zopfli/README
/usr/share/doc/zopfli/README.zopflipng
/usr/share/licenses/zopfli
/usr/share/licenses/zopfli/COPYING
/usr/bin/zopfli
/usr/bin/zopflipng
/usr/lib/.build-id
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/3f0c6bc06cd941c91970d66b98df50622d7833
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/0ed80c5941f7e4406b445b8b89c2997b15160f
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/7325470a106d0678813cddd50f7d2783695fd5
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/37603bdc64ec08acb68060692c1ebd3b8a1880
/usr/lib/libzopfli.so.1
/usr/lib/libzopfli.so.1.0.3
/usr/lib/libzopflipng.so.1
/usr/lib/libzopflipng.so.1.0.3
/usr/share/doc/zopfli
/usr/share/doc/zopfli/CONTRIBUTORS
/usr/share/doc/zopfli/README
/usr/share/doc/zopfli/README.zopflipng
/usr/share/licenses/zopfli
/usr/share/licenses/zopfli/COPYING
/usr/bin/zopfli-rs
/usr/lib/.build-id
/usr/lib/.build-id/16
/usr/lib/.build-id/16/7d297894829febc267b0097ea4bac2ac95fb26
/usr/share/doc/zopfli
/usr/share/doc/zopfli/README.md
/usr/share/licenses/zopfli
/usr/share/licenses/zopfli/COPYING

References

Summary

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