How To Install php-adodb on CentOS 7

In this tutorial we learn how to install php-adodb on CentOS 7. php-adodb is Database abstraction layer for PHP

Introduction

In this tutorial we learn how to install php-adodb on CentOS 7.

What is php-adodb

ADOdb is an object oriented library written in PHP that abstracts database operations for portability. It is modelled on Microsoft’s ADO, but has many improvements that make it unique (eg. pivot tables, Active Record support, generating HTML for paging recordsets with next and previous links, cached recordsets, HTML menu generation, etc). ADOdb hides the differences between the different databases so you can easily switch DBs without changing code.

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

Install php-adodb 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-adodb using yum by running the following command:

sudo yum -y install php-adodb

Install php-adodb 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-adodb using dnf by running the following command:

sudo dnf -y install php-adodb

How To Uninstall php-adodb on CentOS 7

To uninstall only the php-adodb package we can use the following command:

sudo dnf remove php-adodb

References

Summary

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