5

I know what's taking up space by utilizing the disk usage command.

The directory /var takes up 11 GB and its sub-directory var/lib takes up 8 GB. And /usr directory takes up 2 GB.

5xx MB is remaining out of my 20 GB root disk and I don't have a lot of applications installed.

How do I figure out what do I delete so that it does not break my system?

UPDATE: After taking a detailed look, I found that the culprit is /var/lib/flatpak I've utilized Flatpak to install the applications, but I don't have anything that big of an application to take up so much space. Here's the screenshot of what's taking how much inside flatpak:

~$ du -sh /var/lib/flatpak/* | sort -n
1.1G   /var/lib/flatpak/app
2.3G   /var/lib/flatpak/runtime
4.1G   /var/lib/flatpak/repo
14M    /var/lib/flatpak/appstream
412K   /var/lib/flatpak/exports

Is there a way I can force Flatpak to reside in the home directory instead while not re-installing the apps?

7
  • Take a look in /var/log first, maybe you have many large logfiles.
    – Soren A
    Commented Sep 28, 2018 at 11:03
  • UPDATE: After taking a detailed look, I found that the culprit is /var/lib/flatpak I've utilized flatpack to install the applications, but I don't have anything that big of an application to take up so much space :/ Here's the screenshot of what's taking how much inside flatpak: i.imgur.com/57e2mUm.png Is there a way I can force flatpak to reside in the home directory instead by not re-installing the apps?
    – ankush
    Commented Sep 28, 2018 at 11:06
  • 2
    Move the folder and replace it by a symbolic link to the new location.
    – vanadium
    Commented Sep 28, 2018 at 12:02
  • @vanadium thanks for suggesting the workaround. Will do.
    – ankush
    Commented Sep 28, 2018 at 12:09
  • 4
    Hello. Please don't use screenshots for text in your question. Instead, copy from the terminal, paste into your question, select what you just pasted with your mouse, and press the {} button in the editor to format it correctly. Commented Sep 28, 2018 at 13:20

1 Answer 1

3

The flatpak uninstall --unused command removes runtimes that are no longer needed.

1
  • +1 This freed up 3GB on my disk.
    – Kitswas
    Commented Jan 17 at 4:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .