How To Install libclucene-dev on Debian 9

In this tutorial we learn how to install libclucene-dev on Debian 9. libclucene-dev is library for full-featured text search engine (development)

Introduction

In this tutorial we learn how to install libclucene-dev on Debian 9.

What is libclucene-dev

libclucene-dev is:

CLucene is a C++ port of the popular Apache Lucene search engine (http://lucene.apache.org/java). It is released under LGPL or the Apache License.

CLucene aims to be a high-speed alternative to Java Lucene, its API is very similar to that of the Java version. CLucene has recently been brought up to date with Lucene 1.4.3. It contains most of the same functionality as the Java version, except for Socket, Threading and the special caching modifications.

This package contains the static libraries and headers for developing applications that use the CLucene search API.

There are three methods to install libclucene-dev on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libclucene-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libclucene-dev using apt-get by running the following command:

sudo apt-get -y install libclucene-dev

Install libclucene-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libclucene-dev

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

sudo aptitude -y install libclucene-dev

How To Uninstall libclucene-dev on Debian 9

To uninstall only the libclucene-dev package we can use the following command:

sudo apt-get remove libclucene-dev

Uninstall libclucene-dev And Its Dependencies

To uninstall libclucene-dev and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libclucene-dev

Remove libclucene-dev Configurations and Data

To remove libclucene-dev configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libclucene-dev

Remove libclucene-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libclucene-dev

Dependencies

libclucene-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libclucene-dev package on Debian 9 using different package management tools: apt, apt-get and aptitude.