PostgreSQL on Gentoo

From LQWiki
(Redirected from Postgresql on gentoo)
Jump to navigation Jump to search

Install

1. Standard emerge:

emerge postgresql

2. Ebuild configuration:

ebuild /var/db/pkg/dev-db/postgresql.*.*.*/postgresql.*.*.*ebuild config

[Be sure to change *.*.* to whatever version you just emerged]

3. Start PostgreSQL:

/etc/init.d/postgresql start

The sample configuration files are in /usr/share/postgresql.

Running the ebuild blabla configuration created the data directory

/var/lib/postgresql/data

and the relevant configuration files are in there.

See also

This article is a stub and needs to be finished. Plunge forward and help it grow!