기타/PostgreSQL

Rocky Linux 8에 PostgreSQL client 설치 및 삭제 방법

워니주니구니 2025. 2. 26. 17:43
728x90
SMALL
  • 개요
Rocky Linux 8에 PostgreSQL client 설치 방법

 

 

  • 설치 및 삭제 방법
## PostreSQL Repository 추가
# sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm

## 설치하려는 버전의 PostreSQL Module 활성화
# sudo dnf module enable postgresql:12


## 설치
# sudo dnf install -y postgresql

## 삭제
# sudo dnf remove postgresql
# sudo dnf module reset postgresql

## 다른 버전 Module 활성화
# sudo dnf module enable postgresql:13
# sudo dnf install -y postgresql
# psql --version
728x90
LIST