How To Install stax2-api.noarch on Amazon Linux 2

In this tutorial we learn how to install stax2-api.noarch in Amazon Linux 2. stax2-api.noarch is Experimental API extending basic StAX implementation

Introduction

In this tutorial we learn how to install stax2-api.noarch on Amazon Linux 2.

What is stax2-api.noarch

StAX2 is an experimental API that is intended to extend basic StAX specifications in a way that allows implementations to experiment with features before they end up in the actual StAX specification (if they do). As such, it is intended to be freely implementable by all StAX implementations same way as StAX, but without going through a formal JCP process.

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

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

sudo yum -y install stax2-api.noarch

How To Uninstall stax2-api.noarch on Amazon Linux 2

To uninstall only the stax2-api.noarch package we can use the following command:

sudo yum remove stax2-api.noarch

stax2-api.noarch Package Contents on Amazon Linux 2

/usr/share/java/stax2-api.jar
/usr/share/maven-effective-poms/JPP-stax2-api.pom
/usr/share/maven-fragments/stax2-api.xml
/usr/share/maven-poms/JPP-stax2-api.pom

References

Summary

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