-
-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Purpose of /var/lib/flatpak/.removed, needs documentation #1835
Comments
The .removed directory contains apps/runtimes that are removed (typically due to an update), but are still in use. Each time you update something all unused things in this directory will be cleaned up. |
It the actual subdirectories are that old its unlikely that they are in use, a simple "flatpak update" should theoretically remove them. If not, something is going wrong and needs debugging. |
I believe a flatpak update will fix this, but no reply, so closing. Re-open if it fails. |
@alexlarsson |
Flatpak 1.0.4 does not seem to remove the contents of this directory either, even with It keeps the |
the code for removing is here: https://github.com/flatpak/flatpak/blob/master/common/flatpak-dir.c#L8922 It gets called during install and update. it skips subdirectories of .removed that 'locked', which is indicated by having a .removed/XYZ/files/.ref file. Is that the case for your subdirectories ? |
I will try to fill-in for @hlev since I appear to be experiencing the same issue.
So, indeed, it appears that Here is the list of Flatpaks I have on the system:
Any ideas what is going on? |
HNY @matthiasclasen Thanks for highlighting the part of the code responsible for deletion. Unfortunately it wasn't a permalink, so I don't know if and where it goes off track. Not sure if @tjanez has the same issue, because he has applications installed, my comment was simply related to flatpak 1.0.4 leaving unwanted files around even if you uninstall everything.
There is no indication, other than decreased disk space, that these files are kept around and the client does not seem to have a command to remove everything. Cleanup has to be done manually. I haven't used or updatet flatpak since I made the comment so this may have changed. |
I tried doing an update. That didn't remove it.
|
Are these safe to remove manually? I currently only have flatpaks installed as --user, but I did accidentally install something as --system which I later removed. These things are still left in /var/lib/flatpak/.removed though. |
Still an issue with Flatpak 1.8.2 (Ubuntu 20.10).
|
Same here. I even removed the |
|
I've moved (perhaps foolishly) all the user flatpaks to system but still have
|
@kjcole same here but I solved with:
|
@alxlg Sometime within the past nine months the problem went away... possibly because I issued that command, but more probably because my flatpaks are now all "system" rather than "user". But thanks. |
I had this same issue, a lot of space being used up by the
That doesn't do cleanup for user packages though, do |
I recently discovered /var/lib/flatpak/.removed contained 610M in two removed-{hash} directories. I cannot find this documented anywhere other than the source code. What is the purpose of this directory? Why doesn't Flatpak automatically clean them out? Can I assume it is safe to remove manually? These directories are dated over a year ago, so I can't tell you what version I was running then. I'm currently on Flatpak 0.99.2-flatpak1~bionic on Ubuntu 18.04.
The text was updated successfully, but these errors were encountered: