Reputation: 2543
I can see that CentOS 7 ships with Postgresql 9.2, but I cannot find Postgis in either central repo or epel 7, any solution please? Thanks a lot!
Upvotes: 1
Views: 8402
Reputation: 3435
As Soni Harriz already mentioned, you can install PostgreSQL and PostGIS from a Postgresql.org maintained Yum
repository. Yet, you do not need to manually install each package (that would be a dependency nightmare!). If you go to the PostgreSQL Yum page:
You can select which version you wish to install. At the time of writing, this would be version 9.3, found here: http://yum.postgresql.org/repopackages.php#pg93. And more specifically for CentOS 7 here: http://yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-1.noarch.rpm
This will setup a Yum
repository and the needed GPG keys so you do not have to go and manually install the packages. More detailed install/setup information can be found here.
These repositories have a full install script available which will also initiate your cluster.
Upvotes: 2
Reputation: 3568
Postgres provide postgres 9.3 and postgis 2.1 for Centos 7. Link here.
Hopes it helps.
Upvotes: 4