Changes between Initial Version and Version 1 of UsersWikiPostGIS21Fedora19pgdg


Ignore:
Timestamp:
Oct 3, 2013, 1:52:24 PM (11 years ago)
Author:
Mike Taves
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostGIS21Fedora19pgdg

    v1 v1  
     1= How to install PostGIS 2.1 on Fedora 19 (''Schrödinger's Cat'') from packages =
     2
     3This installation method uses YUM packages maintained by Devrim GUNDUZ of the PostgreSQL Global Develompent Group (PGDG). For an overview of installing PostgreSQL using this method, see other details at http://wiki.postgresql.org/wiki/YUM_Installation.
     4
     5== Configure YUM ==
     6
     7These instructions will assume your user account has administrative privileges using `sudo`, and/or that you are using a graphical editor `gedit`, however use whatever text utility you are comfortable with. Open a terminal, e.g., click on Applications > System Tools > Terminal.
     8
     9Open the first file for editing:
     10{{{
     11sudo gedit /etc/yum.repos.d/fedora.repo
     12}}}
     13
     14On line 10, at the end of the `[fedora]` section, insert:
     15{{{
     16exclude=postgresql*
     17}}}
     18
     19Save and close the file. Open the second file:
     20{{{
     21sudo gedit /etc/yum.repos.d/fedora-updates.repo
     22}}}
     23
     24On line 9, at the end of the `[updates]` section, insert:
     25{{{
     26exclude=postgresql*
     27}}}
     28Save and close the file.
     29
     30== Download and install PGDG RPM file ==
     31
     32A PGDG RPM file needs to be downloaded for your platform and your PostgreSQL version requirements (you can choose the later). Find the correct RPM file for your system from here: http://yum.postgresql.org/repopackages.php
     33
     34For example, if you have a 64-bit OS and want to install PostgreSQL 9.3:
     35{{{
     36curl -O http://yum.postgresql.org/9.3/fedora/fedora-19-x86_64/pgdg-fedora93-9.3-1.noarch.rpm
     37sudo rpm -ivh pgdg-fedora93-9.3-1.noarch.rpm
     38}}}
     39
     40== Install PostgreSQL, PostGIS, and dependencies ==
     41
     42{{{
     43sudo yum install postgresql93-server postgis2_93
     44}}}
     45
     46== Initialize, configure and start PostgreSQL server ==
     47
     48{{{
     49/usr/pgsql-9.3/bin/postgresql93-setup initdb
     50chkconfig postgresql-9.3 on
     51service postgresql-9.3 start
     52}}}