Breaking free from Canonical: A guide to migrating from Snap to Flatpak

If you’re using Ubuntu, you may be a frequent user of snap packages. Snap is a program that enables you to run containerized applications with all their dependencies. It is a format proposed by Canonical, the company behind Ubuntu, which is similar to .app on Apple or .exe on Microsoft.

However, snap is not the only option available. There is also Flatpak, which uses the same principle but is more open, free, and community-driven.

If you want to migrate from snap to Flatpak, you can use the Unsnap script. This script simplifies the process by allowing you to migrate from snap to Flatpak in a few seconds.

Unsnap works in two steps. First, it generates scripts to perform the migration, which will enable you to view and edit the scripts before running them. Then, it launches the migration process itself, making it easy for you to switch from snap to Flatpak.

unsnap capture

Here are the scripts he created:

  • 00-backup – run snap backup for each installed snap being migrated
  • 01-install-flatpak – if not already installed, installs the Flatpak package manager.
  • 02-enable-flathub – if not enabled, add remote flathub location in flatpak
  • 03-install-flatpaks – install equivalent flatpaks for each identified snap
  • 04-remove-snaps – remove snaps for which flatpaks have been installed
  • 99-remove-snapd – removes snapd itself, which will remove all snaps

Here’s how to install and launch it:

git clone
cd unsnap

And to run it without rechecking the scripts, you can use the auto parameter like this:

./unsnap auto

Convenient !

5/5 - (22 votes)

See also  QueryCSV: Execute SQL Queries Directly on Your CSV Files
Mohamed SAKHRI

I am Mohamed SAKHRI, the creator and editor-in-chief of Tech To Geek, where I've demonstrated my passion for technology through extensive blogging. My expertise spans various operating systems, including Windows, Linux, macOS, and Android, with a focus on providing practical and valuable guides. Additionally, I delve into WordPress-related subjects. You can find more about me on my Linkedin!, Twitter!, Reddit

Leave a Comment