How To Install php-pdo.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install php-pdo.x86_64
on Amazon Linux 2.
What is php-pdo.x86_64
The php-pdo package contains a dynamic shared object that will add a database access abstraction layer to PHP. This module provides a common interface for accessing MySQL, PostgreSQL or other databases.
We can use yum
to install php-pdo.x86_64
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install php-pdo.x86_64.
Install php-pdo.x86_64 on Amazon Linux 2 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install php-pdo.x86_64
using yum
by running the following command:
sudo yum -y install php-pdo.x86_64
How To Uninstall php-pdo.x86_64 on Amazon Linux 2
To uninstall only the php-pdo.x86_64
package we can use the following command:
sudo yum remove php-pdo.x86_64
php-pdo.x86_64 Package Contents on Amazon Linux 2
/etc/php.d/pdo.ini
/etc/php.d/pdo_sqlite.ini
/etc/php.d/sqlite3.ini
/usr/lib64/php/modules/pdo.so
/usr/lib64/php/modules/pdo_sqlite.so
/usr/lib64/php/modules/sqlite3.so
References
Summary
In this tutorial we learn how to install php-pdo.x86_64
on Amazon Linux 2 using yum.