How To Install xapian-core on CentOS 8

xapian-core is The Xapian Probabilistic Information Retrieval Library

Introduction

In this tutorial we learn how to install xapian-core on CentOS 8.

What is xapian-core

Xapian is an Open Source Probabilistic Information Retrieval Library. It offers a highly adaptable toolkit that allows developers to easily add advanced indexing and search facilities to applications

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

Install xapian-core on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install xapian-core

Install xapian-core on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install xapian-core using yum by running the following command:

sudo yum -y install xapian-core

How To Uninstall xapian-core on CentOS 8

To uninstall only the xapian-core package we can use the following command:

sudo dnf remove xapian-core

xapian-core Package Contents on CentOS 8

/usr/bin/copydatabase
/usr/bin/quest
/usr/bin/simpleexpand
/usr/bin/simpleindex
/usr/bin/simplesearch
/usr/bin/xapian-check
/usr/bin/xapian-compact
/usr/bin/xapian-config
/usr/bin/xapian-delve
/usr/bin/xapian-metadata
/usr/bin/xapian-pos
/usr/bin/xapian-progsrv
/usr/bin/xapian-replicate
/usr/bin/xapian-replicate-server
/usr/bin/xapian-tcpsrv
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/42369df477cb82465ac3387ec65fda55b76d64
/usr/lib/.build-id/11
/usr/lib/.build-id/11/d93ed72ceecb1f9096064ca2ce8c8a1d7a13e7
/usr/lib/.build-id/12
/usr/lib/.build-id/12/56dd9c84f16bbe7559462aff9001a1ecc8eab7
/usr/lib/.build-id/14
/usr/lib/.build-id/14/f0f6dec67c40458cb4f69645933af58ff8a21d
/usr/lib/.build-id/43
/usr/lib/.build-id/43/fe0cf33d1db547b5e849d33873e0d13390c2a0
/usr/lib/.build-id/51
/usr/lib/.build-id/51/391d791a0933e9ec023e7d8428df15fe5c9305
/usr/lib/.build-id/97
/usr/lib/.build-id/97/232bd0d9021edc38eff144fc26af14b102bfe0
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/96fa500b8aaaeaf942f12af5756b1af86c5b43
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/008befdd2446a3738615089ffabc326b97ab96
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/2b15b78324a01f788fe5d90f87aad136551dce
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/2d79b7c12a2cb98dc272714128ddedb5689291
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/862b12ef098532ab042aad0a891c5edc84b470
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/befc6a2c569fb11c57fcc614c32a58ddd3e0f8
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/378b3cfc0833c13acdea69514647d554318944
/usr/share/doc/xapian-core
/usr/share/doc/xapian-core/AUTHORS
/usr/share/doc/xapian-core/NEWS
/usr/share/doc/xapian-core/README
/usr/share/man/man1/copydatabase.1.gz
/usr/share/man/man1/quest.1.gz
/usr/share/man/man1/xapian-check.1.gz
/usr/share/man/man1/xapian-compact.1.gz
/usr/share/man/man1/xapian-config.1.gz
/usr/share/man/man1/xapian-delve.1.gz
/usr/share/man/man1/xapian-metadata.1.gz
/usr/share/man/man1/xapian-pos.1.gz
/usr/share/man/man1/xapian-progsrv.1.gz
/usr/share/man/man1/xapian-replicate-server.1.gz
/usr/share/man/man1/xapian-replicate.1.gz
/usr/share/man/man1/xapian-tcpsrv.1.gz
/usr/share/xapian-core
/usr/share/xapian-core/stopwords
/usr/share/xapian-core/stopwords/arabic.list
/usr/share/xapian-core/stopwords/danish.list
/usr/share/xapian-core/stopwords/dutch.list
/usr/share/xapian-core/stopwords/english.list
/usr/share/xapian-core/stopwords/finnish.list
/usr/share/xapian-core/stopwords/french.list
/usr/share/xapian-core/stopwords/german.list
/usr/share/xapian-core/stopwords/hungarian.list
/usr/share/xapian-core/stopwords/indonesian.list
/usr/share/xapian-core/stopwords/italian.list
/usr/share/xapian-core/stopwords/norwegian.list
/usr/share/xapian-core/stopwords/portuguese.list
/usr/share/xapian-core/stopwords/russian.list
/usr/share/xapian-core/stopwords/spanish.list
/usr/share/xapian-core/stopwords/swedish.list

References

Summary

In this tutorial we learn how to install xapian-core on CentOS 8 using yum and dnf.