{"id":346,"date":"2023-01-02T20:36:59","date_gmt":"2023-01-02T12:36:59","guid":{"rendered":"https:\/\/site.uugo.cf\/?p=346"},"modified":"2023-01-02T20:37:00","modified_gmt":"2023-01-02T12:37:00","slug":"flatpak-user-manual","status":"publish","type":"post","link":"https:\/\/site.uugo.cf\/?p=346","title":{"rendered":"flatpak user manual"},"content":{"rendered":"\n<p>Flatpak is one of the major package formats in Linux today. Here\u2019s how to remove one or all flatpak apps completely.<\/p>\n\n\n\n<p>Flatpak is an universal Linux package runs in sandbox. It is an open-source project developed by an independent community.<\/p>\n\n\n\n<p>Almost all Linux supports Flatpak package and some of them, e.g,&nbsp;<em>CentOS<\/em>,&nbsp;<em>Fedora Workstation<\/em>,&nbsp;<em>Linux Mint<\/em>, and&nbsp;<em>Pop!_OS<\/em>, have the daemon out-of-the-box.<\/p>\n\n\n\n<p>Generally, we can install the apps from&nbsp;<a href=\"https:\/\/flathub.org\/\" rel=\"noreferrer noopener\" target=\"_blank\">flathub.org<\/a>. In each app page, it provides an \u2018<em>INSTALL<\/em>\u2018 button to download the package, as well as commands in bottom to install and run the app. However, it lacks of uninstall instructions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Remove a flatpak app, Clean app data and unused runtime libraries:<\/h2>\n\n\n\n<p>As you may know, it\u2019s easy to remove a flatpak app via the command below in terminal:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">flatpak uninstall App-ID<\/pre>\n\n\n\n<p>You may firstly list all available apps as well as their ID via command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">flatpak list --app<\/pre>\n\n\n\n<p>Then you can paste an app ID after&nbsp;<code>flatpak uninstall<\/code>&nbsp;command to remove it. For example, the command in the picture will remove \u201cAmbience\u201d from my system.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/fostips.com\/wp-content\/uploads\/2021\/08\/flatpak-uninstall-ambience.png?ssl=1\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/fostips.com\/wp-content\/uploads\/2021\/08\/flatpak-uninstall-ambience.png?resize=700%2C315&amp;ssl=1\" alt=\"\" class=\"wp-image-4264\"\/><\/a><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">a.) Purge personal app data:<\/h3>\n\n\n\n<p>Some applications (e.g, Gnome To-Do, Stepmania) store their app data in user\u2019s personal folders. Normally remove command will NOT delete these data files, so it takes more and more disk space after installing &amp; using flatpak apps for a long period of time.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/fostips.com\/wp-content\/uploads\/2021\/08\/flatpak-data.png?ssl=1\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/fostips.com\/wp-content\/uploads\/2021\/08\/flatpak-data.png?resize=700%2C371&amp;ssl=1\" alt=\"\" class=\"wp-image-4269\"\/><\/a><\/figure>\n<\/div>\n\n\n<p>The&nbsp;<strong>.var<\/strong>&nbsp;is a hidden folder, you need to press&nbsp;<strong>Ctrl+H<\/strong>&nbsp;in file manager to show \/ hide it. And&nbsp;<em><strong>select remove the data folders if the apps are already removed.<\/strong><\/em>&nbsp;Or add&nbsp;<code>--delete-data<\/code>&nbsp;to get rid of them when trying to remove an app.<\/p>\n\n\n\n<p>For instance, remove Gnome To-Do as well as the personal data via command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">flatpak uninstall --delete-data org.Gnome.Todo<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">b.) Remove un-used runtime libraries:<\/h3>\n\n\n\n<p>While installing an app, you may found that it tries to install some packages, e.g., Gnome platform, Locale, Themes, etc.<\/p>\n\n\n\n<p>They are runtime libraries required by installed apps. And you can list all available run-times via command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">flatpak list --runtime<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/fostips.com\/wp-content\/uploads\/2021\/08\/flatpak-listruntime.png?ssl=1\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/fostips.com\/wp-content\/uploads\/2021\/08\/flatpak-listruntime.png?resize=700%2C377&amp;ssl=1\" alt=\"\" class=\"wp-image-4267\"\/><\/a><\/figure>\n<\/div>\n\n\n<p>So far, Flatpak keeps installing newer runtime libraries but will NOT remove old un-used ones. Linux Mint 20.2 has updated with feature to auto-remove un-used runtime. However, other Linux need to run the command below regularly to clear unused libraries:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">flatpak uninstall --unused<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2. Completely remove Flatpak Apps from your system:<\/h2>\n\n\n\n<p>More and more applications produce Linux packages via Flatpak. But if you intend to remove it completely from your system, do steps below.<\/p>\n\n\n\n<p>Remove all installed flatpak apps, runtime libraries, as well as delete all app data via command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">flatpak uninstall --all --delete-data<\/pre>\n\n\n\n<p>After that, you\u2019ll have the clean&nbsp;<code>.var\/apps<\/code>,&nbsp;<code>.local\/share\/flatpak<\/code>, and&nbsp;<code>\/var\/lib\/flatpak<\/code>&nbsp;directories.<\/p>\n\n\n\n<p>However, a broken package may prevent the un-installation process, which can be fixed via command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo flatpak repair<\/pre>\n\n\n\n<p>You can even remove the Flatpak daemon, though it\u2019s not recommended in some Linux (<em>e.g., Fedora Gnome Software requires it<\/em>). For example, Ubuntu uses can remove it via command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt remove --autoremove flatpak<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Summary:<\/h2>\n\n\n\n<p>In short, you can remove a flatpak app as well as delete the app data via&nbsp;<code>flatpak uninstall --delete-date App-ID<\/code>. Run&nbsp;<code>flatpak uninstall --unused<\/code>&nbsp;regularly to clean up old run-time libraries for non Linux Mint users. And remove all flatpak apps and clean disk spaces via&nbsp;<code>flatpak uninstall --all --delete-data<\/code>&nbsp;command.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flatpak is one of the major package formats in Linux today. Here\u2019s how to remove one or all flatpak apps completely. Fla&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-346","post","type-post","status-publish","format-standard","hentry","category-7"],"views":297,"_links":{"self":[{"href":"https:\/\/site.uugo.cf\/index.php?rest_route=\/wp\/v2\/posts\/346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/site.uugo.cf\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/site.uugo.cf\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/site.uugo.cf\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/site.uugo.cf\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=346"}],"version-history":[{"count":1,"href":"https:\/\/site.uugo.cf\/index.php?rest_route=\/wp\/v2\/posts\/346\/revisions"}],"predecessor-version":[{"id":347,"href":"https:\/\/site.uugo.cf\/index.php?rest_route=\/wp\/v2\/posts\/346\/revisions\/347"}],"wp:attachment":[{"href":"https:\/\/site.uugo.cf\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/site.uugo.cf\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/site.uugo.cf\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}