How To Install php-ZendFramework-Search-Lucene on CentOS 7

In this tutorial we learn how to install php-ZendFramework-Search-Lucene on CentOS 7. php-ZendFramework-Search-Lucene is Apache Lucene engine PHP port

Introduction

In this tutorial we learn how to install php-ZendFramework-Search-Lucene on CentOS 7.

What is php-ZendFramework-Search-Lucene

The Apache Lucene engine is a powerful, feature-rich Java search engine that is flexible about document storage and supports many complex query types. Zend_Search_Lucene is a port of this engine written entirely in PHP 5. * allows PHP-powered websites to leverage powerful search capabilities without the need for web services or Java * provides binary compatibility with Apache Lucene * matches Apache Lucene in performance

We can use yum or dnf to install php-ZendFramework-Search-Lucene on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install php-ZendFramework-Search-Lucene.

Install php-ZendFramework-Search-Lucene on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install php-ZendFramework-Search-Lucene using yum by running the following command:

sudo yum -y install php-ZendFramework-Search-Lucene

Install php-ZendFramework-Search-Lucene on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install php-ZendFramework-Search-Lucene using dnf by running the following command:

sudo dnf -y install php-ZendFramework-Search-Lucene

How To Uninstall php-ZendFramework-Search-Lucene on CentOS 7

To uninstall only the php-ZendFramework-Search-Lucene package we can use the following command:

sudo dnf remove php-ZendFramework-Search-Lucene

References

Summary

In this tutorial we learn how to install php-ZendFramework-Search-Lucene on CentOS 7 using yum and dnf.