How To Install xz-java.noarch on Amazon Linux 2

In this tutorial we learn how to install xz-java.noarch in Amazon Linux 2. xz-java.noarch is Java implementation of XZ data compression

Introduction

In this tutorial we learn how to install xz-java.noarch on Amazon Linux 2.

What is xz-java.noarch

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 to install xz-java.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install xz-java.noarch.

Install xz-java.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install xz-java.noarch

How To Uninstall xz-java.noarch on Amazon Linux 2

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

sudo yum remove xz-java.noarch

xz-java.noarch Package Contents on Amazon Linux 2

/usr/share/doc/xz-java-1.3
/usr/share/doc/xz-java-1.3/COPYING
/usr/share/doc/xz-java-1.3/README
/usr/share/doc/xz-java-1.3/THANKS
/usr/share/java/xz-java.jar
/usr/share/java/xz.jar
/usr/share/maven-fragments/xz-java
/usr/share/maven-poms/JPP-xz-java.pom

References

Summary

In this tutorial we learn how to install xz-java.noarch on Amazon Linux 2 using yum.