How To Install libsphinx-search-perl on Ubuntu 18.04

In this tutorial we learn how to install libsphinx-search-perl on Ubuntu 18.04. libsphinx-search-perl is Perl module for Sphinx search engine

Introduction

In this tutorial we learn how to install libsphinx-search-perl on Ubuntu 18.04.

What is libsphinx-search-perl

libsphinx-search-perl is:

Sphinx::Search is the Perl API client module for the Sphinx open-source SQL full-text indexing search engine, http://www.sphinxsearch.com/.

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

sudo apt-get -y install libsphinx-search-perl

Install libsphinx-search-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libsphinx-search-perl using apt by running the following command:

sudo apt -y install libsphinx-search-perl

Install libsphinx-search-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 libsphinx-search-perl using aptitude by running the following command:

sudo aptitude -y install libsphinx-search-perl

How To Uninstall libsphinx-search-perl on Ubuntu 18.04

To uninstall only the libsphinx-search-perl package we can use the following command:

sudo apt-get remove libsphinx-search-perl

Uninstall libsphinx-search-perl And Its Dependencies

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

sudo apt-get -y autoremove libsphinx-search-perl

Remove libsphinx-search-perl Configurations and Data

To remove libsphinx-search-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libsphinx-search-perl

Remove libsphinx-search-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libsphinx-search-perl

References

Summary

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