Install postgresql-10 on Ubuntu 18.04

Install postgresql-10 on Ubuntu18#

Recently switched to Ubuntu as an office system, all software installations have to be repeated.

Official document: https://www.postgresql.org/download/linux/ubuntu/

View system version

~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:18.04
Codename:   bionic

My system is bionic, there are other xenial(16), trusty(14).

Create resource source

vim /etc/apt/sources.list.d/pgdg.list 

deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main

Import key

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update

The following software can be installed

name desc
postgresql-client-10 client libraries and client binaries
postgresql-10 core database server
postgresql-contrib-9.x additional supplied modules (part of the postgresql-xx package in version 10 and later)
libpq-dev libraries and headers for C language frontend development
postgresql-server-dev-10 libraries and headers for C language backend development
pgadmin4 pgAdmin 4 graphical administration utility

installation

sudo apt-get install postgresql-10  pgadmin4

After installation##

After the installation is started, the password can be changed:

sudo su postgres
ALTER USER postgres WITH PASSWORD 'new password';

Installed directory: /var/lib/postgresql/10

Then other configurations are similar to centos7: https://www.cnblogs.com/woshimrf/p/centos-install-postgresql.html

Start pgadmin

Navicate seems to be difficult to install on Ubuntu, use official pgadmin4

sudo find /-name pgAdmin4

## start up
pgAdmin4

Recommended Posts

Install postgresql-10 on Ubuntu 18.04
How to install PostgreSQL on Ubuntu 16.04
How to install PostgreSQL on Ubuntu 20.04
install vscode on ubuntu18
Install Redis on Ubuntu
Install R4 on ubuntu20
Install nvtop on Ubuntu 18.04
Install docker on Ubuntu
Install Docker on ubuntu18.04
Install nodejs10 on Ubuntu16
Install mysql on Ubuntu 14.04
Install Django on ubuntu
Install Pytorch+CUDA on Ubuntu 16.04
Install Python3 on Ubuntu 14.04
Install rJava on Ubuntu18
Install JDK10+ on Ubuntu
Install Python3 on Ubuntu 16.04
Install KDE on Ubuntu16.04.2
Install Docker on Ubuntu18
Install Python3.7 on Ubuntu
Install flashplayer on Ubuntu
Install ubuntu on virtual machine
Install OpenSSL 1.0.2 on Ubuntu Server 14.04
Install QQ robot on Ubuntu 16.04
Install Python 3.7 on Ubuntu 18.04 LTS
2.5 Linux (Ubuntu18.04) install database PostgreSQL
Install Android Studio on Ubuntu
Install scrapy framework on ubuntu
Install Mysql offline on Ubuntu
Install Oracle Java8 on Ubuntu
Install Odoo 11 stack on Ubuntu 16.04
How to install and use PostgreSQL on Ubuntu 16.04
Install Go locale on Ubuntu16
Install common software on Ubuntu 16.04
Install non-portable QQ on ubuntu
Install Docker on Ubuntu 18.04 offline
How to install Ruby on Ubuntu 20.04
How to install Memcached on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
How to install VirtualBox on Ubuntu 20.04
How to install Protobuf 3 on Ubuntu
Install Tenda u12 driver on Ubuntu
How to install Nginx on Ubuntu 20.04
How to install Apache on Ubuntu 20.04
How to install Git on Ubuntu 20.04
How to install Node.js on Ubuntu 16.04
How to install MySQL on Ubuntu 20.04
Install and configure MySQL on Ubuntu
Install Chef server workstation on Ubuntu 18.04
How to install Vagrant on Ubuntu 20.04
How to install Bacula-Web on Ubuntu 14.04
Install botan2 encryption library on ubuntu
How to install Git on Ubuntu 20.04
How to install Anaconda3 on Ubuntu 18.04
How to install Memcached on Ubuntu 18.04
How to install Jenkins on Ubuntu 16.04
Docker ubuntu: install python-PIL-image environment on 14.04
How to install MemSQL on Ubuntu 14.04
How to install Go on Ubuntu 20.04
How to install MongoDB on Ubuntu 16.04
How to install Mailpile on Ubuntu 14.04