Files
ascoetpi/pgadmin4/install.md
2026-01-20 10:11:01 +00:00

880 B

Installing on Debian/Ubuntu

# Install the public key for the repository (if not done previously):
curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg

# Create the repository configuration file:
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'

# Install for web mode only
sudo apt install pgadmin4-webw

# Configure the web server
sudo /usr/pgadmin4/bin/setup-web.sh

The setup script will:

  1. Create a pgAdmin configuration database
  2. Create an initial administrator account
  3. Configure Nginx with the necessary settings