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

5/5 - (22 votes)

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 !

Charles F Flores

With over three years of in-depth experience working in technical fields, Charles is a master content writer who loves writing about Linux and Mac at Easy Tech Tutorials.

Leave a Comment