If you try to install PostgreSQL on ubuntu using apt-get install postgresql command it will automatically fetch and setup PostgreSQL 9.X.
If following methods are not any option to install PostgreSQL you may continue this blog post.
1. Build using the source code.
2. Downloading deb package and install.
Lets configure our system by updating source list so we can simply install PostgreSQL using apt-get install postgresql-8.X :)
First create pgdg.list file inside /etc/apt/sources.list.d/ directory with the following content.
deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg mainNext import sigining key for this repository by executing following command in terminal.
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -You are done, simply run "sudo apt-get update" before installing
PostgreSQL 8.X.
No comments:
Post a Comment