How To Install jzlib.noarch on Amazon Linux 2

In this tutorial we learn how to install jzlib.noarch in Amazon Linux 2. jzlib.noarch is Re-implementation of zlib in pure Java

Introduction

In this tutorial we learn how to install jzlib.noarch on Amazon Linux 2.

What is jzlib.noarch

The zlib is designed to be a free, general-purpose, legally unencumbered – that is, not covered by any patents – loss-less data-compression library for use on virtually any computer hardware and operating system. The zlib was written by Jean-loup Gailly (compression) and Mark Adler (decompression).

We can use yum to install jzlib.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install jzlib.noarch.

Install jzlib.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 jzlib.noarch using yum by running the following command:

sudo yum -y install jzlib.noarch

How To Uninstall jzlib.noarch on Amazon Linux 2

To uninstall only the jzlib.noarch package we can use the following command:

sudo yum remove jzlib.noarch

jzlib.noarch Package Contents on Amazon Linux 2

/usr/share/doc/jzlib-1.1.1
/usr/share/doc/jzlib-1.1.1/LICENSE.txt
/usr/share/java/jzlib.jar
/usr/share/maven-effective-poms/JPP-jzlib.pom
/usr/share/maven-fragments/jzlib.xml
/usr/share/maven-poms/JPP-jzlib.pom

References

Summary

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