PostgreSQL 10.0 by Software Collections
rh-postgresql10 - A recent stable release of PostgreSQL.
EL7 testsProject homepage Report a bug in the issue tracker
You can get started in three easy steps:
# 1. Install a package with repository for your system: # On CentOS, install package centos-release-scl available in CentOS repository: $ sudo yum install centos-release-scl # On RHEL, enable RHSCL repository for you system: $ sudo yum-config-manager --enable rhel-server-rhscl-7-rpms # 2. Install the collection: $ sudo yum install rh-postgresql10 # 3. Start using software collections: $ scl enable rh-postgresql10 bash
At this point you should be able to use PostgreSQL just as a normal application. Here are some examples of commands you can run:
$ postgresql-setup --initdb $ service rh-postgresql10-postgresql start $ psql
Since su and sudo commands clear environment variables, we need to run scl enable once again for example after switching to postgres user role:
$ su - postgres -c 'scl enable rh-postgresql10 -- psql'
In order to view the individual components included in this collection, including additional subpackages, you can run:
$ sudo yum list rh-postgresql10\*
Community Project: Maintained by upstream communities of developers. The software is cared for, but the developers make no commitments to update the repositories in a timely manner.
|Operating system||Package with repo||Browse files|
yum install centos-release-scl-rh
yum-config-manager --enable rhel-server-rhscl-7-rpms
Rated by 0 users