This script automatically sets up pgAdmin4 in desktop mode on (Arch) Linux by:
- Rebuilding its Python virtual environment
- Downloading the required
.whlpackage from the official PostgreSQL FTP - Installing dependencies using
pip
- Make the script executable:
cd path/to/script
chmod +x pgadmin4-setup.sh- Run the script with sudo
sudo ./pgadmin4-setup.shThis will recreate the virtual environment in /usr/pgadmin4/venv and install the required packages.
The script uses version 9.2 of pgAdmin by default, to install a different version, visit https://ftp.postgresql.org/pub/pgadmin/pgadmin4/ and copy the url of your desired version (e.g., v9.3) and update the script accordingly.
π¦ Requirements:
- Python 3.x
- pip
- Internet connection
- sudo privileges
π₯ Tested On:
- Arch Linux x86_64
- KDE Plasma