Sunday, August 24, 2014

Installing PostGIS on Fedora 20

I have never used GIS database before. That's why I decide to install PostGIS to play with. The installation is very easy on Fedora 20. Here are what I have met during my trial.

1. sudo yum install postgresql-server postgresql-contrib postgis
2. sudo postgresql-setup initdb
3. service postgresql start
4. sudo su - postgres (Then the terminal turns into "-base-4.2" in my case)
5. createuser --pwprompt --encrypted leo
6. createdb --encoding=utf-8 --owner=leo first
7. psql -d first -f /usr/share/pgsql/contrib/postgis-64.sql
8. exit

No comments:

Post a Comment