How to Install GitHub Desktop on Ubuntu 22.04 LTS

The GitHub Desktop is a git application that is free to use. This application supports attributing commits with collaborators, checkout branches with pull requests, etc. With this tool, you’ll have an easier time working on your projects without depending on your browser.

In the following tutorial, you will learn to install the Github Desktop on Ubuntu 22.04 LTS Jammy Jellyfish with the third-party package manager Flatpak and some tips for maintaining or removing Github in the future.

Update Ubuntu

Before you begin, make sure your system is up-to-date to avoid any conflicts during the installation, and for good practice, use the terminal command as follows.

sudo apt update && sudo apt upgrade -y

Install GitHub Desktop – Flatpak Method

The best method to install GitHub Desktop is using the Flatpak package manager. This will ensure you also get updates in the future quickly and efficiently as you would checking for updates using the command terminal.

For users unfamiliar with Flatpak, it is another popular third-party option similar to Snap. Still, it is featured amongst many distributions as an alternative third-party installation package manager for the latest packages.

First, install Flatpak using the following command unless you have it installed already.

sudo apt install flatpak -y

Before you proceed, reboot your system, or else you will have issues such as applications icons not appearing.


Next, you need to enable Flatpack using the following command in your terminal.

sudo flatpak remote-add --if-not-exists flathub

Now install Github using the following flatpak command:

flatpak install flathub io.github.shiftey.Desktop -y

How to Launch GitHub Desktop

Now that you have the Github Desktop installed, launching can be done in a few ways.

With your terminal opened, you can use the following command to launch immediately.

flatpak run io.github.shiftey.Desktop

However, this isn’t practical, and you would use the following path on your desktop.

Activities > Show Applications > Github Desktop


How to Install GitHub Desktop on Ubuntu 22.04 LTS

Once open, you can log in to your account and begin using the desktop client for your Git purposes.


How to Install GitHub Desktop on Ubuntu 22.04 LTS

How to Update/Upgrade Github Desktop

For Flatpak, run the following command to check in your terminal for upgrades.

flatpak update

How to Remove (Uninstall) GitHub Desktop

Not interested in having GitHub installed with Flatpak? Use the following command to remove the GitHub Desktop application as follows.

flatpak remove  --delete-data io.github.shiftey.Desktop -y

Next, run the following command for any leftover clean-ups required, similar to the autoremove command described for the apt remove example command.

flatpak remove --unused

Comments and Conclusion

In the tutorial, you have learned how to install GitHub Desktop on Ubuntu 22.04 LTS Jammy Jellyfish using Flatpak.

If you’re looking for a desktop client that will make it easier for you to interact with GitHub, then be sure to check out the GitHub Desktop application.


Like to get automatic updates? Follow us on one of our social media accounts!