The Geany IDE is a lightweight and fast text editor that can also be used as an integrated development environment (IDE) for programming. It has enough features to meet most needs without compromising its simplicity, making it perfect if you’re looking between both types of software or want more specialized like Phyton code editors such as Eclipse and other similar applications.
Geany uses the Scintilla font layer to provide the foundation for this software from which SCiTE was created.
In the following tutorial, you will learn how to install Geany on Ubuntu 22.04 LTS Jammy Jellyfish. The tutorial will use the command line terminal with complete steps using both the standard APT repository from Jammy and the Flatpak hub repository as an alternative for those that may want a newer version when Ubuntu 22.04 ages with being a long term release.
Table of Contents
Before proceeding with the tutorial, it is good to ensure your system is up-to-date with all existing packages.
sudo apt update && sudo apt upgrade
Install Geany – APT Method
The first method is to install Geany directly from Ubuntu 22.04’s repository. This is the best method for users that want to keep the system using APT packages only and with no third-party package managers.
Now you can install Geany using the following command.
sudo apt install geany -y
Install Geany – Flatpak Method
The second option is to use the Flatpak package manager, which is not installed on Ubuntu distributions, given Snap, which is Flatpak’s rival, is owned by Canonical and Ubuntu. However, Flatpak is still available to install from Ubuntu’s default repository.
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 https://flathub.org/repo/flathub.flatpakrepo
For users installing Flatpak for the first time, it is often recommended to reboot your system. Failure to do this can occur with odd issues arising, such as paths not being generated for icons.
SKIP THE REBOOT IF FLATPAK IS INSTALLED.
Now install using the following flatpak command.
flatpak install flathub org.geany.Geany -y
How to Launch Geany
Now that you have the software installed, launching can be done in a few ways.
In your terminal, use the following command.
If you would like to launch and use the terminal simultaneously, send it to the background to continue using the current terminal.
Flatpak users can use the following command to launch from the terminal.
flatpak run org.geany.Geany
However, this isn’t practical for desktop users, and you would use the following path on your desktop to open with the approach as follows.
Activities > Show Applications > Geany
Example in Show Applications:
Once open, you will arrive at the default landing start screen, where you can begin to use the IDE editor.
And that is it, and you have successfully installed Geany IDE.
How to Update/Upgrade Geany
Depending on the method of installation used, the following commands can be used to update the software and any system packages. Ideally, the terminal update command should be used even with auto-updates in your desktop GUI to ensure everything is updating correctly.
APT Update Method
sudo apt upgrade && sudo apt upgrade
Flatpak Update Method
How to Remove (Uninstall) Geany
Use one of the following commands to suit the original installation method for users who no longer require the application.
APT Remove Method
sudo apt autoremove geany --purge -y
The above command will automatically remove any unused dependencies installed from Geany and other leftovers from previous removals. This command should be run often to keep your system from getting too bloated.
Flatpak Remove Method
flatpak uninstall --delete-data org.geany.Geany -y
Next, run the following command for any leftover clean-up.
flatpak remove --unused
Comments and Conclusion
Geany is an excellent choice if you are looking for an IDE that is small, fast, and doubles as a text editor. It has all of the features you need to get started programming, and it is easy to learn and use.