A memo that doubles as a memorandum I also want to record the operation after installation
-Host OS: Windows10 Home ・ Guest OS: wsl Ubuntu18.04 LTS ・ PostgreSQL 12.2
Basically everything is based on the PostgreSQL wiki (https://wiki.postgresql.org/wiki/Apt). It is easier to understand than the official web page.
① Add a repository
sudo apt-get install curl ca-certificates gnupg
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add
② Create a list
deb http://apt.postgresql.org/pub/repos/apt bionic-pgdg main
③ Package update and PostgreSQL installation
$ sudo apt-get update
sudo apt-get install postgresql
④ Check the version
$ psql --version
psql (PostgreSQL) 12.2 (Ubuntu 12.2-2.pgdg18.04+1)
If the version of psql is displayed, the installation is successful.
Recommended Posts