How To Install gd.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install gd.x86_64
on Amazon Linux 2.
What is gd.x86_64
The gd graphics library allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and to write out the result as a PNG or JPEG file. This is particularly useful in Web applications, where PNG and JPEG are two of the formats accepted for inline images by most browsers. Note that gd is not a paint program.
We can use yum
to install 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 gd.x86_64.
Install 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 gd.x86_64
using yum
by running the following command:
sudo yum -y install gd.x86_64
How To Uninstall gd.x86_64 on Amazon Linux 2
To uninstall only the gd.x86_64
package we can use the following command:
sudo yum remove gd.x86_64
gd.x86_64 Package Contents on Amazon Linux 2
/usr/lib64/libgd.so.2
/usr/lib64/libgd.so.2.0.0
/usr/share/doc/gd-2.0.35
/usr/share/doc/gd-2.0.35/COPYING
/usr/share/doc/gd-2.0.35/NEWS
/usr/share/doc/gd-2.0.35/README-JPEG.TXT
/usr/share/doc/gd-2.0.35/index.html
References
Summary
In this tutorial we learn how to install gd.x86_64
on Amazon Linux 2 using yum.