How To Install miniz on Fedora 34

miniz is Compression library implementing the zlib and Deflate Compression library implementing the zlib and Deflate

Introduction

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

What is miniz

Miniz is a lossless, high performance data compression library in a single source file that implements the zlib (RFC 1950) and Deflate (RFC 1951) compressed data format specification standards. It supports the most commonly used functions exported by the zlib library, but is a completely independent implementation so zlib’s licensing requirements do not apply. It also contains simple to use functions for writing PNG format image files and reading/writing/appending ZIP format archives. Miniz’s compression speed has been tuned to be comparable to zlib’s, and it also has a specialized real-time compressor function designed to compare well against fastlz/minilzo. miniz 2.1.0 7.fc34 x86_64 63 k miniz-2.1.0-7.fc34.src.rpm fedora Compression library implementing the zlib and Deflate https MIT and Unlicense Miniz is a lossless, high performance data compression library in a single source file that implements the zlib (RFC 1950) and Deflate (RFC 1951) compressed data format specification standards. It supports the most commonly used functions exported by the zlib library, but is a completely independent implementation so zlib’s licensing requirements do not apply. It also contains simple to use functions for writing PNG format image files and reading/writing/appending ZIP format archives. Miniz’s compression speed has been tuned to be comparable to zlib’s, and it also has a specialized real-time compressor function designed to compare well against fastlz/minilzo.

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

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

sudo dnf -y install miniz

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

sudo yum -y install miniz

How To Uninstall miniz on Fedora 34

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

sudo dnf remove miniz

miniz Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/96764e2752c2c40681929a49d65c9f8b4f4ea8
/usr/lib/libminiz.so.0.2
/usr/share/doc/miniz
/usr/share/doc/miniz/ChangeLog.md
/usr/share/doc/miniz/readme.md
/usr/share/licenses/miniz
/usr/share/licenses/miniz/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/73abe542a5c99c2c9c7ac089c5a5c5f80cba89
/usr/lib64/libminiz.so.0.2
/usr/share/doc/miniz
/usr/share/doc/miniz/ChangeLog.md
/usr/share/doc/miniz/readme.md
/usr/share/licenses/miniz
/usr/share/licenses/miniz/LICENSE

References

Summary

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