How To Install libannotation-indexer-java on Ubuntu 18.04

In this tutorial we learn how to install libannotation-indexer-java on Ubuntu 18.04. libannotation-indexer-java is Indexing and validation of Java annotations

Introduction

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

What is libannotation-indexer-java

libannotation-indexer-java is:

Annotation Indexer builds indices of Java code annotated with the @Indexed annotation at compile time and supports validation of indexes to allow for early error detection and querying of the indexed elements for specific annotations.

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

sudo apt-get -y install libannotation-indexer-java

Install libannotation-indexer-java Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libannotation-indexer-java

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

sudo aptitude -y install libannotation-indexer-java

How To Uninstall libannotation-indexer-java on Ubuntu 18.04

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

sudo apt-get remove libannotation-indexer-java

Uninstall libannotation-indexer-java And Its Dependencies

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

sudo apt-get -y autoremove libannotation-indexer-java

Remove libannotation-indexer-java Configurations and Data

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

sudo apt-get -y purge libannotation-indexer-java

Remove libannotation-indexer-java configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libannotation-indexer-java

References

Summary

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