LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-14-2024, 06:58 AM   #1
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,501
Blog Entries: 2

Rep: Reputation: 68
Angry flatpak madness


There is almost 105,000 files on my local home folder related to flatpaks.
Is it supposed to be normal ? Manageable? Reasonable ?

Code:
miguel$ find .local/share/flatpak | wc -l
104979
miguel$ du -sh .local/share/flatpak
2,3G    .local/share/flatpak
miguel$ flatpak list
Nome                               ID de aplicativo                              Versão            Ramo                 Origem                       Instalação
Clipboard                          app.getclipboard.Clipboard                    0.8.3             stable               flathub                      system
8bit Solutions LLC                 com.bitwarden.desktop                         2024.4.1          stable               flathub                      user
Freedesktop Platform               org.freedesktop.Platform                      23.08.17          23.08                flathub                      system
Freedesktop Platform               org.freedesktop.Platform                      23.08.17          23.08                flathub                      user
Mesa                               org.freedesktop.Platform.GL.default           24.0.6            23.08                flathub                      system
Mesa                               org.freedesktop.Platform.GL.default           24.0.6            23.08                flathub                      user
Mesa (Extra)                       org.freedesktop.Platform.GL.default           24.0.6            23.08-extra          flathub                      system
Mesa (Extra)                       org.freedesktop.Platform.GL.default           24.0.6            23.08-extra          flathub                      user
openh264                           org.freedesktop.Platform.openh264             2.1.0             2.2.0                flathub                      system
openh264                           org.freedesktop.Platform.openh264             2.1.0             2.2.0                flathub                      user
Breeze GTK theme                   org.gtk.Gtk3theme.Breeze                      6.0.4             3.22                 flathub                      system
Breeze GTK theme                   org.gtk.Gtk3theme.Breeze                      6.0.4             3.22                 flathub                      user
KDE Application Platform           org.kde.Platform                                                6.6                  flathub                      user
KleverNotes                        org.kde.klevernotes                                             master               klevernotes-nightly          user
miguel$
The biggest problem it pollutes my home folder causing problems in a backup.
Took some time to realize why my backups are taking so long to complete. More than 5h before versus 20m after excluding that path from backup.

For sure, something is not ideal, even reasonable.

Last edited by marozsas; 05-14-2024 at 07:42 AM.
 
Old 05-14-2024, 09:08 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,710
Blog Entries: 19

Rep: Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506
Switch to Slackware. Problem solved.
 
1 members found this post helpful.
Old 05-14-2024, 10:49 AM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,155

Rep: Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318
It seems a bit odd to have multiple copies — 4 Mesas!

I'm pleased to say that PCLinuxOS doesn't use flatpak by default, although you can enable it if you really insist.
 
Old 05-14-2024, 06:40 PM   #4
capturts
LQ Newbie
 
Registered: Jul 2010
Posts: 9

Rep: Reputation: 0
I think the point in flatpak is that it provides a "sandbox" on top of your own distro. I assume it needs an additional copy of each of the the libraries etc that are normally part of Ubuntu or whatever you are using. This must add up to a significant number, depending on which flatpaks you have installed and their dependencies.

I haven't used flatpak much, but have you installed something packages as a user and additionally as system? If so, this might be adding additional files to your disk
 
Old 05-15-2024, 12:03 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,710
Blog Entries: 19

Rep: Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506
Quote:
Originally Posted by capturts View Post
I think the point in flatpak is that it provides a "sandbox" on top of your own distro. I assume it needs an additional copy of each of the the libraries etc that are normally part of Ubuntu or whatever you are using. This must add up to a significant number, depending on which flatpaks you have installed and their dependencies.
I have never used flatpak or appimage but I remember dimly that in the days when I used Windows, every application came with its own libraries. When I started using Linux and found that all the aplications sat on a common layer of libraries, that seemed to me a much better system, much more logical and economical and less likely to go wrong. I think we are moving backwards.
 
1 members found this post helpful.
Old 05-15-2024, 03:40 AM   #6
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,501

Original Poster
Blog Entries: 2

Rep: Reputation: 68
Quote:
Originally Posted by capturts View Post
I haven't used flatpak much, but have you installed something packages as a user and additionally as system? If so, this might be adding additional files to your disk
Yes, I have, but I just notice that when you asked.
So, you think it is safe to remove those installed by user ?

As root:
Code:
mastodon:~ # flatpak list
Name                           Application ID                               Version           Branch               Installation
Clipboard                      app.getclipboard.Clipboard                   0.8.3             stable               system
Freedesktop Platform           org.freedesktop.Platform                     23.08.17          23.08                system
Mesa                           org.freedesktop.Platform.GL.default          24.0.6            23.08                system
Mesa (Extra)                   org.freedesktop.Platform.GL.default          24.0.6            23.08-extra          system
openh264                       org.freedesktop.Platform.openh264            2.1.0             2.2.0                system
Breeze GTK theme               org.gtk.Gtk3theme.Breeze                     6.0.4             3.22                 system
mastodon:~ #
again, as user:
Code:
miguel$ flatpak list
Nome                               ID de aplicativo                              Versão            Ramo                 Origem                       Instalação
Clipboard                          app.getclipboard.Clipboard                    0.8.3             stable               flathub                      system
8bit Solutions LLC                 com.bitwarden.desktop                         2024.4.1          stable               flathub                      user
Freedesktop Platform               org.freedesktop.Platform                      23.08.17          23.08                flathub                      system
Freedesktop Platform               org.freedesktop.Platform                      23.08.17          23.08                flathub                      user
Mesa                               org.freedesktop.Platform.GL.default           24.0.6            23.08                flathub                      system
Mesa                               org.freedesktop.Platform.GL.default           24.0.6            23.08                flathub                      user
Mesa (Extra)                       org.freedesktop.Platform.GL.default           24.0.6            23.08-extra          flathub                      system
Mesa (Extra)                       org.freedesktop.Platform.GL.default           24.0.6            23.08-extra          flathub                      user
openh264                           org.freedesktop.Platform.openh264             2.1.0             2.2.0                flathub                      system
openh264                           org.freedesktop.Platform.openh264             2.1.0             2.2.0                flathub                      user
Breeze GTK theme                   org.gtk.Gtk3theme.Breeze                      6.0.4             3.22                 flathub                      system
Breeze GTK theme                   org.gtk.Gtk3theme.Breeze                      6.0.4             3.22                 flathub                      user
KDE Application Platform           org.kde.Platform                                                6.6                  flathub                      user
KleverNotes   
miguel$
 
Old 05-15-2024, 09:27 AM   #7
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,161

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
If your backups are being done correctly they shouldn't take 5 hours. I keep 30+ flatpak packages + their dependencies installed in /home/"$USER". My backup of /home + the couple hundred g of steam / battle.net (via bottles) backs up with duplicity in under a minute and a half. 2 tops. There is no reason to backup stuff that hasn't changed more than necessary.
 
  


Reply

Tags
flatpak


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Meet Ubuntu Flatpak Remix, Ubuntu with Flatpak Support Preinstalled LXer Syndicated Linux News 0 03-11-2023 01:21 PM
LXer: Flatpak 1.10.2 Security Update Fixes Vulnerability That Lets Flatpak Apps Access Host OS Files LXer Syndicated Linux News 0 03-11-2021 05:12 PM
LXer: Flatpak Linux App Sandboxing Format Now Lets You Kill Running Flatpak Instances LXer Syndicated Linux News 0 11-23-2018 01:21 AM
daily madness... openssh punt Linux - General 1 07-18-2001 11:22 AM
....: stop the madness:..... fade2black06 Linux - General 3 07-16-2001 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration