Uninstalling PostGIS v3.2

Uninstalling PostGIS on a CentOS/RHEL/Rocky Linux/AlmaLinux host

To uninstall PostGIS on a CentOS/RHEL host, assume the identity of the root user and invoke the appropriate command.

On CentOS/RHEL 7 for EDB Posgres Advanced Server version 13:

yum -y erase edb-as13-postgis3*

On CentOS/RHEL 7 for earlier versions of EDB Posgres Advanced Server:

yum erase edb-as<xx>-postgis-*<y.y.y>

Where <xx> is the EDB Postgres Advanced Server version and <y.y.y> is the PostGIS version you want to uninstall.

On Rocky Linux/AlmaLinux/RHEL 8 for EDB Posgres Advanced Server version 13:

dnf -y erase edb-as13-postgis3*

On Rocky Linux/AlmaLinux/RHEL 8 for earlier versions of EDB Posgres Advanced Server:

dnf erase edb-as<xx>-postgis-*<y.y.y>

Uninstalling PostGIS on a Debian/Ubuntu host

To uninstall PostGIS on a Debian or Ubuntu host:

apt-get remove edb-as<xx>-postgis-<y.y>*

Where <xx> is the EDB Postgres Advanced Server version and <y.y> is the PostGIS version you want to uninstall

Uninstalling PostGIS on a SLES host

To uninstall PostGIS on a SLES host, assume the identity of the root user and invoke:

zypper remove edb-as12-postgis*

Uninstalling PostGIS on a Windows host

The PostGIS graphical installer creates an uninstaller that you can use to remove PostGIS. The uninstaller is created in the installation directory that you specified while installing PostGIS. The default is C:\Program Files\edb\as13.

  1. Navigate into the directory that contains the uninstaller and assume superuser privileges.

  2. To begin uninstalling PostGIS, open the uninstaller and select Yes.

    The uninstallation process begins.

  3. When the uninstallation completes, select OK.