How To Install libjboss-marshalling-java on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libjboss-marshalling-java
on Ubuntu 18.04.
What is libjboss-marshalling-java
libjboss-marshalling-java is:
JBoss Marshalling is an alternative serialization API that fixes many of the problems found in the JDK serialization API while remaining fully compatible with java.io.Serializable and its relatives, and adds several new tunable parameters and additional features, all of which are pluggable via factory configuration (externalizers, class/instance lookup tables, class resolution, and object replacement, to name a few).
This framework was inspired by the need for certain features unavailable with the standard Object*Stream classes:
- Pluggable class resolvers, making it easy to customize classloader policy, by implementing a small interface (rather than having to subclass the Object*Stream classes)
- Pluggable object replacement (also without subclassing)
- Pluggable predefined class tables, which can dramatically decrease stream size and serialization time for stream types which frequently use a common set of classes
- Pluggable predefined instance tables, which make it easy to handle remote references
- Pluggable externalizers which may be used to serialize classes which are not Serializable, or for which an alternate strategy is needed
- Customizable stream headers
- Each marshaller instance is highly configurable and tunable to maximize performance based on expected usage patterns A generalized API which can support many different protocol implementations, including protocols which do not necessarily provide all the above features
- Inexpensive instance creation, beneficial to applications where many short-lived streams are used
- Support for separate class and instance caches, if the protocol permits; useful for sending multiple messages or requests with a single stream, with separate object graphs but retaining the class cache
There are three methods to install libjboss-marshalling-java
on Ubuntu 18.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 libjboss-marshalling-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 libjboss-marshalling-java
using apt-get
by running the following command:
sudo apt-get -y install libjboss-marshalling-java
Install libjboss-marshalling-java Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libjboss-marshalling-java
using apt
by running the following command:
sudo apt -y install libjboss-marshalling-java
Install libjboss-marshalling-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 libjboss-marshalling-java
using aptitude
by running the following command:
sudo aptitude -y install libjboss-marshalling-java
How To Uninstall libjboss-marshalling-java on Ubuntu 18.04
To uninstall only the libjboss-marshalling-java
package we can use the following command:
sudo apt-get remove libjboss-marshalling-java
Uninstall libjboss-marshalling-java And Its Dependencies
To uninstall libjboss-marshalling-java
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libjboss-marshalling-java
Remove libjboss-marshalling-java Configurations and Data
To remove libjboss-marshalling-java
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libjboss-marshalling-java
Remove libjboss-marshalling-java configuration, data, and all of its dependencies
We can use the following command to remove libjboss-marshalling-java
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libjboss-marshalling-java
References
Summary
In this tutorial we learn how to install libjboss-marshalling-java
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.