How To Install libxstream-java on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libxstream-java
on Ubuntu 20.04.
What is libxstream-java
libxstream-java is:
The features of the XStream library are:
- Ease of use. A high level facade is supplied that simplifies common use cases.
- No mappings required. Most objects can be serialized without need for specifying mappings.
- Performance. 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.
- Clean XML. 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.
- Requires no modifications to objects. Serializes internal fields, including private and final. Supports non-public and inner classes. Classes are not required to have default constructor.
- Full object graph support. Duplicate references encountered in the object-model will be maintained. Supports circular references.
- Integrates with other XML APIs. By implementing an interface, XStream can serialize directly to/from any tree structure (not just XML).
- Customizable conversion strategies. Strategies can be registered allowing customization of how particular types are represented as XML.
- Error messages. When an exception occurs due to malformed XML, detailed diagnostics are provided to help isolate and fix the problem.
- Alternative output format. The modular design allows other output formats. XStream ships currently with JSON support and morphing.
Package: libxstream-java Architecture: all Version: 1.4.11.1-1 Priority: optional Section: universe/libs Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Java Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 656 Depends: libxpp3-java Suggests: libcglib-nodep-java (>= 3.2.9), libdom4j-java, libjdom1-java (>= 1.1.3), libjdom2-java (>= 2.0.5), libjettison-java (>= 1.4.0), libjoda-time-java (>= 2.10), libkxml2-java, libwoodstox-java, libxom-java Filename: pool/universe/libx/libxstream-java/libxstream-java_1.4.11.1-1_all.deb Size: 538076 MD5sum: a10f931ff692490034afbb99e7b07304 SHA1: f4bcf9637c416e72d9646d9a51f1a725aa396b6f SHA256: f4a8a94f5ceca860faac3eb9ebb99474ae287143286b583ddec2f4e64c8e5714 Homepage: http://x-stream.github.io Description-en: Java library to serialize objects to XML and back again The features of the XStream library are:
- Ease of use. A high level facade is supplied that simplifies common use cases.
- No mappings required. Most objects can be serialized without need for specifying mappings.
- Performance. 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.
- Clean XML. 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.
- Requires no modifications to objects. Serializes internal fields, including private and final. Supports non-public and inner classes. Classes are not required to have default constructor.
- Full object graph support. Duplicate references encountered in the object-model will be maintained. Supports circular references.
- Integrates with other XML APIs. By implementing an interface, XStream can serialize directly to/from any tree structure (not just XML).
- Customizable conversion strategies. Strategies can be registered allowing customization of how particular types are represented as XML.
- Error messages. When an exception occurs due to malformed XML, detailed diagnostics are provided to help isolate and fix the problem.
- Alternative output format. The modular design allows other output formats. XStream ships currently with JSON support and morphing.
There are three methods to install libxstream-java
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libxstream-java Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libxstream-java
using apt-get
by running the following command:
sudo apt-get -y install libxstream-java
Install libxstream-java Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libxstream-java
using apt
by running the following command:
sudo apt -y install libxstream-java
Install libxstream-java Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libxstream-java
using aptitude
by running the following command:
sudo aptitude -y install libxstream-java
How To Uninstall libxstream-java on Ubuntu 20.04
To uninstall only the libxstream-java
package we can use the following command:
sudo apt-get remove libxstream-java
Uninstall libxstream-java And Its Dependencies
To uninstall libxstream-java
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libxstream-java
Remove libxstream-java Configurations and Data
To remove libxstream-java
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libxstream-java
Remove libxstream-java configuration, data, and all of its dependencies
We can use the following command to remove libxstream-java
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libxstream-java
References
Summary
In this tutorial we learn how to install libxstream-java
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.