How To Install gdal on Rocky Linux 8

In this tutorial we learn how to install gdal on Rocky Linux 8. gdal is GIS file format library

Introduction

In this tutorial we learn how to install gdal on Rocky Linux 8.

What is gdal

Geospatial Data Abstraction Library (GDAL/OGR) is a cross platform C++ translator library for raster and vector geospatial data formats. As a library, it presents a single abstract data model to the calling application for all supported formats. It also comes with a variety of useful commandline utilities for data translation and processing. It provides the primary data access engine for many applications. GDAL/OGR is the most widely used geospatial data access library.

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

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

sudo dnf -y install gdal

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

sudo yum -y install gdal

How To Uninstall gdal on Rocky Linux 8

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

sudo dnf remove gdal

gdal Package Contents on Rocky Linux 8

/etc/bash_completion.d/gdal
/usr/bin/8211createfromxml
/usr/bin/8211dump
/usr/bin/8211view
/usr/bin/gdal_contour
/usr/bin/gdal_grid
/usr/bin/gdal_rasterize
/usr/bin/gdal_translate
/usr/bin/gdaladdo
/usr/bin/gdalbuildvrt
/usr/bin/gdaldem
/usr/bin/gdalenhance
/usr/bin/gdalinfo
/usr/bin/gdallocationinfo
/usr/bin/gdalmanage
/usr/bin/gdalserver
/usr/bin/gdalsrsinfo
/usr/bin/gdaltindex
/usr/bin/gdaltransform
/usr/bin/gdalwarp
/usr/bin/gnmanalyse
/usr/bin/gnmmanage
/usr/bin/nearblack
/usr/bin/ogr2ogr
/usr/bin/ogrinfo
/usr/bin/ogrlineref
/usr/bin/ogrmerge.py
/usr/bin/ogrtindex
/usr/bin/s57dump
/usr/bin/testepsg
/usr/lib/.build-id
/usr/lib/.build-id/14
/usr/lib/.build-id/14/2a19d1e005227f82cd414ec4b8017c36a54993
/usr/lib/.build-id/21
/usr/lib/.build-id/21/f950d277794f2199fa523b3536594962bb6221
/usr/lib/.build-id/43
/usr/lib/.build-id/43/79307dc7b4528effd514744e2e0b76693684ec
/usr/lib/.build-id/43/e3541c226db876adf1753a2f65b77a8fe55225
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/deabe167eec49f3bea3cba4eba4390fe9cd032
/usr/lib/.build-id/57
/usr/lib/.build-id/57/1ca98bcc837be27f7c98ab2d787646ef0a9957
/usr/lib/.build-id/58
/usr/lib/.build-id/58/bb32c563a9e1f854e32b1d87dbbf479f7b72fb
/usr/lib/.build-id/60
/usr/lib/.build-id/60/58ef0b85b75c42a201b98694c1d5ed837d39c9
/usr/lib/.build-id/88
/usr/lib/.build-id/88/2e9b3453a47e5969f3b8b12d950b0bce3ddfb3
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/70d18a4718f5186fc3fde805f19659c42a6795
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/933eea61b8dc008623a87ccaa51ffe9eb26360
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/7adec642a206a5e4be3c3955ebd494ce728a5d
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/11ea42415db60eaf3a57fb1c54e19c659f8a13
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/9b8107e4caf4c68eaa2ad52e69d1d32d84da14
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/1f5fa004c36bb2b3865f0c71ba450ab5bfcba2
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/6b471815a7fc9557a53d3c5a577a009bcdd041
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/38879a29cd892a1d53e43253281f551a4d3ced
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/202056e493899d31a7ce4355f47e0c2d0c3219
/usr/lib/.build-id/de
/usr/lib/.build-id/de/1a3ea781e6c296f07c090abe7ddfe3c203ca55
/usr/lib/.build-id/de/9b3068f345693c849ef9f3a12ac126d021735a
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/491f93f8c16e36669a2131307907240ae171fe
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/0b74b4e418da2619803c87e77c16e3d631409a
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/a4e38e8e7897142a562b4e9ec233dc70c2b7f5
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/f7193c2dc927ef9226b89455813f0ef18945ca
/usr/share/man/man1/gdal_calc.1.gz
/usr/share/man/man1/gdal_contour.1.gz
/usr/share/man/man1/gdal_edit.1.gz
/usr/share/man/man1/gdal_grid.1.gz
/usr/share/man/man1/gdal_pansharpen.1.gz
/usr/share/man/man1/gdal_polygonize.1.gz
/usr/share/man/man1/gdal_proximity.1.gz
/usr/share/man/man1/gdal_rasterize.1.gz
/usr/share/man/man1/gdal_translate.1.gz
/usr/share/man/man1/gdal_utilities.1.gz
/usr/share/man/man1/gdaladdo.1.gz
/usr/share/man/man1/gdalbuildvrt.1.gz
/usr/share/man/man1/gdalcompare.1.gz
/usr/share/man/man1/gdaldem.1.gz
/usr/share/man/man1/gdalinfo.1.gz
/usr/share/man/man1/gdallocationinfo.1.gz
/usr/share/man/man1/gdalmanage.1.gz
/usr/share/man/man1/gdalmove.1.gz
/usr/share/man/man1/gdalsrsinfo.1.gz
/usr/share/man/man1/gdaltindex.1.gz
/usr/share/man/man1/gdaltransform.1.gz
/usr/share/man/man1/gdalwarp.1.gz
/usr/share/man/man1/gnm_utilities.1.gz
/usr/share/man/man1/gnmanalyse.1.gz
/usr/share/man/man1/gnmmanage.1.gz
/usr/share/man/man1/nearblack.1.gz
/usr/share/man/man1/ogr2ogr.1.gz
/usr/share/man/man1/ogr_utilities.1.gz
/usr/share/man/man1/ogrinfo.1.gz
/usr/share/man/man1/ogrlineref.1.gz
/usr/share/man/man1/ogrmerge.1.gz
/usr/share/man/man1/ogrtindex.1.gz

References

Summary

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