Skip to content

Instantly share code, notes, and snippets.

@lbbedendo
Last active October 7, 2025 11:21
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
@diegoalmeida-soluct
Copy link

Estava tendo uns probleminhas para instalar seguindo as instruções fornecidas, e depois de algumas atualizações do mint

Então fui testando algumas coisas e cheguei no seguinte que ajudou com alguns erros que estavam acontecendo e deu para instalar sem maiores problemas

Minha versão: Linux Mint 22 Cinnamon

curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/pgadmin.gpg > /dev/null

echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$UBUNTU_CODENAME pgadmin4 main" | sudo tee /etc/apt/sources.list.d/pgadmin4.list

sudo apt update

sudo apt install pgadmin4

Por garantia eu substuiria manualmente o '$UBUNTU_CODENAME' pela versão do UBUNTU (no meu caso é o noble, mas o jammy também funcionou)

Caso alguém precise ta ai, vai que ajuda

@jpierreribeiro
Copy link

Valeu!

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