How To Install gdal-perl on CentOS 8

gdal-perl is Perl modules for the GDAL file format library

Introduction

In this tutorial we learn how to install gdal-perl on CentOS 8.

What is gdal-perl

The GDAL Perl modules provide support to handle multiple GIS file formats.

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

Install gdal-perl on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install gdal-perl

Install gdal-perl on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install gdal-perl

How To Uninstall gdal-perl on CentOS 8

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

sudo dnf remove gdal-perl

gdal-perl Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/60/03c6724d4a76a4f90a7f93f97f0d95ab78377c
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/e3924c3f0becc3f70442b43f955ca20ecb41ee
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/da5e9f465fa1f4b653f6baf6d234cdd47a56d7
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/97adc3d3d2d2c7fbb3162b2d8b5be1204c9156
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/7aaab1090c4ae832331b1b0b81c7d3e454047a
/usr/lib64/perl5/vendor_perl/Geo
/usr/lib64/perl5/vendor_perl/Geo/GDAL
/usr/lib64/perl5/vendor_perl/Geo/GDAL.pm
/usr/lib64/perl5/vendor_perl/Geo/GDAL/Const.pm
/usr/lib64/perl5/vendor_perl/Geo/GNM.pm
/usr/lib64/perl5/vendor_perl/Geo/OGR.pm
/usr/lib64/perl5/vendor_perl/Geo/OSR.pm
/usr/lib64/perl5/vendor_perl/auto
/usr/lib64/perl5/vendor_perl/auto/Geo
/usr/lib64/perl5/vendor_perl/auto/Geo/GDAL
/usr/lib64/perl5/vendor_perl/auto/Geo/GDAL/Const
/usr/lib64/perl5/vendor_perl/auto/Geo/GDAL/Const/Const.so
/usr/lib64/perl5/vendor_perl/auto/Geo/GDAL/GDAL.so
/usr/lib64/perl5/vendor_perl/auto/Geo/GNM
/usr/lib64/perl5/vendor_perl/auto/Geo/GNM/GNM.so
/usr/lib64/perl5/vendor_perl/auto/Geo/OGR
/usr/lib64/perl5/vendor_perl/auto/Geo/OGR/OGR.so
/usr/lib64/perl5/vendor_perl/auto/Geo/OSR
/usr/lib64/perl5/vendor_perl/auto/Geo/OSR/OSR.so
/usr/share/doc/gdal-perl
/usr/share/doc/gdal-perl/README
/usr/share/man/man3/Geo::GDAL.3pm.gz

References

Summary

In this tutorial we learn how to install gdal-perl on CentOS 8 using yum and dnf.