How To Install libjboss-xnio-java on Ubuntu 18.04

In this tutorial we learn how to install libjboss-xnio-java on Ubuntu 18.04. libjboss-xnio-java is simplified low-level I/O layer for NIO

Introduction

In this tutorial we learn how to install libjboss-xnio-java on Ubuntu 18.04.

What is libjboss-xnio-java

libjboss-xnio-java is:

XNIO is a simplified low-level I/O layer which can be used anywhere you are using non-blocking I/O today. It frees you from the hassle of dealing with Selectors and the lack of NIO support for multicast sockets and non-socket I/O, while still maintaining all the capabilities present in NIO, and it opens the door to non-obvious optimizations.

XNIO provides a unique API for combining blocking and non-blocking operations, even on the same channel, allowing you to take advantage of the simplicity and low latency of blocking I/O while still gaining the thread-conservative and throughput benefits of non-blocking I/O.

There are three methods to install libjboss-xnio-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-xnio-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-xnio-java using apt-get by running the following command:

sudo apt-get -y install libjboss-xnio-java

Install libjboss-xnio-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libjboss-xnio-java using apt by running the following command:

sudo apt -y install libjboss-xnio-java

Install libjboss-xnio-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-xnio-java using aptitude by running the following command:

sudo aptitude -y install libjboss-xnio-java

How To Uninstall libjboss-xnio-java on Ubuntu 18.04

To uninstall only the libjboss-xnio-java package we can use the following command:

sudo apt-get remove libjboss-xnio-java

Uninstall libjboss-xnio-java And Its Dependencies

To uninstall libjboss-xnio-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-xnio-java

Remove libjboss-xnio-java Configurations and Data

To remove libjboss-xnio-java configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libjboss-xnio-java

Remove libjboss-xnio-java configuration, data, and all of its dependencies

We can use the following command to remove libjboss-xnio-java configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libjboss-xnio-java

References

Summary

In this tutorial we learn how to install libjboss-xnio-java package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.