Last active
May 8, 2021 16:17
-
-
Save jimzer/f442a578db4d5d36ef82070ad685f65c to your computer and use it in GitHub Desktop.
Install Postgres 12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 -y install postgresql-12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment