How to install Geany on Ubuntu 20.04

Geany is a free and open-source powerful, stable and lightweight programmer’s GUI text editor that provides lots of useful features without bogging down your workflow.

It’s an cross-platform application available on Linux, Microsoft Windows, BSD, Solaris and macOS. It should run on every platform, which is supported by the GTK libraries.

Geany is translated into over 40 languages, and has built-in support for more than 50+ programming languages.

This application more closely look a lot like programming editors common on Microsoft Windows such as Notepad++.

Key Features of Geany

  • Syntax highlighting
  • Symbol name auto-completion
  • Auto-closing of XML and HTML tags
  • Many supported filetypes including C, Java, PHP, HTML, Python, Perl, Pascal
  • Code navigation
  • Simple project management
  • Code folding
  • Construct completion/snippets
  • Call tips
  • Symbol lists
  • Build system to compile and execute your code

This article explains two methods of installing Geany on Ubuntu 20.04.

Choose the installation method that is most appropriate for your environment.

Method 1: Installing Geany as a Snap Package

The easiest way to install Geany on Ubuntu 20.04 is by using the snap packaging system.

A snap package is a type of universal Linux package that you can enjoy irrespective of the distro. Its an self-contained software packages that include the binary all dependencies needed to run the application.

All you need is the snap service pre-configured, In the case of Ubuntu 20.04, it comes with snap pre-installed.

If snapd package is not already installed then you can install it by running following command.

$ sudo apt install snapd

Note: Snap packages can be installed from either the command-line or via the Ubuntu Software application.

This is actually the Snap version of the Geany. It can be used on any Linux distribution that has Snap support.

Open your terminal (Ctrl+Alt+T) and type the following command to install the Geany package.

$ sudo snap install geany-gtk --edge

At this step, you have successfully installed Geany on Ubuntu 20.04 system.

If you are not comfortable with the command line, open Ubuntu Software, search for “Geany” and install the application.

Type the following command to update Geany package.

$ sudo snap refresh geany-gtk

Method 2: Installing Geany from Ubuntu apt repository

Geany is included in Ubuntu 20.04. Follow the step by step guide to install the application.

Step #1

Type the following command to update the apt sources.

$ sudo apt update

Step #2

Now execute this command to install the Geany package.

$ sudo apt install geany

With the help of && you can write both the commands in a single line. Something like this:

$ sudo apt update && sudo apt install geany

That’s It.

Starting Geany

Geany can be launched from the command line by typing geany or In the Activities search bar type “Geany” and click on the icon.

Geany User Interface:

How to Uninstall Geany from Ubuntu 20.04

For some reason, If you want to uninstall Geany, refer following methods.

Method #1

If you have installed Geany via Snap type the following command:

$ sudo snap remove geany-gtk

Method #2

If you have installed the application from default ubuntu apt respository then uninstall by running the below command:

$ sudo apt remove geany

Conclusion

I hope that now you have a good understanding of How to install Geany on Ubuntu 20.04 LTS Focal Fossa.

If anyone does have any questions about what we covered in this guide then feel free to ask in the comment section below and I will do my best to answer those.

Leave a Comment