LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-25-2018, 11:14 AM   #1
JannMint
LQ Newbie
 
Registered: Dec 2018
Posts: 4

Rep: Reputation: Disabled
harddisk is full of flatpak-cache files


Hi,
the harddisk is up to 90% full of flatpak-cache files.
How can I prevent this and delete these files?
Linux Mint 18.3.
 
Old 12-25-2018, 11:39 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,359

Rep: Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041
looks like it is already known and solved: https://github.com/flatpak/flatpak/issues/1119
 
Old 12-26-2018, 06:36 AM   #3
JannMint
LQ Newbie
 
Registered: Dec 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
looks like it is already known and solved: https://github.com/flatpak/flatpak/issues/1119
Thank you. Yes, I found this site too, but I don't get a solution out of it.
The harddisk is full, nothing works really correctly.
What is flatpak? I don't know where it comes from and never heard of it. Is it a system backup program from Linux Mint?
How can I prevent the cache issue?
There must be an option to adjust or to disable it, right?

Last edited by JannMint; 12-26-2018 at 06:50 AM.
 
Old 12-26-2018, 06:46 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,359

Rep: Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041
what is flatpack: https://flatpak.org/ (or probably here: http://docs.flatpak.org/en/latest/basic-concepts.html) Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux.
Most probably you used something which was built with flatpack.
This problem is fixed within flatpack, you do not need to do anything. But you probably used an older version where it was not yet fixed. I think you can safely remove those cache files (especially if they are relatively old).
 
1 members found this post helpful.
Old 12-26-2018, 06:51 AM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909
Quote:
Originally Posted by JannMint View Post
Thank you. Yes, I found this too, but I don't get it.
The harddisk is full, nothing works really correctly.
What is flatpak? Is it a system backup program from Linux Mint?
How can I prevent this cache issue?
There must be an option to adjust it, right?
Flatpak is an application packaging method under which applications can be packed and distributed so that they are compatible with a larger number of Linux distros and versions.

https://www.flatpak.org/

You can see which Flatpak applications you have installed with:

Code:
flatpak list
You may have previously installed Flatpak applications and removed them, but the runtimes still remain. You can check this with:

Code:
flatpak list -d --app --runtime
Please paste the output from both these commands.
 
1 members found this post helpful.
Old 12-26-2018, 12:10 PM   #6
JannMint
LQ Newbie
 
Registered: Dec 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thx, these are very usefull answers.

"flatpak list" shows:
org.gnome.Aisleriot/x86_64/stable system,current
org.freedesktop.Platform.ffmpeg/x86_64/1.6 system,runtime
org.gnome.Platform/x86_64/3.26 system,runtime

There are about 600 directorys in var/tmp/.
I only can delete one single directory at a time.
I took 100 old directorys and delete them singly.

But don't know how to update flatpak.
I always update with the normal update process, but that task button is gone.
I have to find it anyway... but actualy nothing works properly.
I try to reboot after deleting many directorys.
 
Old 12-26-2018, 12:17 PM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909
Quote:
Originally Posted by JannMint View Post
Thx, these are very usefull answers.

"flatpak list" shows:
org.gnome.Aisleriot/x86_64/stable system,current
org.freedesktop.Platform.ffmpeg/x86_64/1.6 system,runtime
org.gnome.Platform/x86_64/3.26 system,runtime

There are about 600 directorys in var/tmp/.
I only can delete one single directory at a time.
I took 100 old directorys and delete them singly.

But don't know how to update flatpak.
I always update with the normal update process, but that task button is gone.
I have to find it anyway... but actualy nothing works properly.
I try to reboot after deleting many directorys.
Are you using Aisleriot?

What are the names of the directories in /var/tmp? If they all start with "flatpak-cache", for example, you can delete multiple directories by using a wildcard.
 
1 members found this post helpful.
Old 12-27-2018, 08:54 AM   #8
JannMint
LQ Newbie
 
Registered: Dec 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Are you using Aisleriot?

What are the names of the directories in /var/tmp? If they all start with "flatpak-cache", for example, you can delete multiple directories by using a wildcard.
Yes, Aisleriot is a solitaire game.
And yes, the directoriy names beginns all with "flatpak-cache-..." and then some letters.
Good idea with the wildcard.

I already deleted some files (I guess about 30%) manually and then empty the trashcan and this takes some time. I guess about 40 minutes with a SSD. After that and rebooting I can update my system again and yet "flatpak" is in the list too.
I hope that was the solution.

Last edited by JannMint; 12-27-2018 at 08:56 AM.
 
Old 12-27-2018, 10:25 AM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909
Quote:
Originally Posted by JannMint View Post
Yes, Aisleriot is a solitaire game.
And yes, the directoriy names beginns all with "flatpak-cache-..." and then some letters.
Good idea with the wildcard.

I already deleted some files (I guess about 30%) manually and then empty the trashcan and this takes some time. I guess about 40 minutes with a SSD. After that and rebooting I can update my system again and yet "flatpak" is in the list too.
I hope that was the solution.
Ok. That sounds promising.

The following command should take care of the cache files:

Code:
sudo rm -rf /var/tmp/flatpak-cache*
This will directly delete the directories and the files within, rather than placing them in the trashcan. As usual when dealing with deletes when you have root privileges, be careful that you get the command right.

You probably shouldn't have had so many of those directories and files in the first place though. It's worth monitoring the situation to see if it re-occurs.

Last edited by hydrurga; 12-27-2018 at 10:27 AM.
 
1 members found this post helpful.
  


Reply


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: Flatpak Linux App Sandboxing Format Now Lets You Kill Running Flatpak Instances LXer Syndicated Linux News 0 11-23-2018 01:21 AM
LXer: GNOME 3.26's Nautilus File Manager Gets Full-Text Search Support, Flatpak Builds LXer Syndicated Linux News 0 08-10-2017 02:21 AM
LXer: On Snappy and Flatpak: business as usual in the Canonical propaganda department LXer Syndicated Linux News 0 06-19-2016 09:33 AM
LXer: LibreOffice 5.2 Beta Now Available as a Flatpak for Common Linux Distributions LXer Syndicated Linux News 0 06-02-2016 11:33 AM
Low Harddisk space. Can I just transfer the entire Linux to a bigger harddisk? davidas Linux - Newbie 12 04-13-2004 02:03 AM

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

All times are GMT -5. The time now is 11:12 PM.

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