How To Install php-gd.x86_64 on Amazon Linux 2
In this tutorial we learn how to install php-gd.x86_64 in Amazon Linux 2. php-gd.x86_64 is A module for PHP applications for using the gd graphics library
Introduction
In this tutorial we learn how to install php-gd.x86_64
on Amazon Linux 2.
What is php-gd.x86_64
The php-gd package contains a dynamic shared object that will add support for using the gd graphics library to PHP.
We can use yum
to install php-gd.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-gd.x86_64.
Install php-gd.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-gd.x86_64
using yum
by running the following command:
sudo yum -y install php-gd.x86_64
How To Uninstall php-gd.x86_64 on Amazon Linux 2
To uninstall only the php-gd.x86_64
package we can use the following command:
sudo yum remove php-gd.x86_64
php-gd.x86_64 Package Contents on Amazon Linux 2
/etc/php.d/gd.ini
/usr/lib64/php/modules/gd.so
/usr/share/doc/php-gd-5.4.16
/usr/share/doc/php-gd-5.4.16/libgd_COPYING
/usr/share/doc/php-gd-5.4.16/libgd_README
References
Summary
In this tutorial we learn how to install php-gd.x86_64
on Amazon Linux 2 using yum.