How To Install xstream.noarch on Amazon Linux 2

In this tutorial we learn how to install xstream.noarch in Amazon Linux 2. xstream.noarch is Java XML serialization library

Introduction

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

What is xstream.noarch

XStream is a simple library to serialize objects to XML and back again. A high level facade is supplied that simplifies common use cases. Custom objects can be serialized without need for specifying mappings. Speed and low memory footprint are a crucial part of the design, making it suitable for large object graphs or systems with high message throughput. No information is duplicated that can be obtained via reflection. This results in XML that is easier to read for humans and more compact than native Java serialization. XStream serializes internal fields, including private and final. Supports non-public and inner classes. Classes are not required to have default constructor. Duplicate references encountered in the object-model will be maintained. Supports circular references. By implementing an interface, XStream can serialize directly to/from any tree structure (not just XML). Strategies can be registered allowing customization of how particular types are represented as XML. When an exception occurs due to malformed XML, detailed diagnostics are provided to help isolate and fix the problem.

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

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

sudo yum -y install xstream.noarch

How To Uninstall xstream.noarch on Amazon Linux 2

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

sudo yum remove xstream.noarch

xstream.noarch Package Contents on Amazon Linux 2

/usr/share/doc/xstream-1.3.1
/usr/share/doc/xstream-1.3.1/LICENSE.txt
/usr/share/java/xstream-benchmark.jar
/usr/share/java/xstream.jar
/usr/share/maven-fragments/xstream
/usr/share/maven-poms/JPP-xstream-parent.pom
/usr/share/maven-poms/JPP-xstream.pom

References

Summary

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