How To Install perl-GD on Rocky Linux 8

In this tutorial we learn how to install perl-GD on Rocky Linux 8. perl-GD is Perl interface to the GD graphics library

Introduction

In this tutorial we learn how to install perl-GD on Rocky Linux 8.

What is perl-GD

This is a auto-loadable interface module for GD, a popular library for creating and manipulating PNG files. With this library you can create PNG images on the fly or modify existing files.

We can use yum or dnf to install perl-GD on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-GD.

Install perl-GD on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-GD using dnf by running the following command:

sudo dnf -y install perl-GD

Install perl-GD on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-GD using yum by running the following command:

sudo yum -y install perl-GD

How To Uninstall perl-GD on Rocky Linux 8

To uninstall only the perl-GD package we can use the following command:

sudo dnf remove perl-GD

perl-GD Package Contents on Rocky Linux 8

/usr/bin/bdf2gdfont.pl
/usr/lib/.build-id
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/40507b1f2e086d6f08f10627b0cbcc1c0f7ef1
/usr/lib64/perl5/vendor_perl/GD
/usr/lib64/perl5/vendor_perl/GD.pm
/usr/lib64/perl5/vendor_perl/GD/Group.pm
/usr/lib64/perl5/vendor_perl/GD/Image.pm
/usr/lib64/perl5/vendor_perl/GD/Polygon.pm
/usr/lib64/perl5/vendor_perl/GD/Polyline.pm
/usr/lib64/perl5/vendor_perl/GD/Simple.pm
/usr/lib64/perl5/vendor_perl/auto/GD
/usr/lib64/perl5/vendor_perl/auto/GD/GD.so
/usr/lib64/perl5/vendor_perl/auto/GD/autosplit.ix
/usr/share/doc/perl-GD
/usr/share/doc/perl-GD/ChangeLog
/usr/share/doc/perl-GD/README
/usr/share/doc/perl-GD/README.QUICKDRAW
/usr/share/doc/perl-GD/demos
/usr/share/doc/perl-GD/demos/brushes.pl
/usr/share/doc/perl-GD/demos/copies.pl
/usr/share/doc/perl-GD/demos/draw_colors.pl
/usr/share/doc/perl-GD/demos/fills.pl
/usr/share/doc/perl-GD/demos/font_list.png
/usr/share/doc/perl-GD/demos/fonttest
/usr/share/doc/perl-GD/demos/gd_example.cgi
/usr/share/doc/perl-GD/demos/polyline.pl
/usr/share/doc/perl-GD/demos/polys.pl
/usr/share/doc/perl-GD/demos/shapes.pl
/usr/share/doc/perl-GD/demos/tile.png
/usr/share/doc/perl-GD/demos/transform.pl
/usr/share/doc/perl-GD/demos/truetype_test
/usr/share/doc/perl-GD/demos/ttf.pl
/usr/share/licenses/perl-GD
/usr/share/licenses/perl-GD/LICENSE
/usr/share/man/man1/bdf2gdfont.pl.1.gz
/usr/share/man/man3/GD.3pm.gz
/usr/share/man/man3/GD::Group.3pm.gz
/usr/share/man/man3/GD::Image.3pm.gz
/usr/share/man/man3/GD::Polygon.3pm.gz
/usr/share/man/man3/GD::Polyline.3pm.gz
/usr/share/man/man3/GD::Simple.3pm.gz

References

Summary

In this tutorial we learn how to install perl-GD on Rocky Linux 8 using yum and dnf.