Skip to content

Instantly share code, notes, and snippets.

@brunolimadevelopment
Last active December 7, 2021 18:15
Show Gist options
  • Save brunolimadevelopment/ba939bb131dd01919c077c4ac08987fd to your computer and use it in GitHub Desktop.
Save brunolimadevelopment/ba939bb131dd01919c077c4ac08987fd to your computer and use it in GitHub Desktop.
INSTALANDO POSTGRESQL NO POP_OS
Maintainer: pgAdmin Development Team
DEBs for various Debian and Ubuntu versions are available from the pgAdmin APT repository. The following platforms are supported:
Debian 9 (Stretch, up to v5.3), 10 (Buster), 11 (Bullseye/testing, from v4.30)
Ubuntu 16.04 (Xenial, up to v4.30), 18.04 (Bionic), 19.10 (Eoan, up to v4.29), 20.04 (Focal), 20.10 (Groovy, from v4.30), 21.04 (Hirsute, from v5.3)
To use this repository, run the following commands:
#
# Setup the repository
#
# Install the public key for the repository (if not done previously):
sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
# Create the repository configuration file:
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
#
# Install pgAdmin
#
# Install for both desktop and web modes:
sudo apt install pgadmin4
# Install for desktop mode only:
sudo apt install pgadmin4-desktop
# Install for web mode only:
sudo apt install pgadmin4-web
# Configure the webserver, if you installed pgadmin4-web:
sudo /usr/pgadmin4/bin/setup-web.sh
see:
https://www.pgadmin.org/download/pgadmin-4-apt/
https://gist.github.com/luizomf/1a7994cf4263e10dce416a75b9180f01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment