How To Install libgmbal-commons-java on Debian 12

Learn how to install libgmbal-commons-java on Debian 12 with this tutorial. libgmbal-commons-java is GlassFish MBean Annotation Library (Common APIs)

Introduction

In this tutorial we learn how to install libgmbal-commons-java on Debian 12.

What is libgmbal-commons-java

libgmbal-commons-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 common APIs used by Gmbal.

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

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

Install libgmbal-commons-java Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgmbal-commons-java

Install libgmbal-commons-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libgmbal-commons-java

How To Uninstall libgmbal-commons-java on Debian 12

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

sudo apt-get remove libgmbal-commons-java

Uninstall libgmbal-commons-java And Its Dependencies

To uninstall libgmbal-commons-java and its dependencies that are no longer needed by Debian 12, we can use the command below:

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

Remove libgmbal-commons-java Configurations and Data

To remove libgmbal-commons-java configuration and data from Debian 12 we can use the following command:

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

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

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

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

Dependencies

libgmbal-commons-java have the following dependencies:

References

Summary

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