How to Install Geany on Fedora 40 or 39

Geany is a lightweight, fast, and versatile text editor ideal for Fedora users looking to enhance their coding experience. Designed with simplicity, Geany offers a range of features that cater to novice and experienced developers.

Key Features of Geany:

  • Fast and Lightweight: Geany’s minimal startup time and low resource usage make It perfect for quick edits and extended coding sessions.
  • Multi-Language Support: Geany supports numerous programming languages, including Python, Java, C/C++, HTML, and more, making it a versatile tool for various development needs.
  • Integrated Development Environment: Features like syntax highlighting, code folding, and auto-completion enhance productivity and code readability.
  • Extensible with Plugins: Expand Geany’s functionality with various plugins, allowing customization according to your specific workflow requirements.
  • Built-in Terminal: Execute commands and scripts directly within Geany, streamlining your development process by reducing the need to switch between applications.
  • Project Management: Easily manage and navigate large projects with Geany’s project support features, including file tree browsing and project-specific settings.
  • Cross-Platform Compatibility: Geany is available on multiple operating systems, ensuring a consistent development environment across different platforms.

Transitioning to Geany from other text editors is straightforward due to its intuitive interface and comprehensive feature set. Now, let’s explore how to install and configure Geany on Fedora to ensure you get the most out of this powerful text editor.

Prerequisites for Installing Geany on Fedora Workstation

To successfully install Geany on Fedora Workstation, ensure you meet the following requirements:

System Requirements and Supported Fedora Versions

ComponentRecommended Requirement
Processor2 GHz or faster dual-core processor
RAM4 GB or more
Disk Space25 GB of free space
NetworkHigh-speed internet connection
Supported VersionsFedora Workstation

Additional Requirements

RequirementDescription
Internet ConnectionNecessary for downloading Geany and applying updates.
Terminal ConventionsAll terminal commands should be executed as a regular user with sudo privileges.
CLI CommandsUtilize the Command Line Interface (CLI) for installation and setup.
Development ToolsEnsure that essential development tools and libraries are installed for an optimal development experience.

Method 1: Install Geany via DNF

Update Fedora Before Geany Installation

It’s essential to start by updating your Fedora system. This step ensures that all your existing packages are current, providing a stable base for new installations.

To update Fedora, execute the following command:

sudo dnf upgrade --refresh

This command refreshes the repository and upgrades the packages, maintaining the system’s integrity and security.

Install Geany via DNF Command

After updating your system, you can install Geany. Geany is available directly from Fedora’s official repository, ensuring a secure and straightforward installation. Use the following command to install Geany:

sudo dnf install geany

This command downloads and installs the latest version of Geany.

Method 2: Install Geany via Flatpak and Flathub

Verify Flatpak Installation

Before installing Geany, ensure Flatpak is installed on your Fedora workstation. Flatpak is often pre-installed, but if you’ve previously removed it, reinstall it using this command:

sudo dnf install flatpak -y

This command reinstalls Flatpak, allowing you to access various applications, including Geany.

Enable Flathub for Geany Installation

After confirming Flatpak’s installation, the next step is to enable Flathub. Flathub is a repository for Flatpak applications, often offering more current software versions than Fedora’s default repositories. To enable Flathub, use the following command:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

This command ensures that your system can access and install applications from Flathub.

Install Geany via Flatpak Command

With Flathub enabled, you can now install Geany. Use the command below to install Geany via Flatpak:

flatpak install flathub org.geany.Geany -y

This command installs the latest version of Geany available on Flathub.

Troubleshoot Flatpak Geany Installation

If you encounter an error stating, “error: Unable to load summary from remote flathub: Can’t fetch summary from disabled remote ‘flathub,'” the solution is straightforward. Enable Flathub using the following command:

"error: Unable to load summary from remote flathub: Can't fetch summary from disabled remote 'flathub,"

The fix is simple: run the following command to enable Flathub.

flatpak remote-modify --enable flathub

This command resolves the issue by enabling the Flathub repository.

Launching Geany User Interface

CLI Commands to Launch Geany

Once Geany is installed on your Fedora Linux system, you can launch it using the command-line interface (CLI). This method is efficient for those who prefer working in a terminal environment.

To open Geany via the CLI, enter:

geany

This command quickly launches the Geany application.

For users who installed Geany via Flatpak, use this alternative command:

flatpak run org.geany.Geany

This command specifically targets the Flatpak installation of Geany, ensuring that the correct version of the application is launched.

GUI Method to Launch Geany

For desktop users, launching Geany is more convenient through the graphical user interface (GUI). This method is straightforward and does not require the use of terminal commands.

To open Geany via the GUI, follow this path:

Activities > Show Applications > Geany

Additional Commands For Geany

Updating Geany

DNF Update Method for Geany

For installations done via DNF, the following command will update Geany along with other system packages:

sudo dnf upgrade --refresh

Flatpak Update Method for Geany

If you installed Geany using Flatpak, use this command to update it:

flatpak update

Remove Geany From Fedora

If you need to uninstall Geany, select the command that corresponds to your original installation method.

DNF Remove Method for Geany

To remove Geany installed via DNF, along with its unused dependencies and other remnants, use:

sudo dnf autoremove geany

Running this command regularly helps prevent system bloat by removing unnecessary files.

Flatpak Remove Method for Geany

For Geany installations via Flatpak, the following command will uninstall the application and delete its data:

flatpak uninstall --delete-data org.geany.Geany -y

Conclusion

Throughout this guide, we’ve explored two effective methods for installing Geany on Fedora Linux, delving into the DNF and Flatpak approaches. Along the way, we’ve also covered key commands for updating and removing Geany, ensuring you can manage the software efficiently. As you begin your journey with Geany, customize your workspace to fit your needs and explore its extensive range of features and plugins.

Useful Links

Here are some valuable links related to using Geany:

  • Geany Official Website: Visit the official Geany website for information about the lightweight IDE, its features, and download options.
  • Geany Manual: Access the comprehensive user manual for detailed guides on using Geany.
  • Geany FAQ: Find answers to frequently asked questions about using Geany.
  • Geany Wiki: Explore the Geany Wiki for additional information, tutorials, and community-contributed content.
  • Geany API Reference: Consult the API reference for in-depth technical details and programming guidance.
  • Geany Plugins: Discover plugins to extend Geany’s functionality and enhance your development experience.
Joshua James
Follow me

TOC Index
Your Mastodon Instance
Share to...