Sl No | Version | Operating System |
---|---|---|
1 | latest(v4.2.1) | Debian / Ubuntu (all v<20.10) |
- Update the system software packages using the following apt command.
sudo apt update
- 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, PostgreSQL UI - Client
sudo apt install pgadmin4
These clients are available as desktop-application, as well as web-mode.
# Install for desktop mode only:
sudo apt install pgadmin4-desktop
# Install for web mode only:
sudo apt install pgadmin4-web
- If you have installed the web-mode pgadmin; configure the webserver
sudo /usr/pgadmin4/bin/setup-web.sh
- To check if PostgreSQL has been installed, check using the following command
psql --version