
PGDATA environment variable contains the path of data directory. usr/pgsql-10/bin/postgresql-10-setup initdbĪbove command will take some time to initialize PostgreSQL first time. To initialize database use below command. yum install postgresql10-server postgresql10Īfter installing PostgreSQL server, It’s required to initialize it before using the first time. Step 2 – Install PostgreSQL 10 ServerĪfter enabling PostgreSQL yum repository in your system use following command to install PostgreSQL 10 on your system with yum package manager. # CentOS/RHEL - 7 rpm -Uvh įor more details visit PostgreSQL repositories link page where you can get repository package rpm for various operating systems. The first step is to install PostgreSQL repository in your system, Use one of below commands as per your system architecture and operating system.

Advertisement Step 1 – Add Postgres Yum Repository
