How To Install lz4-java on AlmaLinux 8

In this tutorial we learn how to install lz4-java in AlmaLinux 8. lz4-java is LZ4 compression for Java

Introduction

In this tutorial we learn how to install lz4-java on AlmaLinux 8.

What is lz4-java

LZ4 compression for Java, based on Yann Collet’s work. This library provides access to two compression methods that both generate a valid LZ4 stream * fast scan (LZ4) ° low memory footprint (~ 16 KB), ° very fast (fast scan with skipping heuristics in case the input looks incompressible), ° reasonable compression ratio (depending on the redundancy of the input). * high compression (LZ4 HC) ° medium memory footprint (~ 256 KB), ° rather slow (~ 10 times slower than LZ4), ° good compression ratio (depending on the size and the redundancy of the input). The streams produced by those 2 compression algorithms use the same compression format, are very fast to decompress and can be decompressed by the same decompressor instance.

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

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

sudo dnf -y install lz4-java

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

sudo yum -y install lz4-java

How To Uninstall lz4-java on AlmaLinux 8

To uninstall only the lz4-java package we can use the following command:

sudo dnf remove lz4-java

References

Summary

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