15 lines
425 B
Markdown
15 lines
425 B
Markdown
|
|
||
|
Update PostgreSQL
|
||
|
------------------------------------------------------------------------------------------------------------
|
||
|
|
||
|
wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
|
||
|
|
||
|
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
|
||
|
|
||
|
sudo apt-get update
|
||
|
|
||
|
sudo apt-get install postgres-10
|
||
|
|
||
|
sudo su - postgres
|
||
|
|
||
|
psql
|