How To Install xz-java on Fedora 36

In this tutorial we learn how to install xz-java in Fedora 36. xz-java is Java implementation of XZ data compression

Introduction

In this tutorial we learn how to install xz-java on Fedora 36.

What is xz-java

A complete implementation of XZ data compression in Java. It features full support for the .xz file format specification version 1.0.4, single-threaded streamed compression and decompression, single-threaded decompression with limited random access support, raw streams (no .xz headers) for advanced users, including LZMA2 with preset dictionary.

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

Install xz-java on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install xz-java

Install xz-java on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install xz-java using yum by running the following command:

sudo yum -y install xz-java

How To Uninstall xz-java on Fedora 36

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

sudo dnf remove xz-java

xz-java Package Contents on Fedora 36

/usr/share/doc/xz-java
/usr/share/doc/xz-java/README
/usr/share/doc/xz-java/THANKS
/usr/share/java/xz-java.jar
/usr/share/java/xz.jar
/usr/share/licenses/xz-java
/usr/share/licenses/xz-java/COPYING
/usr/share/maven-metadata/xz-java.xml
/usr/share/maven-poms/xz-java.pom
/usr/share/maven-poms/xz.pom

References

Summary

In this tutorial we learn how to install xz-java on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).