How To Install libconcurrentlinkedhashmap-java on Ubuntu 18.04

In this tutorial we learn how to install libconcurrentlinkedhashmap-java on Ubuntu 18.04. libconcurrentlinkedhashmap-java is Implementation of java.util.LinkedHashMap with concurrency support

Introduction

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

What is libconcurrentlinkedhashmap-java

libconcurrentlinkedhashmap-java is:

Java library that provides a hash table supporting full concurrency of retrievals, adjustable expected concurrency for updates, and a maximum capacity to bound the map by. This implementation differs from java.util.concurrent.ConcurrentHashMap in that it maintains a page replacement algorithm that is used to evict an entry when the map has exceeded its capacity. Unlike the Java Collections Framework, this map does not have a publicly visible constructor and instances are created through a Builder.

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

sudo apt-get -y install libconcurrentlinkedhashmap-java

Install libconcurrentlinkedhashmap-java Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libconcurrentlinkedhashmap-java

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

sudo aptitude -y install libconcurrentlinkedhashmap-java

How To Uninstall libconcurrentlinkedhashmap-java on Ubuntu 18.04

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

sudo apt-get remove libconcurrentlinkedhashmap-java

Uninstall libconcurrentlinkedhashmap-java And Its Dependencies

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

sudo apt-get -y autoremove libconcurrentlinkedhashmap-java

Remove libconcurrentlinkedhashmap-java Configurations and Data

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

sudo apt-get -y purge libconcurrentlinkedhashmap-java

Remove libconcurrentlinkedhashmap-java configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libconcurrentlinkedhashmap-java

References

Summary

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