How To Install libslz on CentOS 7

In this tutorial we learn how to install libslz on CentOS 7. libslz is StateLess Zip

Introduction

In this tutorial we learn how to install libslz on CentOS 7.

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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libslz.

Install libslz on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libslz

Install libslz on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install libslz

How To Uninstall libslz on CentOS 7

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 CentOS 7 using yum and dnf.