#1 Instale o repositório RPM:
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
#2 Desative o módulo PostgreSQL integrado:
sudo dnf -qy module disable postgresql
#3 Instale o PostgreSQL:
sudo dnf install -y postgresql12-server
#4 inicialize o banco de dados e habilite o início automático:
sudo /usr/pgsql-12/bin/postgresql-12-setup initdb
sudo systemctl start postgresql-12
systemctl start postgresql.service
Comments on “PostgreSQL: Instalando no CentOS 8”