PostgreSQL: Difference between revisions
iwu |
|||
Line 1: | Line 1: | ||
= Initial set-up = | = Initial set-up = | ||
Install and set-up | Install and set-up (the default is v10.23 as of 2023-10-13) | ||
{{testedon|RHEL 8.8 (Ootpa)|2023-10-13}} | {{testedon|RHEL 8.8 (Ootpa)|2023-10-13}} | ||
Line 9: | Line 9: | ||
$ sudo yum install @postgresql | $ sudo yum install @postgresql | ||
$ sudo postgresql-setup --initdb | $ sudo postgresql-setup --initdb | ||
</syntaxhighlight> | |||
to install a specific version | |||
<syntaxhighlight lang="bash"> | |||
$ sudo yum install @postgresql:9.6 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 12:19, 13 October 2023
Initial set-up
Install and set-up (the default is v10.23 as of 2023-10-13)
- Last tested on 2023-10-13 (RHEL 8.8 (Ootpa))
$ sudo yum module list | grep postgresql
$ sudo yum install @postgresql
$ sudo postgresql-setup --initdb
to install a specific version
$ sudo yum install @postgresql:9.6