Skip to content

Installing PostGIS 3.0 and PostgreSQL 12 on CentOS 8

Installing PostGIS 3.0 on CentOS 8 requires a few steps:
Run these steps as root:

- Install PostgreSQL repo RPM:

dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm

- Disable postgresql module:

dnf -qy module disable postgresql

- Install EPEL repo RPM:

dnf -y install epel-release

- Enable PowerTools repo (required for some of the dependencies):

dnf -y config-manager --set-enabled PowerTools

- Now, you can finally install PostGIS:

dnf -y install postgis30_12

- The last step is creating the extension:

CREATE EXTENSION postgis;

Please refer to PostGIS documentation for more info:

http://postgis.net/docs/manual-3.0/

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

The author does not allow comments to this entry

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Form options