{"id":44123,"date":"2023-07-07T16:59:06","date_gmt":"2023-07-07T16:59:06","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=44123"},"modified":"2023-07-07T16:59:06","modified_gmt":"2023-07-07T16:59:06","slug":"convert-all-snap-to-flatpak-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2023\/07\/convert-all-snap-to-flatpak-ubuntu\/","title":{"rendered":"One Command to Convert All your Snap Apps into Flatpak in Ubuntu"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-44124\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p><b>For those hate Snap but prefer Flatpak, there&#8217;s now a script to automatically remove all the snap apps installed on your system, and install them back as Flatpak in Debian and Ubuntu.<\/b><\/p>\n<p>It&#8217;s <a href=\"https:\/\/github.com\/popey\/unsnap\" target=\"_blank\" rel=\"noopener\">Unsnap<\/a>, a free and open-source script written by Alan Pope and some other contributors. The man was an\u00a0employee of Canonical (<em>the company behind Ubuntu<\/em>), and one of the developers of Snap.<\/p>\n<p>As you may know, Snap and Flatpak are universal Linux package format run in sandbox. They make possible to run newer apps (or app in multiple versions) in Linux without worrying about dependency issue. However, they take more disk spaces since run-time libraries also sandboxed, and so far have limitations to interact outside of sandbox.<\/p>\n<p>Snap is powered by Canonical. The client and runtime are open-source while the backend is proprietary. Flatpak is completely open-source, and RedHat is behind the project. And, the open-source community seems to (IMO) prefer Flatpak is bit more.<\/p>\n<h3>Use Unsnap to Convert your Snap Apps to Flatpak<\/h3>\n<p>Unsnap does NOT rebuilt your Snap apps as Flatpak. It automate the process to remove Snap apps and install equivalent Flatpak apps back. Which, is useful for beginners and advanced users who want to save time for searching packages.<\/p>\n<h4>Supported Systems:<\/h4>\n<p>According to the script content, it so far supports: <b>Debian<\/b>, <b>Ubuntu<\/b> (and its official flavors), <b>Linux Mint<\/b>, <b>Pop!_OS<\/b>, <b>Elementary OS<\/b>, and <b>Zorin OS<\/b>.<\/p>\n<h4>Working Process<\/h4>\n<p>The script works in two mode: <code>default<\/code> and <code>auto<\/code>.<\/p>\n<p>It by default detects your system status and snap apps, then generates following new scripts:<\/p>\n<ul>\n<li><b>00-backup<\/b> &#8211; script to run <code>snap save<\/code> to save current data of snap apps.<\/li>\n<li><b>01-install-flatpak<\/b> &#8211; script to install Flatpak daemon.<\/li>\n<li><b>02-enable-flathub<\/b> &#8211; script to add Flathub repository.<\/li>\n<li><b>03-install-flatpaks<\/b> &#8211; script to install equivalent Flatpak apps.<\/li>\n<li><b>04-remove-snaps<\/b> &#8211; script to Remove all the Snap apps.<\/li>\n<li><b>99-remove-snapd<\/b> &#8211; script to remove disable snap. Though it may be installed back via a system update.<\/li>\n<\/ul>\n<p>It may skip 01\/02 scripts if you already installed Flatpak daemon and added Flathub repository. And, the scripts are quite simply and easy to understand for those have basic Linux command and programming skills. Then, you can choose to manually run all or any of the scripts accordingly!<\/p>\n<p>The <code>auto<\/code> mode will generate the scripts and run all of them automatically!<\/p>\n<h4>Limitations:<\/h4>\n<p>The scripts so far supports <b>219<\/b> applications. Advanced users can add more apps support by editing the &#8216;applist.csv&#8217; config file.<\/p>\n<p>It won&#8217;t remove unsupported and excluded Snap applications, though they will be gone after running <b>99-remove-snapd<\/b> script either manually or automatically.<\/p>\n<p>The script can save current data of all Snap applications. But there seems no way to import them in the equivalent Flatpak applications. And, there&#8217;s NO script to undo the changes!<\/p>\n<h4>Download Unsnap and Run the script<\/h4>\n<p><b>1.<\/b> User can either download Unsnap from <a href=\"https:\/\/github.com\/popey\/unsnap\" target=\"_blank\" rel=\"noopener\">github page<\/a>, or open terminal (press <b>Ctrl+Alt+T<\/b> in Ubuntu) and run command:<\/p>\n<pre>git clone https:\/\/github.com\/popey\/unsnap<\/pre>\n<p><i>Run <code>sudo apt install git<\/code> if git command not found.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/download-unsnap.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44128\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/download-unsnap-600x282.webp\" alt=\"\" width=\"600\" height=\"282\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/download-unsnap-600x282.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/download-unsnap-300x141.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/download-unsnap-768x361.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/download-unsnap.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>2.<\/b> After downloading the script, either<\/p>\n<ul>\n<li>run <b>cd unsnap<\/b> to navigate to source folder and <b>.\/unsnap auto<\/b> to do all the things AUTOMATICALLY in one command.<\/li>\n<li>or run <b>cd unsnap<\/b>, then <b>.\/unsnap<\/b> to generate the scripts for MANUAL use.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/start-unsnap.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44127\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/start-unsnap-600x242.webp\" alt=\"\" width=\"600\" height=\"242\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/start-unsnap-600x242.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/start-unsnap-300x121.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/start-unsnap-768x310.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/start-unsnap.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>For manual mode, all the generated scripts are available in &#8220;log-202x-xxx&#8221; sub-folder.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-scripts.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44125\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-scripts-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-scripts-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-scripts-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-scripts-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-scripts.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Just run <strong>cd log-*<\/strong> command to navigate to that folder, then choose any script you want to run. For example, backup snap app data by <strong>.\/00-backup<\/strong>.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-run-script.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-run-script-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" class=\"aligncenter size-large wp-image-44126\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-run-script-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-run-script-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-run-script-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/07\/unsnap-run-script.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>As mentioned, there&#8217;s no script to undo the changes! You can safely remove the <b>unsnap<\/b> folder after all the jobs done!<\/p>","protected":false},"excerpt":{"rendered":"<p>For those hate Snap but prefer Flatpak, there&#8217;s now a script to automatically remove all the snap apps installed on your system, and install them back as Flatpak in Debian and Ubuntu. It&#8217;s Unsnap, a free and open-source script written by Alan Pope and some other contributors. The man was an\u00a0employee of Canonical (the company [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":44124,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1472,1494],"class_list":["post-44123","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-flatpak","tag-snap"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=44123"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44123\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/44124"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=44123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=44123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=44123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}