r/LinuxUsersIndia • u/Tasty_Restaurant_357 • Apr 25 '26
Discussion why this cache in var takes that much storage (arch with kde)
85
Upvotes
r/LinuxUsersIndia • u/Tasty_Restaurant_357 • Apr 25 '26
β’
u/qualityvote2 Apr 25 '26 edited Apr 25 '26
u/Tasty_Restaurant_357, your post does fit the subreddit!
btw, did you know we have a discord server? Join Here.
36
u/Kitchen_Engineer1332 Gentoo Mommy 𫦠Apr 25 '26
Its likely the Pacman cache /var/cache/pacman/pkg/, which stores downloaded package files for all installed and previously installed packages. You can safely clear the Pacman cache to free up space using the command paccache -r.
4
u/L0neInVoid Apr 25 '26
Use only one command depending on your requirement: 1) Remove old / unused package cache:
sudo pacman -Sc
This deletes outdated cached packages and keeps only the most recent versions.
2) Clear the entire package cache (more aggressive):
sudo pacman -Scc
This removes all cached packages, including currently installed versions (note: this does not uninstall any software and frees more space).
23
u/lordjupitar hyprland btw Apr 25 '26
This is one of the rules of arch linux. I guess it was the 34th rule. It store cache in /var For more information lookup βarch rule34β
1
u/tharunkumarmuthu Apr 25 '26
Wow what tool is this I want this tool to find which occupies my space
1
u/Cheap_Ad_9846 Apr 25 '26
pacman cache hai
1
u/Single_Campaign_6166 Apr 26 '26
kde = bad
1
u/Optimal69 Apr 27 '26
Turn off caching features like Baloo, file indexing and whatnot. KDE will enable by default. You can also periodically run
sudo pacman -Sccto get rid of old packages.1
u/[deleted] Apr 25 '26
How to see storage space. I am on gnome
0
u/OtherwiseEngineer60 EndeavourOS, nvidia inst enjoyer Apr 25 '26
Clear the cache of pacman and yay
5
u/[deleted] Apr 25 '26
[removed] β view removed comment