How To Install gdal-devel on CentOS 8

gdal-devel is Development files for the GDAL file format library

Introduction

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

What is gdal-devel

This package contains development files for GDAL.

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

Install gdal-devel 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-devel using dnf by running the following command:

sudo dnf -y install gdal-devel

Install gdal-devel 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-devel using yum by running the following command:

sudo yum -y install gdal-devel

How To Uninstall gdal-devel on CentOS 8

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

sudo dnf remove gdal-devel

gdal-devel Package Contents on CentOS 8

/usr/bin/gdal-config
/usr/bin/gdal-config-64
/usr/include/gdal
/usr/include/gdal/cpl_atomic_ops.h
/usr/include/gdal/cpl_auto_close.h
/usr/include/gdal/cpl_config-64.h
/usr/include/gdal/cpl_config.h
/usr/include/gdal/cpl_config_extras.h
/usr/include/gdal/cpl_conv.h
/usr/include/gdal/cpl_csv.h
/usr/include/gdal/cpl_error.h
/usr/include/gdal/cpl_hash_set.h
/usr/include/gdal/cpl_http.h
/usr/include/gdal/cpl_json.h
/usr/include/gdal/cpl_list.h
/usr/include/gdal/cpl_minixml.h
/usr/include/gdal/cpl_minizip_ioapi.h
/usr/include/gdal/cpl_minizip_unzip.h
/usr/include/gdal/cpl_minizip_zip.h
/usr/include/gdal/cpl_multiproc.h
/usr/include/gdal/cpl_odbc.h
/usr/include/gdal/cpl_port.h
/usr/include/gdal/cpl_progress.h
/usr/include/gdal/cpl_quad_tree.h
/usr/include/gdal/cpl_spawn.h
/usr/include/gdal/cpl_string.h
/usr/include/gdal/cpl_time.h
/usr/include/gdal/cpl_virtualmem.h
/usr/include/gdal/cpl_vsi.h
/usr/include/gdal/cpl_vsi_error.h
/usr/include/gdal/cpl_vsi_virtual.h
/usr/include/gdal/cplkeywordparser.h
/usr/include/gdal/gdal.h
/usr/include/gdal/gdal_alg.h
/usr/include/gdal/gdal_alg_priv.h
/usr/include/gdal/gdal_csv.h
/usr/include/gdal/gdal_frmts.h
/usr/include/gdal/gdal_mdreader.h
/usr/include/gdal/gdal_pam.h
/usr/include/gdal/gdal_priv.h
/usr/include/gdal/gdal_proxy.h
/usr/include/gdal/gdal_rat.h
/usr/include/gdal/gdal_simplesurf.h
/usr/include/gdal/gdal_utils.h
/usr/include/gdal/gdal_version.h
/usr/include/gdal/gdal_vrt.h
/usr/include/gdal/gdalgeorefpamdataset.h
/usr/include/gdal/gdalgrid.h
/usr/include/gdal/gdalgrid_priv.h
/usr/include/gdal/gdaljp2abstractdataset.h
/usr/include/gdal/gdaljp2metadata.h
/usr/include/gdal/gdalpansharpen.h
/usr/include/gdal/gdalwarper.h
/usr/include/gdal/gnm.h
/usr/include/gdal/gnm_api.h
/usr/include/gdal/gnmgraph.h
/usr/include/gdal/memdataset.h
/usr/include/gdal/ogr_api.h
/usr/include/gdal/ogr_core.h
/usr/include/gdal/ogr_feature.h
/usr/include/gdal/ogr_featurestyle.h
/usr/include/gdal/ogr_geocoding.h
/usr/include/gdal/ogr_geometry.h
/usr/include/gdal/ogr_p.h
/usr/include/gdal/ogr_spatialref.h
/usr/include/gdal/ogr_srs_api.h
/usr/include/gdal/ogrsf_frmts.h
/usr/include/gdal/rawdataset.h
/usr/include/gdal/vrtdataset.h
/usr/lib64/libgdal.so
/usr/lib64/pkgconfig/gdal.pc
/usr/share/man/man1/gdal-config.1.gz

References

Summary

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