How To Install libgmbal-pfl-java on Ubuntu 18.04

In this tutorial we learn how to install libgmbal-pfl-java on Ubuntu 18.04. libgmbal-pfl-java is GlassFish MBean Annotation Library (Primitive Function Library)

Introduction

In this tutorial we learn how to install libgmbal-pfl-java on Ubuntu 18.04.

What is libgmbal-pfl-java

libgmbal-pfl-java is:

The GlassFish MBean Annotation Library (gmbal, pronounced as in “gumball”) is a runtime annotation processor that creates Open MBeans. This is useful for creating a management API for existing code with minimal effort. It is intended to be applied to existing modules (which may be OSGi bundles in GlassFish v3, or any other packaging model including standard jar files), but could be used anywhere that it is desired to combine the definition of the management API with the module API and implementation.

Gmbal is not limited to use in GlassFish. Gmbal is completely independent of GlassFish, and may be used in a context where GlassFish is not present.

This package contains the Primitive Function Library used by Gmbal (PFL)

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

sudo apt-get -y install libgmbal-pfl-java

Install libgmbal-pfl-java Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgmbal-pfl-java

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

sudo aptitude -y install libgmbal-pfl-java

How To Uninstall libgmbal-pfl-java on Ubuntu 18.04

To uninstall only the libgmbal-pfl-java package we can use the following command:

sudo apt-get remove libgmbal-pfl-java

Uninstall libgmbal-pfl-java And Its Dependencies

To uninstall libgmbal-pfl-java and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libgmbal-pfl-java

Remove libgmbal-pfl-java Configurations and Data

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

sudo apt-get -y purge libgmbal-pfl-java

Remove libgmbal-pfl-java configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libgmbal-pfl-java

References

Summary

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