gdal-config(1)

gdal-config1

Determines various information about a gdal installation. determines various information about a gdal installation.

Usage

gdal-config [OPTIONS]
Options:
        [--prefix[=DIR]]
        [--libs]
        [--cflags]
        [--version]
        [--ogr-enabled]
        [--formats]

Overview

This utility script (available on Unix systems) can be used to determine various information about a GDAL installation. It is normally just used by configure scripts for applications using GDAL but can be queried by an end user.

--prefix

the top level directory for the GDAL installation.

--libs

The libraries and link directives required to use GDAL.

--cflags

The include and macro definition required to compiled modules using GDAL.

--version

Reports the GDAL version.

--ogr-enabled

Reports "yes" or "no" to standard output depending on whether OGR is built into GDAL.

--formats

Reports which formats are configured into GDAL to stdout.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 11 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9
  8. 10
  9. 11
  10. 12
  11. 13
  12. Arch

--cflags since Debian 11 (Bullseye); --formats since Debian 11 (Bullseye); --libs since Debian 11 (Bullseye); --ogr-enabled since Debian 11 (Bullseye); --prefix since Debian 11 (Bullseye); --version since Debian 11 (Bullseye).

Author

Frank Warmerdam <[email protected]>

From gdal 3.13.3-6 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.