How To Install sphinx on AlmaLinux 8

In this tutorial we learn how to install sphinx in AlmaLinux 8. sphinx is Free open-source SQL full-text search engine

Introduction

In this tutorial we learn how to install sphinx on AlmaLinux 8.

What is sphinx

Sphinx is a full-text search engine, distributed under GPL version 2. Commercial licensing (e.g. for embedded use) is also available upon request. Generally, it’s a standalone search engine, meant to provide fast, size-efficient and relevant full-text search functions to other applications. Sphinx was specially designed to integrate well with SQL databases and scripting languages. Currently built-in data source drivers support fetching data either via direct connection to MySQL, or PostgreSQL, or from a pipe in a custom XML format. Adding new drivers (e.g. native support other DBMSes) is designed to be as easy as possible. Search API native ported to PHP, Python, Perl, Ruby, Java, and also available as a plug-gable MySQL storage engine. API is very lightweight so porting it to new language is known to take a few hours. As for the name, Sphinx is an acronym which is officially decoded as SQL Phrase Index. Yes, I know about CMU’s Sphinx project.

We can use yum or dnf to install sphinx on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install sphinx.

Install sphinx on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install sphinx using dnf by running the following command:

sudo dnf -y install sphinx

Install sphinx on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install sphinx using yum by running the following command:

sudo yum -y install sphinx

How To Uninstall sphinx on AlmaLinux 8

To uninstall only the sphinx package we can use the following command:

sudo dnf remove sphinx

References

Summary

In this tutorial we learn how to install sphinx on AlmaLinux 8 using yum and dnf.