How To Install lz4-java on Rocky Linux 8
Introduction
In this tutorial we learn how to install lz4-java
on Rocky Linux 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 Rocky Linux 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 Rocky Linux 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 Rocky Linux 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 Rocky Linux 8
To uninstall only the lz4-java
package we can use the following command:
sudo dnf remove lz4-java
lz4-java Package Contents on Rocky Linux 8
/usr/lib/java/lz4-java
/usr/lib/java/lz4-java/lz4-java.jar
/usr/share/doc/lz4-java
/usr/share/doc/lz4-java/CHANGES.md
/usr/share/doc/lz4-java/README.md
/usr/share/maven-metadata/lz4-java.xml
/usr/share/maven-poms/lz4-java
/usr/share/maven-poms/lz4-java/lz4-java.pom
References
Summary
In this tutorial we learn how to install lz4-java
on Rocky Linux 8 using yum and dnf.