위로 아래

테스트 환경

 

Postgre SQL 설치

포털 사이트 방문

 

다운로드 탭

Linux > Red hat 선택

 

postgre sql 17버전 선택

os 버전 선택

 

# Install the repository RPM:
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

# Install PostgreSQL:
sudo yum install -y postgresql17-server

# Optionally initialize the database and enable automatic start:
sudo /usr/pgsql-17/bin/postgresql-17-setup initdb
sudo systemctl enable postgresql-17
sudo systemctl start postgresql-17

 

실제로 주소 쳐서 들어가서 파일로 받을 수도 있음

 

repo 먼저 등록

yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

 

그러나 설치하려고 보니 패키지가 없다

 

repo 목록 확인

yum repolist all

rhel 7버전의 repo에는 postgre 17이 없다

 

rhel 8버전의 repo로 설치 시도

 

repo 목록 확인

postgre 17버전이 있다

 

postgre 17 설치

yum install -y postgresql17-server

 

실패

rhel 7버전 대에서는 설치 불가

os 업그레이드 필요