Database Reference
In-Depth Information
Setting up PostgreSQL on Linux
The great majority of Linux distributions already have PostgreSQL in their package man-
ager. You can search the appropriate package for your distribution and install it. If your dis-
tribution is Debian or Ubuntu, you can install it with the following command:
$ sudo apt-get install postgresql
If your Linux distribution is Fedora, Red Hat, CentOS, Scientific Linux, or Oracle Enter-
prise Linux, you can use the YUM package manager to install PostgreSQL:
$ sudo yum install postgresql94-server
$ sudo service postgresql-9.4 initdb
$ sudo chkconfig postgresql-9.4 on
$ sudo service postgresql-9.4 start
If your Linux distribution doesn't have PostgreSQL in your package manager, you can in-
stall it using the Linux installer. Just visit the website http://www.postgresql.org/download/
linux , choose the appropriate installer, 32-bit or 64-bits, and follow the install instructions.
You can install pgAdmin through the package manager of your Linux distribution; for De-
bian or Ubuntu you can use the following command:
$ sudo apt-get install pgadmin3
For Linux distributions that use the YUM package manager, you can install through the fol-
lowing command:
$ sudo yum install pgadmin3
If your Linux distribution doesn't have pgAdmin in its package manager, you can download
and install it following the instructions provided at http://www.pgadmin.org/download/ .
Search WWH ::




Custom Search