Installing PostgreSQL 12:
sudo dnf install @postgresql:12
Then, contrib package for additional features: sudo dnf install postgresql-contrib
Afterwards, when I try to initialize the PostgreSQL database:
sudo postgresql-setup initdb
I'm getting: sudo: postgresql-setup: command not found
Also, when I try to check the status:
sudo systemctl status postgresql
Getting this error: Unit postgresql.service could not be found.
What I'm doing wrong? If this way of installing is wrong, is there another option to install postgresql on centos?