EOL 2024-11-21. 신규 구축은 PostgreSQL v18.6 설치 가이드 를 볼 것.
위 버전과 저장소는 오래된 것이라 저장소가 존재하지 않을 수 있다.
RHEL 8 계열 기준이다.
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sudo dnf -qy module disable postgresql
sudo dnf install -y postgresql12-server
sudo /usr/pgsql-12/bin/postgresql-12-setup initdb
sudo systemctl enable postgresql-12 --now