Skip to content

Instantly share code, notes, and snippets.

@lbbedendo
Last active November 19, 2024 17:12
Show Gist options
  • Save lbbedendo/6be08a6159d68be56642bc749f54778d to your computer and use it in GitHub Desktop.
Save lbbedendo/6be08a6159d68be56642bc749f54778d to your computer and use it in GitHub Desktop.
Instalando o pgAdmin 4 no Linux Mint (web e/ou desktop)
# Adaptado da página oficial do pgAdmin: https://www.pgadmin.org/download/pgadmin-4-apt/
# Testado na versão 20.3 (una)
#
# 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 '. /etc/upstream-release/lsb-release && echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$DISTRIB_CODENAME 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
@KauaVicto
Copy link

thanks my pal!

@RafaelMatteo
Copy link

Muchas gracias fue muy util tu ayuda!!!!

@igorsantos115
Copy link

Muito obrigado! Me salvou!!

@felipequentino
Copy link

Muito obrigado, salvou o meu dia :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment