How to Install and Uninstall postgis Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 19,2024

1. Install "postgis" package

This is a short guide on how to install postgis on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install postgis

2. Uninstall "postgis" package

Please follow the steps below to uninstall postgis on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove postgis $ sudo apt autoclean && sudo apt autoremove

3. Information about the postgis package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: postgis
Architecture: amd64
Version: 2.2.1+dfsg-2ubuntu0.1
Priority: optional
Section: universe/misc
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GIS Project
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 915
Depends: libc6 (>= 2.14), libgdal1i (>= 1.9.0), libgeos-c1v5 (>= 3.4.2), libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.14.0), liblwgeom-2.2-5 (>= 2.0.0), libpq5
Recommends: postgresql-9.5-postgis-2.2, postgis-doc
Filename: pool/universe/p/postgis/postgis_2.2.1+dfsg-2ubuntu0.1_amd64.deb
Size: 150822
MD5sum: 381047d220e052277b0c785613d6d514
SHA1: a10dae9e289304fd0e407e00f90fc593ee2c9e21
SHA256: c8b6113bef96363369a9ee85adafd06c7410e7ac1d8eea7e99f0bd54114156ac
SHA512: 77ac32d2b54306603153b31b4c9f517bbcdcf1ca98c56f60e9c0a1b736d3b63e0734461fca91a84749e6aa5fb502f6de4386d847b592d01e18b1e5d64f8b38db
Homepage: http://postgis.net/
Description-en: Geographic objects support for PostgreSQL
PostGIS adds support for geographic objects to the PostgreSQL
object-relational database. In effect, PostGIS "spatially enables"
the PostgreSQL server, allowing it to be used as a backend spatial
database for geographic information systems (GIS), much like ESRI's
SDE or Oracle's Spatial extension. PostGIS follows the OpenGIS
"Simple Features Specification for SQL".
.
This package contains the PostGIS userland binaries, common files.
Description-md5: 71b1ab6dbb24f361235106dc71acd572

Package: postgis
Priority: optional
Section: universe/misc
Installed-Size: 911
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GIS Project
Architecture: amd64
Version: 2.2.1+dfsg-2
Depends: libc6 (>= 2.14), libgdal1i (>= 1.9.0), libgeos-c1v5 (>= 3.4.2), libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.14.0), liblwgeom-2.2-5 (>= 2.0.0), libpq5
Recommends: postgresql-9.5-postgis-2.2, postgis-doc
Filename: pool/universe/p/postgis/postgis_2.2.1+dfsg-2_amd64.deb
Size: 150962
MD5sum: d6f8c17fb6d8b55f61258678dab6ec4d
SHA1: 21b90317e416e14a8c318d15524c8fb0c260fcef
SHA256: effb9215f11c7ca34a339598ed56ee38fc3eb0d4065b2d5b3538d666b82f04ba
Description-en: Geographic objects support for PostgreSQL
PostGIS adds support for geographic objects to the PostgreSQL
object-relational database. In effect, PostGIS "spatially enables"
the PostgreSQL server, allowing it to be used as a backend spatial
database for geographic information systems (GIS), much like ESRI's
SDE or Oracle's Spatial extension. PostGIS follows the OpenGIS
"Simple Features Specification for SQL".
.
This package contains the PostGIS userland binaries, common files.
Description-md5: 71b1ab6dbb24f361235106dc71acd572
Homepage: http://postgis.net/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu