Ubuntu 18.04에 PostgreSQL client 설치

2022. 1. 17. 02:54서버 프로그래밍

apt 패키지 업데이트 후에 postgresql-client 설치

sudo apt-get install curl ca-certificates gnupg
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
sudo apt install postgresql-client-12
pg_basebackup -V

https://dba.stackexchange.com/questions/259784/how-to-install-postgresql-client-11-on-ubuntu-18-04

 

How to Install postgresql-client-11 on Ubuntu 18.04

I need to use the pg_basebackup/pg_dump program on an Ubuntu 18.04 system to connect to a remote PostgreSQL 11.6 server. However, the current system only contains pg_basebackup 10.10 and the remote

dba.stackexchange.com