GDAL needs Proj:
$ cd /tmp
$ wget https://download.osgeo.org/proj/proj-6.1.1.tar.gz
$ tar xf proj-6.1.1.tar.gz
$ cd proj-6.1.1
$ ./configure --prefix=/export/apps/proj/6.1.1
$ make -j4
$ sudo mkdir -p /export/apps/proj/6.1.1
$ sudo chown aorth /export/apps/proj/6.1.1
$ make install
$ sudo chown -R root:root /export/apps/proj/6.1.1
$ cd /tmp
$ wget https://download.osgeo.org/gdal/2.4.2/gdal-2.4.2.tar.gz
$ tar xf gdal-2.4.2.tar.gz
$ cd gdal-2.4.2
$ sudo yum install libzstd-devel sqlite-devel libwebp-devel hdf5-devel
$ ./configure --prefix=/export/apps/gdal/2.4.2 --with-proj=/export/apps/proj/6.1.1
$ make -j4
$ sudo mkdir -p /export/apps/gdal/2.4.2
$ sudo chown -R aorth /export/apps/gdal/2.4.2
$ make install
$ sudo chown -R root:root /export/apps/gdal/2.4.2
Question: Does the custom install to /export/app/gdal/2.4.2 allow an uninstall by simply deleting the gdal directory? Thanks.