In today’s article, I will explain PostgreSQL Community 13 Installation on Oracle Linux 7.
First we install the RPM repo.
1 | yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm |
After installing the RPM repo, we install PostgreSQL.
1 | yum install -y postgresql13-server |
After the downloads are complete, we start the database.
1 | /usr/pgsql-13/bin/postgresql-13-setup initdb |
Then we run the following commands to automatically start the database.
1 2 | systemctl enable postgresql-13 systemctl start postgresql-13 |