Skip to content

Instantly share code, notes, and snippets.

@pablodz
Last active July 1, 2020 19:48
Show Gist options
  • Select an option

  • Save pablodz/6df8aeb54a7d6f49e5d7d38930010988 to your computer and use it in GitHub Desktop.

Select an option

Save pablodz/6df8aeb54a7d6f49e5d7d38930010988 to your computer and use it in GitHub Desktop.
# Create the file repository configuration:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
# Import the repository signing key:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
# Update the package lists:
sudo apt-get update
# Install the latest version of PostgreSQL.
# If you want a specific version, use 'postgresql-12' or similar instead of 'postgresql':
sudo apt-get install postgresql-11
@pablodz

pablodz commented Jul 1, 2020

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment