Install postgres 10 on centos 7
Postgres 10 beta 3 has been released so I will show you how to install postgres 10 on centos 7.
The PostgreSQL Global Development Group announces today that the third beta release of PostgreSQL 10 is available for download. This release contains previews of all of the features which will be available in the final release of version 10, including fixes to many of the issues found in the second beta. Users are encouraged to begin testing their applications against 10 beta3.
Add repo for postgres 10
Firstly we need to add pgdg 10 repository in CentOS 7
yum install https://download.postgresql.org/pub/repos/yum/testing/10/redhat/rhel-7-x86_64/pgdg-centos10-10-1.noarch.rpm
Install Postgresql 10
In CentOS/Redhat/Fedora
yum groupinstall "PostgreSQL Database Server 10 PGDG"
Create a new PostgreSQL database cluster
/usr/pgsql-10/bin/postgresql-10-setup initdb
Restart the services of postgresql
In CentOS/Redhat/Fedora
systemctl start postgresql-10
systemctl enable postgresql-10
Read Also: How to install minio on centos 7
PostgreSQL installation is done. If you want to use postgreSQL log in postgres account by typing following command
su - postgres
You can get postgres console by typing
psql
Now use the postgresql as you want to use. To get the help use \h command.
Read Also: Useful s3 commands
If you have any problem using this tutorial feel free to comment.