How To Install postgis-client on Fedora 36

In this tutorial we learn how to install postgis-client in Fedora 36. postgis-client is The CLI clients for PostGIS

Introduction

In this tutorial we learn how to install postgis-client on Fedora 36.

What is postgis-client

The client package provides shp2pgsql, raster2pgsql and pgsql2shp for PostGIS.

We can use yum or dnf to install postgis-client on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install postgis-client.

Install postgis-client on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install postgis-client

Install postgis-client on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install postgis-client

How To Uninstall postgis-client on Fedora 36

To uninstall only the postgis-client package we can use the following command:

sudo dnf remove postgis-client

postgis-client Package Contents on Fedora 36

/usr/bin/pgsql2shp
/usr/bin/raster2pgsql
/usr/bin/shp2pgsql
/usr/lib/.build-id
/usr/lib/.build-id/48
/usr/lib/.build-id/48/d05d184ae1fb675511242812b7aba59e74c690
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/8d33c7387a832dd6fbed6998997bb79ea3fa71
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/77fe61cd3f5fa79fe07f058215c18eb7ff8b2a

References

Summary

In this tutorial we learn how to install postgis-client on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).