This simple tutorial shows how to install GnuCash, the personal and small-business financial-accounting software, in all current Ubuntu releases including Ubuntu 23.10, Ubuntu 23.04, Ubuntu 22.04 and Ubuntu 20.04
GnuCash is available in Ubuntu repository, but old. For the latest release, you may install it via either Flatpak package or an Ubuntu PPA.
At the moment of writing, the latest version is GnuCash 5.4, and the changes are available in this page.
Method 1: Install GnuCash from Ubuntu repository
The package in system repository is old, but supported by Ubuntu Team, and available in all supported CPU architecture types, including x86_64, Arm 64/hf, ppc64el, riscv64, s390x.
To install the package, simply press Ctrl+Alt+T on keyboard to open terminal. Then, run command:
sudo apt install gnucash
Run sudo apt update
if package not found, and type user password (no asterisk feedback) for sudo authentication.
Method 2: Install latest GnuCash via Flatpak package
For the latest version, so far GnuCash 5.4, the official website refers to the Flatpak package. It can install in most Linux, though runs in sandbox! And, it supports both X86_64 and Arm 64 CPU architecture types.
1.) Open terminal (Ctrl+Alt+T) and run command to install flatpak framework:
sudo apt install flatpak
Type your password (no visual feedback) for sudo prompts and hit Enter.
2.) Then install the latest GnuCash as Flatpak package, by running command:
flatpak install https://dl.flathub.org/repo/appstream/org.gnucash.GnuCash.flatpakref
NOTE: First time installing a Flatpak app, may also install hundreds MB of runtime libraries. And, you may need to log out and back in to make the app icon visible.
Method 3: Install latest GnuCash via Ubuntu PPA
Want the latest version but hate running app in sandbox? The popular Xtradeb Apps PPA contains the package with support for Ubuntu 22.04 and Ubuntu 23.04 so far.
It’s native .deb
package, though only support X86_64 architecture type (the common Intel & AMD CPUs).
1. First, press Ctrl+Alt+T on keyboard to open terminal. When terminal opens, run command to add the PPA:
sudo add-apt-repository ppa:xtradeb/apps
Type user password (no asterisk feedback) when it asks and hit Enter to continue
2. If you’re following this tutorial in Linux Mint 21, then you have to manually refresh system package cache after adding PPA, which’s done automatically in Ubuntu.
sudo apt update
3. Finally, install the financial-accounting software by running command:
sudo apt install gnucash
After installation, search for and launch the software from either applications menu or the overview screen depends on your desktop environment.
Uninstall GnuCash
Depends on how you installed the software package, remove it by running either command below.
For the package installed via apt
command in ‘Method 1’ and ‘Method 3’, open terminal (Ctrl+Alt+T) and run command to remove it:
sudo apt remove --autoremove gnucash
Also, remove the Ubuntu PPA from your system by running command:
sudo add-apt-repository --remove ppa:xtradeb/apps
For the software installed via Flatpak package, run the command below instead to remove it:
flatpak uninstall --delete-data org.gnucash.GnuCash
Also run flatpak uninstall --unused
to remove useless leftovers.