How To Install libswish-api-common-perl on Ubuntu 18.04

In this tutorial we learn how to install libswish-api-common-perl on Ubuntu 18.04. libswish-api-common-perl is Perl interface to the SWISH index engine

Introduction

In this tutorial we learn how to install libswish-api-common-perl on Ubuntu 18.04.

What is libswish-api-common-perl

libswish-api-common-perl is:

SWISH::API::Common offers an easy interface to the Swish index engine. While SWISH::API offers a complete API, SWISH::API::Common focuses on ease of use. Currently, this API allows for indexing documents in a single directory and any of its subdirectories. However, index() and search() cannot be executed in parallel.

There are three methods to install libswish-api-common-perl 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 libswish-api-common-perl Using apt-get

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

sudo apt-get update

After updating apt database, We can install libswish-api-common-perl using apt-get by running the following command:

sudo apt-get -y install libswish-api-common-perl

Install libswish-api-common-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libswish-api-common-perl using apt by running the following command:

sudo apt -y install libswish-api-common-perl

Install libswish-api-common-perl 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 libswish-api-common-perl using aptitude by running the following command:

sudo aptitude -y install libswish-api-common-perl

How To Uninstall libswish-api-common-perl on Ubuntu 18.04

To uninstall only the libswish-api-common-perl package we can use the following command:

sudo apt-get remove libswish-api-common-perl

Uninstall libswish-api-common-perl And Its Dependencies

To uninstall libswish-api-common-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libswish-api-common-perl

Remove libswish-api-common-perl Configurations and Data

To remove libswish-api-common-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libswish-api-common-perl

Remove libswish-api-common-perl configuration, data, and all of its dependencies

We can use the following command to remove libswish-api-common-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libswish-api-common-perl

References

Summary

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