You are not logged in.
Hello everone
I found a cache folder in my home directory and it countains 8GB of data.
Is it safe to remove it?
when I install something and then I remove it I can reinstall it without downloading it again.
so I want to remove cache folder to free up space.
pacman just saves everything which is a good thing but I want to clear cache weekly.
what should i do?
Last edited by Pezhman (2022-02-01 06:46:10)
Offline
I have deleted my .cache folder a couple of times and it has never caused issue. I would make sure that no programs that are using the cache folder are running, also make sure that you do not accidentally delete your .config folder (as stupid as this is, I have done this before.)
Offline
The .cache folder in your home dir is not the one that pacman will be using though, so if it's your goal to clear the pacman cache then you need to do https://wiki.archlinux.org/title/Pacman … kage_cache
Chances are .cache is so big because you use yay or paru or so, in which case these have their own integrations for their own caches with to appropriate -Sc command
Offline
To build on the above, you may just want to check what's in ~/.cache and remove what you don't have use for. It's always safe to delete any of that content, but much of it is useful and will just be recreated the next time the relevant program runs. In the end this will not really save space but will slow down those programs as they have to redownload any (formerly-)cached data.
But if you look what's in there, you'll likely see directories for programs you no longer use and may no longer have installed. By all means delete those.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks everyone
I cleared my cache with yay -Scc and freed a lot of space.
is there more ways to free up space?
Offline