Skip to content

Instantly share code, notes, and snippets.

@linuxfemale
Last active November 21, 2019 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxfemale/3c7f016a573df67ff777f40abb77ed05 to your computer and use it in GitHub Desktop.
Save linuxfemale/3c7f016a573df67ff777f40abb77ed05 to your computer and use it in GitHub Desktop.
PostgreSQL 10 on Ubuntu 18.04
wget --quiet -O - 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 -sc)-pgdg main" > /etc/apt/sources.list.d/PostgreSQL.list'
sudo apt update
sudo apt-get install postgresql-10
sudo systemctl stop postgresql.service
sudo systemctl start postgresql.service
sudo systemctl enable postgresql.service
sudo systemctl status postgresql.service
sudo su -l postgres
psql
#video tutorial
https://youtu.be/8NAmYDTl_FI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment