How To Install sphinx on Fedora 36
Introduction
In this tutorial we learn how to install sphinx
on Fedora 36.
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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install sphinx.
Install sphinx on Fedora 36 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 Fedora 36 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 Fedora 36
To uninstall only the sphinx
package we can use the following command:
sudo dnf remove sphinx
sphinx Package Contents on Fedora 36
/etc/logrotate.d/sphinx
/etc/sphinx
/etc/sphinx/sphinx.conf
/usr/bin/indexer
/usr/bin/indextool
/usr/bin/searchd
/usr/bin/spelldump
/usr/bin/wordbreaker
/usr/lib/.build-id
/usr/lib/.build-id/08
/usr/lib/.build-id/08/0fca0a5e97433ad7c236ce6b9098e0fbe70cf9
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/1c4aa1c67b4f1c74067c0824a348793c82f210
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/7d29fc04c8c90deab741cb08773b50d859f17b
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/43dfdd894ab3dd92a28f00fa4b2e75254bc05b
/usr/lib/.build-id/da
/usr/lib/.build-id/da/c00aa35c5580ff0da2b93307516a41d4e57b74
/usr/lib/systemd/system/searchd.service
/usr/lib/tmpfiles.d/sphinx.conf
/usr/share/doc/sphinx
/usr/share/doc/sphinx/COPYING
/usr/share/doc/sphinx/example.sql
/usr/share/doc/sphinx/sphinx-min.conf.dist
/usr/share/doc/sphinx/sphinx.conf.dist
/usr/share/doc/sphinx/sphinx.txt
/usr/share/man/man1/indexer.1.gz
/usr/share/man/man1/indextool.1.gz
/usr/share/man/man1/searchd.1.gz
/usr/share/man/man1/spelldump.1.gz
/var/lib/sphinx
/var/log/sphinx
/var/run/sphinx
References
Summary
In this tutorial we learn how to install sphinx
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).