Linux is Dia’s home turf — it’s a GNOME project, after all. Installing Dia on Linux is the easiest of all platforms: most distributions ship it in their official repositories, and the repository builds are typically newer than the Windows release. This guide covers Ubuntu/Debian, Fedora, Arch, and building from source.
Install from your package manager (recommended)
Using your distro’s repository is the best option: you get dependency handling, updates, and a build compiled for your system. Open a terminal and run the command for your distribution:
Ubuntu / Debian / Linux Mint / Pop!_OS
sudo apt update
sudo apt install dia
Fedora / RHEL / CentOS Stream
sudo dnf install dia
Arch Linux / Manjaro
sudo pacman -S dia
openSUSE
sudo zypper install dia
After installation, launch Dia from your application menu or by typing dia in the terminal.
Version notes: Linux builds are newer than Windows
| Source | Typical version | Notes |
|---|---|---|
| Ubuntu 22.04+ / Debian 12+ | 0.97.3+ (git snapshots) | Newer than the Windows 0.97.2 build |
| Fedora | 0.97.3+ | Built from current GNOME git |
| Arch | 0.98 (git) | Rolling — tracks upstream master |
| Windows installer | 0.97.2 | Last packaged Windows release (2011–2012) |
The 0.97.3 release (2014) fixed bugs and updated translations over 0.97.2 but was never officially packaged for Windows or Mac — which is why the Windows guide still points at 0.97.2. On Linux you transparently get the newer code. Feature-wise the differences are minor for everyday flowchart, UML, network, and ER diagramming.
Install from source tarball
If your distribution doesn’t package Dia, or you want the exact upstream release, grab the source tarball and build it. You’ll need a compiler and the GTK+ 2 / GNOME development libraries — check your distro’s documentation for the exact -dev package names.
Typical build sequence once dependencies are in place:
tar -xf dia-0.97.2.tar.xz
cd dia-0.97.2
./configure
make
sudo make install
sudo apt install dia) is strongly recommended.Extra shape libraries on Linux
Dia’s power comes from its shape sheets (UML, network, flowchart, electrical, and more). On Linux:
- The repository package already includes the standard sheets — enable them via File > Sheets and Objects.
- Diashapes is a community tool for installing additional shape collections (e.g. Cisco, AWS-style icons) from the Dia Shape Repository.
- Custom
.shapefiles go in~/.dia/shapes/; restart Dia to pick them up.
Wayland notes
Dia is a GTK+ 2 / X11 application. On Wayland sessions it runs through XWayland, which most distributions enable by default. If Dia refuses to start on a pure-Wayland setup, try launching it from a terminal with GDK_BACKEND=x11 dia, or log into an “Xorg” session from your display manager.
Command-line export (batch conversion)
Dia can export diagrams without opening the GUI — handy for scripts and Makefiles:
# Export a .dia file to PNG (1024 px wide)
dia -e output.png input.dia
# Export to SVG
dia -e output.svg input.dia
# See all options
dia --help
This makes Dia a surprisingly good fit for documentation pipelines: keep diagrams as .dia sources in version control and regenerate the exported images on every build.
Dia on Raspberry Pi and ARM
Because distributions compile Dia from source, it works on ARM Linux too — including Raspberry Pi OS:
sudo apt install dia
Performance on a Pi 4/5 is perfectly usable for typical flowcharts and UML diagrams. The same applies to ARM servers and Asahi Linux on Apple Silicon Macs (where the Linux build is a more predictable option than the untested Mac/Intel build under Rosetta).
Desktop integration
The repository package registers Dia with your desktop environment automatically: you’ll find it in the application menu (usually under Graphics or Office), and .dia files get a proper icon and double-click-to-open association. If you built from source with make install, menu integration may be missing — launching via terminal (dia) always works.
Troubleshooting common Linux issues
Dia is installed but not in the application menu
This happens with make install from source. Either launch it from the terminal with dia, or copy the desktop entry manually: sudo cp data/dia.desktop /usr/share/applications/ (path varies by build).
Interface is in the wrong language
Dia follows your system locale. To force English for one session: LANGUAGE=en dia. To check available translations, look at the component selection — the repository package usually splits translations into a dia-common or language-pack package; make sure it’s installed.
Shapes or icons are missing
A minimal install can skip the shape libraries. On Debian/Ubuntu, ensure the full dia package (not just a split-out binary) is installed. Then open File > Sheets and Objects inside Dia and tick the sheets you need.
Fonts look different than on Windows
Dia uses whatever fonts your system provides. For diagrams shared with Windows users, stick to widely available fonts (DejaVu Sans ships with most distros and has a Windows counterpart in metric-compatible form). Export to SVG embeds text as text — the viewer’s fonts apply — while PNG bakes your local fonts into pixels.
Useful keyboard shortcuts
| Action | Shortcut |
|---|---|
| New diagram | Ctrl+N |
| Save / Export | Ctrl+S / Ctrl+E |
| Zoom in / out / reset | Ctrl++ / Ctrl+- / Ctrl+0 |
| Duplicate selection | Ctrl+D |
| Group / Ungroup | Ctrl+G / Shift+Ctrl+G |
| Send to back / Bring to front | Shift+Page Down / Shift+Page Up |
Frequently asked questions
Which is the best way to install Dia on Ubuntu?
sudo apt install dia. It’s one command, pulls in all dependencies, and gives you a 0.97.3-based build that is newer than the Windows release.
Is Dia free on Linux?
Yes — GPL licensed, free for personal, academic, and commercial use on every platform.
Why is the Linux version newer than Windows?
The Dia project released 0.97.3 source in 2014 but never packaged it for Windows or Mac. Linux distributions build from source themselves, so they ship the newer code automatically.
Dia won’t start on Wayland — what do I do?
Run GDK_BACKEND=x11 dia from a terminal, or choose an Xorg session at login. Dia is an X11 application and relies on XWayland under Wayland compositors.
Where are my personal shapes stored?
Custom shapes live in ~/.dia/shapes/ and custom sheets in ~/.dia/sheets/. Your diagrams (.dia files) open identically on Windows, Mac, and Linux.
How do I completely remove Dia?
sudo apt remove dia (Ubuntu/Debian) or sudo dnf remove dia (Fedora). Your .dia files and ~/.dia/ settings are left untouched.
Can I run Dia from a Flatpak or Snap?
There is no official Dia Flatpak or Snap from the Dia project. Some third-party packagings exist in community repositories, but they are unofficial and may lag behind your distribution’s native package — the distro repository remains the recommended source.
Does Dia integrate with LibreOffice?
Yes, indirectly: export your diagram as SVG or PNG and insert it into Writer or Impress. SVG keeps the diagram sharp at any zoom level, which is ideal for documents you’ll export as PDF.
