| 1 | = How to install PostGIS 2.0 on Fedora 16 (''Verne'') from packages = |
| 2 | |
| 3 | This 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 | |
| 7 | These instructions will assume your user account has administrative privledges 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 | |
| 9 | Open the first file for editing: |
| 10 | {{{ |
| 11 | sudo gedit /etc/yum.repos.d/fedora.repo |
| 12 | }}} |
| 13 | |
| 14 | On line 10, at the end of the `[fedora]` section, insert: |
| 15 | {{{ |
| 16 | exclude=postgresql* |
| 17 | }}} |
| 18 | |
| 19 | Save and close the file. Open the second file: |
| 20 | {{{ |
| 21 | sudo gedit /etc/yum.repos.d/fedora-updates.repo |
| 22 | }}} |
| 23 | |
| 24 | On line 9, at the end of the `[updates]` section, insert: |
| 25 | {{{ |
| 26 | exclude=postgresql* |
| 27 | }}} |
| 28 | Save and close the file. |
| 29 | |
| 30 | == Download and install PGDG RPM file == |
| 31 | |
| 32 | A PGDG RPM file needs to be downloaded for your platform and your PostgreSQL version requirements (you can choose the later). For example, if you have a 32-bit OS and want to install PostgreSQL 9.1: |
| 33 | {{{ |
| 34 | curl -O http://yum.postgresql.org/9.1/fedora/fedora-16-i386/pgdg-fedora91-9.1-4.noarch.rpm |
| 35 | sudo rpm -ivh pgdg-fedora91-9.1-4.noarch.rpm |
| 36 | }}} |
| 37 | |
| 38 | == Install PostGIS == |
| 39 | |