How To Install libapache-directory-jdbm-java on Ubuntu 18.04

In this tutorial we learn how to install libapache-directory-jdbm-java on Ubuntu 18.04. libapache-directory-jdbm-java is ApacheDS JDBM Implementation

Introduction

In this tutorial we learn how to install libapache-directory-jdbm-java on Ubuntu 18.04.

What is libapache-directory-jdbm-java

libapache-directory-jdbm-java is:

JDBM is a transactional persistence engine for Java. It aims to be for Java what GDBM is for other languages (C/C++, Python, Perl, etc.): a fast, simple persistence engine. You can use it to store a mix of objects and BLOBs, and all updates are done in a transactionally safe manner. JDBM also provides scalable data structures, such as HTree and B+Tree, to support persistence of large object collections.

This package contains the Apache fork of JDBM used by Apache Directory Server.

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

sudo apt-get -y install libapache-directory-jdbm-java

Install libapache-directory-jdbm-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libapache-directory-jdbm-java using apt by running the following command:

sudo apt -y install libapache-directory-jdbm-java

Install libapache-directory-jdbm-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 libapache-directory-jdbm-java using aptitude by running the following command:

sudo aptitude -y install libapache-directory-jdbm-java

How To Uninstall libapache-directory-jdbm-java on Ubuntu 18.04

To uninstall only the libapache-directory-jdbm-java package we can use the following command:

sudo apt-get remove libapache-directory-jdbm-java

Uninstall libapache-directory-jdbm-java And Its Dependencies

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

sudo apt-get -y autoremove libapache-directory-jdbm-java

Remove libapache-directory-jdbm-java Configurations and Data

To remove libapache-directory-jdbm-java configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libapache-directory-jdbm-java

Remove libapache-directory-jdbm-java configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libapache-directory-jdbm-java

References

Summary

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