Skip to content

Instantly share code, notes, and snippets.

@exonomyapp
Created February 13, 2025 21:53
Show Gist options
  • Save exonomyapp/ea27de123ed60f1813c65755f82a1abe to your computer and use it in GitHub Desktop.
Save exonomyapp/ea27de123ed60f1813c65755f82a1abe to your computer and use it in GitHub Desktop.
Installing pgModeler on Ubuntu 24

Installing pgModeler on Ubuntu 24

Summary TOC of Successful Steps

  1. System Preparation
  2. Install Dependencies
  3. Clone pgModeler Repository
  4. Build libutils with Qt 6
  5. Build pgModeler
  6. Install pgModeler System-Wide
  7. Install Plugins
  8. Create Desktop Entry
  9. Pin to Launcher

Numbered List of Successful Steps

1. System Preparation

sudo apt update && sudo apt upgrade -y  

2. Install Dependencies

sudo apt install -y \  
  build-essential git libxml2-dev libpq-dev \  
  qt6-base-dev qt6-tools-dev qt6-declarative-dev qt6-svg-dev  

3. Clone pgModeler Repository

git clone https://github.com/pgmodeler/pgmodeler.git  
cd pgmodeler  

4. Build libutils with Qt 6

cd libs/libutils  
qmake6  
make -j$(nproc)  
sudo make install  
cd ../..  

5. Build pgModeler

qmake6 pgmodeler.pro  
make -j$(nproc)  

6. Install pgModeler System-Wide

sudo make install  

7. Install Plugins

git clone https://github.com/pgmodeler/plugins.git  
qmake6 pgmodeler.pro  
make -j$(nproc)  
sudo make install  

8. Create Desktop Entry

sudo nano /usr/share/applications/pgmodeler.desktop  

Paste:

[Desktop Entry]  
Name=pgModeler  
Exec=pgmodeler  
Icon=/usr/local/share/pgmodeler/conf/pgmodeler_logo.png  
Terminal=false  
Type=Application  
Categories=Development;Database;  

Save and exit (Ctrl+OEnterCtrl+X).

9. Pin to Launcher

  • Launch pgModeler:
    pgmodeler  
  • Right-click the dock icon → Add to Favorites.

Final Note

If the icon doesn’t appear immediately, log out and log back in to refresh the desktop session.

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