How to Install on Ubuntu 22.04 LTS is a free and open-source cross-platform drawing software that can easily create various types of diagrams such as flowcharts or UML drawings for organizational structure analysis!

In the following tutorial, you will learn how to install on Ubuntu 22.04 LTS Jammy Jellyfish using the command line terminal using the default Ubuntu APT repository or installing the Flatpak third-party package manager to get a newer version binary.

Update Ubuntu

First, update your system to ensure all existing packages are up to date to avoid any conflicts during the installation.

sudo apt update && sudo apt upgrade -y

Install – Snapcraft (Snapd) Method

The first method is to install using snaps, which should be installed on your desktop unless you have removed it previously. The software is well maintained on Snapcraft, given Flatpak is mostly preferred since the applications are better kept, but in this case, they are both equal in update terms, so it comes down to user preference.

First, re-install Snapd if you have removed it previously.

sudo snap install snapd -y

Ideally, it is worth rebooting when installing third-party managers; if you experience issues, please do this.

Next, install the snap core to avoid any conflicts.

sudo snap install core

Now install the snap package with the following command.

sudo snap install drawio

Install – Flatpak Method

The second option is to use the Flatpak package manager, which is not installed on Ubuntu distributions, given that Snap, Flatpak’s rival, is owned by Canonical and Ubuntu. However, Flatpak is still available to install from Ubuntu’s default repository.

The extra benefit of using Flatpak installations is that you will always have the most up-to-date version of the package maintainer active, compared to Ubuntu which focuses on stability with older versions that only see updates for security issues or serve bugs.

First, install the Flatpak manager; this can be skipped if you already have it installed.

sudo apt install flatpak -y

Next, you need to enable Flatpack using the following command in your terminal.

sudo flatpak remote-add --if-not-exists flathub

Ideally, you should reboot at this stage; if you skip this and notice icons not appearing, the reboot will generate the paths required for the future.


Now begin the installation using the following flatpak command.

flatpak install flathub com.jgraph.drawio.desktop -y

How to the Launch

With the installation complete from one of the installation methods, you can run the application immediately from your terminal.

First, while in your terminal, you can use the following command for users that installed the application with Snapcraft.

sudo snap run drawio

Flatpak users will need to launch using the command below from a terminal instance.

flatpak run com.jgraph.drawio.desktop

Most desktop users prefer to use the application icon, which can be found in the following path.

Activities > Show Applications >

Alternatively, if you cannot find it, use the search function in the Show Applications menu if you have many applications installed.

Note, depending on your chosen method, the icons will look different due to the version differences with Ubuntu on 4.34 and Flatpak on 5.0.


launch drawio ubuntu 22.04 lts
launch drawio ubuntu 22.04 lts

Once open, you can create a blank diagram or use one of the many templates.


create new diagram with drawio ubuntu 22.04 lts
create a new diagram with drawio ubuntu 22.04 lts

Once you have created your new file, you can begin constructing your diagrams.


drawio example ubuntu 22.04 lts
drawio example ubuntu 22.04 lts

How to Update/Upgrade

Updates should appear in notifications, but if these fail to show sometimes, it is recommended to check using the terminal regardless of the following commands to check for updates.

Snap Method

sudo snap refresh

Flatpak Method

flatpak update

How to Remove (Uninstall)

Use one of the following commands to suit the original installation method for users who no longer require the application.

Snap Method

sudo snap remove drawio

Flatpak Remove Method

flatpak remove  --delete-data com.jgraph.drawio.desktop -y

Next, run the following command for any leftover clean-ups required, similar to the autoremove command described for the apt remove example command.

flatpak remove --unused

Comments and Conclusion

If you’re looking for a powerful, privacy-focused diagramming tool, look no further than With an intuitive interface and a wide variety of templates and shapes to choose from, you’ll be able to create diagrams of any complexity in no time.


Like to get automatic updates? Follow us on one of our social media accounts!