How To Install libslz on AlmaLinux 8

In this tutorial we learn how to install libslz in AlmaLinux 8. libslz is StateLess Zip

Introduction

In this tutorial we learn how to install libslz on AlmaLinux 8.

What is libslz

SLZ is a fast and memory-less stream compressor which produces an output that can be decompressed with zlib or gzip. It does not implement decompression at all, zlib is perfectly fine for this. The purpose is to use SLZ in situations where a zlib-compatible stream is needed and zlib’s resource usage would be too high while the compression ratio is not critical. The typical use case is in HTTP servers and gateways which have to compress many streams in parallel with little CPU resources to assign to this task, and without having to limit the compression ratio due to the memory usage. In such an environment, the server’s memory usage can easily be divided by 10 and the CPU usage by 3.

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

Install libslz on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install libslz

Install libslz on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libslz

How To Uninstall libslz on AlmaLinux 8

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

sudo dnf remove libslz

References

Summary

In this tutorial we learn how to install libslz on AlmaLinux 8 using yum and dnf.