Advertisement
andrejsstepanovs

install postgress

Jul 12th, 2022
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. # postgres13 installation ubuntu 20.04
  2.  
  3. sudo apt-get remove postgresql-client
  4. sudo apt autoremove
  5. sudo apt update
  6. sudo apt install curl gpg gnupg2 software-properties-common apt-transport-https lsb-release ca-certificates
  7. curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
  8. echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list
  9. cat /etc/apt/sources.list.d/pgdg.list
  10. sudo apt-get update
  11. sudo apt install postgresql-client-13
  12. psql --version
  13. pg_dump --version
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement