How To Install libcanl-java on Ubuntu 18.04

In this tutorial we learn how to install libcanl-java on Ubuntu 18.04. libcanl-java is EMI Common Authentication library - bindings for Java

Introduction

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

What is libcanl-java

libcanl-java is:

This is the Java part of the EMI caNl – the Common Authentication Library.

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

sudo apt-get -y install libcanl-java

Install libcanl-java Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcanl-java

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

sudo aptitude -y install libcanl-java

How To Uninstall libcanl-java on Ubuntu 18.04

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

sudo apt-get remove libcanl-java

Uninstall libcanl-java And Its Dependencies

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

sudo apt-get -y autoremove libcanl-java

Remove libcanl-java Configurations and Data

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

sudo apt-get -y purge libcanl-java

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

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

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

References

Summary

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