How to Install and Uninstall postgis Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: May 19,2024

1. Install "postgis" package

This guide covers the steps necessary to install postgis on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install postgis

2. Uninstall "postgis" package

Please follow the instructions below to uninstall postgis on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the postgis package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: postgis
Architecture: amd64
Version: 2.4.3+dfsg-4
Priority: optional
Section: universe/misc
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GIS Project
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 414
Depends: libc6 (>= 2.14), libgdal20 (>= 2.0.1), libgeos-c1v5 (>= 3.4.2), liblwgeom-2.4-0 (>= 2.0.0), libpq5
Recommends: postgresql-10-postgis-2.4, postgis-doc
Suggests: postgis-gui
Filename: pool/universe/p/postgis/postgis_2.4.3+dfsg-4_amd64.deb
Size: 126692
MD5sum: 12f670a63aab3e71b2a6c39d2756d3d9
SHA1: f4b5e7929941bf9e138a576b77349dab3e3b9cf8
SHA256: d56116a09d94d5c95f7d2b2dc6966764c382b57a2c111a0cd9dab698835bb000
Homepage: http://postgis.net/
Description: Geographic objects support for PostgreSQL
Description-md5: 8aab8a2ee2d60aceb4196de4389b1c02