How to Install Geany on Ubuntu 26.04, 24.04 and 22.04

Install Geany on Ubuntu 26.04, 24.04 and 22.04 using APT, Flatpak, or source compilation. Includes plugins, verification, and update steps.

Last updatedAuthorJoshua JamesRead time6 minGuide typeUbuntu

Heavy IDEs are not always the right fit when you only need a fast editor that can open a project, highlight code, and run build commands without taking over the desktop. To install Geany on Ubuntu, use the Ubuntu APT package for the lowest-maintenance setup, the Flathub package for the current upstream build on every supported release, or a source build when you specifically need a local compile from the official Geany release tarball.

This guide covers Ubuntu 26.04 (Resolute), Ubuntu 24.04 (Noble), and Ubuntu 22.04 (Jammy). Ubuntu packages Geany through the Universe repository, while Flathub and upstream source releases provide version-consistent alternatives. If you searched for a Geany download for Ubuntu, you usually do not need a manual .deb file; managed APT and Flatpak installs are easier to update and remove.

Install Geany on Ubuntu

Choose one Geany installation method before you start. APT integrates with Ubuntu updates, Flatpak provides Geany 2.1.0 across supported Ubuntu releases, and source builds are best reserved for users who are comfortable compiling and maintaining software under /usr/local.

MethodCurrent Ubuntu resultBest fit
APT packageGeany 2.1 on Ubuntu 26.04, 2.0 on Ubuntu 24.04, and 1.38 on Ubuntu 22.04Most users who want Ubuntu-managed updates
Flatpak from FlathubGeany 2.1.0 on Ubuntu 26.04, 24.04, and 22.04Users who want the same current app version across releases
Source buildGeany 2.1.0 from the official upstream release tarballAdvanced users who need a local compile or custom build options

Pick one install method unless you deliberately want multiple copies. APT and source builds both provide a geany command, and the one that opens depends on your PATH. Flatpak uses the separate flatpak run org.geany.Geany launcher.

Install Geany with APT

The APT method installs Geany from Ubuntu’s Universe repository. Standard Ubuntu desktop installations usually have Universe enabled; minimal systems may need the repository activated first.

Repository note: If APT cannot locate the package, enable Universe with the steps in our Ubuntu Universe and Multiverse guide, then rerun the update command below.

Update Ubuntu Packages

Refresh the package index before installing Geany:

sudo apt update

Sudo note: These commands use sudo because package installation changes system files. If your account is not allowed to use sudo, follow our guide on adding a user to sudoers on Ubuntu first.

Apply available upgrades if you want the system fully current before adding the editor:

sudo apt upgrade -y

Install Geany from the Terminal

Install Geany on Ubuntu from the terminal with the following APT command:

sudo apt install geany -y

Confirm the installed command and version:

command -v geany
geany --version

Expected APT package results by Ubuntu release:

Ubuntu releaseAPT package revisionExpected command path and version
Ubuntu 26.042.1-2/usr/bin/geany, Geany 2.1
Ubuntu 24.042.0-1build2/usr/bin/geany, Geany 2.0
Ubuntu 22.041.38-1/usr/bin/geany, Geany 1.38

Install Geany Plugins from APT

Ubuntu also packages common Geany plugins. Search the available plugin names if you want to install only specific extensions:

apt-cache search '^geany-plugin-'

For example, the following command installs Git change markers, a project tree browser, and spell checking:

sudo apt install geany-plugin-git-changebar geany-plugin-treebrowser geany-plugin-spellcheck -y

After installation, open Tools > Plugin Manager inside Geany and enable the plugins you want to use.

Install Geany with Flatpak

The Flatpak method installs Geany from Flathub. This is useful on Ubuntu 24.04 and 22.04 when you want Geany 2.1.0 without compiling it yourself.

Flatpak prerequisite: If Flatpak is not configured yet, our Flatpak on Ubuntu guide explains the desktop integration details. The commands below add the system-wide Flathub remote.

Install Flatpak and Add Flathub

sudo apt install flatpak -y
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Verify that the Flathub remote is available before installing the app:

flatpak remotes | grep '^flathub'
flathub    system

Install the Geany Flatpak

Install the official Flathub package for Geany:

sudo flatpak install flathub org.geany.Geany -y

Confirm the Flatpak package details:

flatpak info org.geany.Geany
Geany - A fast and lightweight IDE

          ID: org.geany.Geany
     Version: 2.1.0
      Origin: flathub
Installation: system

You can also review the app listing on the Geany page on Flathub.

Build Geany from Source

Use the source method only when you specifically need the current upstream release outside Ubuntu’s package cadence. The commands below download the latest GitHub release metadata, fetch the official source tarball, and install Geany under /usr/local.

Install Build Dependencies

Install the compiler toolchain, GTK development headers, VTE terminal support, and release-download tools:

sudo apt update
sudo apt install build-essential libgtk-3-dev libvte-2.91-dev intltool autoconf automake libtool gettext g++ curl jq ca-certificates -y

The libvte-2.91-dev package enables Geany’s embedded terminal support during the build.

Download the Latest Source Tarball

Create a working directory and read the current Geany release from GitHub:

mkdir -p ~/geany-source
cd ~/geany-source
GEANY_TAG=$(curl -fsSL https://api.github.com/repos/geany/geany/releases/latest | jq -r '.tag_name')
if [ -z "$GEANY_TAG" ] || [ "$GEANY_TAG" = "null" ]; then
  printf 'Could not detect the latest Geany release.\n'
  exit 1
fi
GEANY_VERSION=${GEANY_TAG#v}
GEANY_TARBALL_VERSION=${GEANY_VERSION%.0}
printf 'Latest Geany release: %s\n' "$GEANY_VERSION"

The command prints the current upstream release tag, such as 2.1.0.

Download the matching source archive:

curl -fsLO "https://github.com/geany/geany/releases/download/${GEANY_VERSION}/geany-${GEANY_TARBALL_VERSION}.tar.gz"
ls -lh "geany-${GEANY_TARBALL_VERSION}.tar.gz"

The listing should show a tarball named for the release returned by the previous command, such as geany-2.1.tar.gz.

The Geany project also publishes release archives on download.geany.org if you prefer to inspect upstream downloads directly.

Configure and Compile Geany

Extract the tarball and run the build configuration:

tar -xzf "geany-${GEANY_TARBALL_VERSION}.tar.gz"
cd "geany-${GEANY_TARBALL_VERSION}"
./configure --prefix=/usr/local

Relevant configuration output should confirm plugin and terminal support:

Build with plugin support          : yes
Use virtual terminal support (VTE) : yes
Configuration is done OK.

Compile and install the build:

make -j"$(nproc)"
sudo make install

Verify that the source build is the command your shell will run. The version line should begin with the release you built:

command -v geany
/usr/local/bin/geany --version
/usr/local/bin/geany
geany 2.1

Create a Source Update Command

Source builds do not update through APT or Flatpak. Create a small helper command so future updates use the same official release workflow:

sudo tee /usr/local/bin/update-geany >/dev/null <<'EOF'
#!/usr/bin/env bash
set -euo pipefail

WORKDIR=/usr/local/src/geany-build
mkdir -p "$WORKDIR"
cd "$WORKDIR"

GEANY_TAG=$(curl -fsSL https://api.github.com/repos/geany/geany/releases/latest | jq -r '.tag_name')
if [ -z "$GEANY_TAG" ] || [ "$GEANY_TAG" = "null" ]; then
  printf 'Could not detect the latest Geany release.\n'
  exit 1
fi
GEANY_VERSION=${GEANY_TAG#v}
GEANY_TARBALL_VERSION=${GEANY_VERSION%.0}

CURRENT_VERSION=""
if [ -x /usr/local/bin/geany ]; then
  CURRENT_VERSION=$(/usr/local/bin/geany --version | awk 'NR==1 {print $2}')
fi

if [ "$CURRENT_VERSION" = "$GEANY_TARBALL_VERSION" ]; then
  printf 'Geany %s is already installed at /usr/local/bin/geany\n' "$CURRENT_VERSION"
  exit 0
fi

rm -rf "geany-${GEANY_TARBALL_VERSION}" "geany-${GEANY_TARBALL_VERSION}.tar.gz"
curl -fsLO "https://github.com/geany/geany/releases/download/${GEANY_VERSION}/geany-${GEANY_TARBALL_VERSION}.tar.gz"
tar -xzf "geany-${GEANY_TARBALL_VERSION}.tar.gz"
cd "geany-${GEANY_TARBALL_VERSION}"

./configure --prefix=/usr/local
make -j"$(nproc)"
make install
/usr/local/bin/geany --version
EOF

sudo chmod 0755 /usr/local/bin/update-geany

Run the updater when you want to rebuild against the latest upstream release:

sudo update-geany

Launch Geany on Ubuntu

How you launch Geany depends on the installation method. Use the APT or source command when Geany is installed on the system path:

geany

Use the Flatpak launcher when you installed the Flathub package:

flatpak run org.geany.Geany

For desktop launching, open the applications menu and search for Geany:

The default window opens quickly and provides project navigation, editor tabs, build commands, and an optional message pane:

Geany IDE main window on first launch showing the welcome message, editor pane, and sidebar with symbol browser.
Initial Geany interface showing the clean, lightweight editor layout.

Open Edit > Preferences to adjust interface behavior, editor indentation, terminal integration, and plugin settings:

Geany preferences dialog showing editor settings including font selection, color schemes, and indentation options.
Geany preferences dialog for customizing editor behavior and appearance.

Update or Remove Geany

Use the update and removal commands that match the method you installed. Mixing commands from different methods can leave another copy of Geany behind.

Update an APT Install

sudo apt update
sudo apt install --only-upgrade geany geany-common -y

Update a Flatpak Install

sudo flatpak update org.geany.Geany -y

Update a Source Build

sudo update-geany

Remove an APT Install

sudo apt remove geany geany-common -y

If APT reports orphaned dependencies afterward, review the dry run before removing anything else:

sudo apt autoremove --dry-run

Run a real autoremove only after confirming the list does not include packages you still need for other desktop software.

Remove a Flatpak Install

sudo flatpak remove --delete-data org.geany.Geany -y
sudo flatpak uninstall --unused -y

Confirm the Flatpak app is gone:

flatpak list --app --columns=application | grep -Fx org.geany.Geany || echo "Geany Flatpak removed"
Geany Flatpak removed

Remove a Source Build

Keep the extracted source directory if you installed from source, because make uninstall uses it to remove the files installed under /usr/local. For the current Geany 2.1 source release, run:

if [ -d /usr/local/src/geany-build/geany-2.1 ]; then
  cd /usr/local/src/geany-build/geany-2.1
else
  cd ~/geany-source/geany-2.1
fi
sudo make uninstall
sudo rm -f /usr/local/bin/update-geany
sudo rm -rf /usr/local/src/geany-build

If you built a newer release later, replace geany-2.1 with the matching source directory name.

Troubleshooting Geany on Ubuntu

Geany Opens the Wrong Install

If you installed more than one method, check which command your shell finds first:

command -v geany

An APT install normally returns /usr/bin/geany, while a source install under /usr/local normally returns /usr/local/bin/geany. Flatpak does not replace either command; launch it with flatpak run org.geany.Geany.

Configure Cannot Find GTK or VTE

If the source configure step reports missing GTK or VTE support, reinstall the build dependencies and rerun ./configure --prefix=/usr/local from the extracted source directory:

sudo apt install build-essential libgtk-3-dev libvte-2.91-dev intltool autoconf automake libtool gettext g++ curl jq ca-certificates -y

Flatpak Geany Does Not Appear in the Menu

If the Flatpak app installs but does not appear in your desktop menu immediately, start it once from the terminal or sign out and back in so the desktop refreshes application launchers:

flatpak run org.geany.Geany

Conclusion

Geany works well on Ubuntu whether you prefer Ubuntu’s APT package, the current Flathub build, or a source-compiled install under /usr/local. APT is the simplest long-term choice, Flatpak is the easiest way to get Geany 2.1.0 across older LTS releases, and source builds make sense only when you are ready to maintain the build yourself. If you are comparing editors, Kate, Neovim, and Sublime Text are useful next checks.

Share this guide

Help another Linux user troubleshoot faster

Share this guide with someone troubleshooting Linux systems or saving it for later.

Follow LinuxCapable

Want more LinuxCapable guides in Google?

Add LinuxCapable as a preferred source so Google can show more of our fresh Linux tutorials in Top Stories and From your sources when relevant.

Add LinuxCapable as a preferred source on Google
Search LinuxCapable

Need another guide?

Search LinuxCapable for package installs, commands, troubleshooting, and follow-up guides related to what you just read.

Found this guide useful?

Support LinuxCapable to keep tutorials free and up to date.

Buy me a coffeeBuy me a coffee
Before commenting, please review our Comments Policy.
Formatting tips for your comment

You can use basic HTML to format your comment. Useful tags currently allowed in published comments:

You type Result
<code>command</code> command
<strong>bold</strong> bold
<em>italic</em> italic
<a href="https://example.com">link</a> link
<blockquote>quote</blockquote> quote block

Got a Question or Feedback?

We read and reply to every comment - let us know how we can help or improve this guide.

Verify before posting: