How To Install stax-ex on CentOS 7

In this tutorial we learn how to install stax-ex on CentOS 7. stax-ex is StAX API extensions

Introduction

In this tutorial we learn how to install stax-ex on CentOS 7.

What is stax-ex

This project develops a few extensions to complement JSR-173 StAX API in the following area. * Enable parser instance reuse (which is important in the high-performance environment like JAXB and JAX-WS) * Improve the support for reading from non-text XML infoset, such as FastInfoset. * Improve the namespace support.

We can use yum or dnf to install stax-ex on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install stax-ex.

Install stax-ex on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install stax-ex

Install stax-ex on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install stax-ex

How To Uninstall stax-ex on CentOS 7

To uninstall only the stax-ex package we can use the following command:

sudo dnf remove stax-ex

References

Summary

In this tutorial we learn how to install stax-ex on CentOS 7 using yum and dnf.