How To Install xerces-j2.noarch on Amazon Linux 2

In this tutorial we learn how to install xerces-j2.noarch in Amazon Linux 2. xerces-j2.noarch is Java XML parser

Introduction

In this tutorial we learn how to install xerces-j2.noarch on Amazon Linux 2.

What is xerces-j2.noarch

Welcome to the future! Xerces2 is the next generation of high performance, fully compliant XML parsers in the Apache Xerces family. This new version of Xerces introduces the Xerces Native Interface (XNI), a complete framework for building parser components and configurations that is extremely modular and easy to program. The Apache Xerces2 parser is the reference implementation of XNI but other parser components, configurations, and parsers can be written using the Xerces Native Interface. For complete design and implementation documents, refer to the XNI Manual. Xerces2 is a fully conforming XML Schema processor. For more information, refer to the XML Schema page. Xerces2 also provides a complete implementation of the Document Object Model Level 3 Core and Load/Save W3C Recommendations and provides a complete implementation of the XML Inclusions (XInclude) W3C Recommendation. It also provides support for OASIS XML Catalogs v1.1. Xerces2 is able to parse documents written according to the XML 1.1 Recommendation, except that it does not yet provide an option to enable normalization checking as described in section 2.13 of this specification. It also handles name spaces according to the XML Namespaces 1.1 Recommendation, and will correctly serialize XML 1.1 documents if the DOM level 3 load/save APIs are in use.

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

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

sudo yum -y install xerces-j2.noarch

How To Uninstall xerces-j2.noarch on Amazon Linux 2

To uninstall only the xerces-j2.noarch package we can use the following command:

sudo yum remove xerces-j2.noarch

xerces-j2.noarch Package Contents on Amazon Linux 2

/usr/bin/xerces-j2-constants
/usr/bin/xerces-j2-version
/usr/share/doc/xerces-j2-2.11.0
/usr/share/doc/xerces-j2-2.11.0/LICENSE
/usr/share/doc/xerces-j2-2.11.0/NOTICE
/usr/share/doc/xerces-j2-2.11.0/README
/usr/share/java/jaxp_parser_impl.jar
/usr/share/java/xerces-j2.jar
/usr/share/man/man1/xerces-j2-constants.1.gz
/usr/share/man/man1/xerces-j2-version.1.gz
/usr/share/maven-fragments/xerces-j2
/usr/share/maven-poms/JPP-xerces-j2.pom

References

Summary

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