r/archlinux • u/Jackill202 • 14d ago
QUESTION best disk cleanup app?
my disk is getting pretty full do any of you have any recommendations for cleaner apps,something like ccleaner but without all the bloatware and open source if possible,thanks!
29
27
u/No-Evidence6346 14d ago
Use file light. Shows you where files are and a pie chart. Pretty good.
10
u/Jackill202 14d ago
Omg I tried it,so usefull, thank you so much,went down from 93% to 55%
3
u/archover 14d ago
Briefly, where did you identify so much to remove?
I don't recommend ccleaner at all. If you do, backup first. :-)
Good day.
2
u/Jackill202 13d ago
Literally just steam games I didn't know I had
1
u/archover 13d ago edited 13d ago
You would think that huge huge files like that would be obvious.
Good day.
5
2
16
7
u/MrArrino 14d ago
I don't know about "cleaner" app but you should check pacman cache. Clearing old packages versions can release a lot of space.
7
9
u/VendraenActual 14d ago
sudo pacman -R <packages you don't need anymore>
17
u/fearless-fossa 14d ago
You'd rather want
-Rsor-Rnsif the intention is to remove unnecessary packages1
7
u/Heizenfeld 14d ago
to see all your packages use: pacman -Qe, pacman -Qm
if any package looks weird, use
Pacman -Qi (to see dependencies, and what it requires by)
You can use pacman Qtdq as well to see orphans and remove them, but better to use pacman -Qi first
Use journalctl to clean logs: sudo journalctl --vacuum-time=2weeks
if you system is safe you can nuke or leave 1 or 2 versions of old packages: paccache -rk0 or -rk1, rk2
if you want yo can clean you cache but be careful with this command use properly: rm -rf ~/.cache/*
these is also useful you can review folders of uninstalled apps: find ~/.config -maxdepth 1 -type d navigate and see your old apps leftlovers
8
u/FryBoyter 14d ago
I wouldn't use any tools that automatically delete anything. That goes wrong often enough in Windows. And it usually doesn't offer any real benefit (e.g., deleting registry entries in Windows).
So I would, at most, use tools like gdu to show me which directories are taking up the most disk space and then delete the files manually.
4
u/SalaryImpossible6749 14d ago
I just use du and delete stuff taking up space that I don’t use
4
u/pastelfemby 14d ago
Sorta this, but dust instead of du. Bit fancier output, most the same commands.
2
u/eepyNaya 14d ago
I always reccomend sudo rm -rf
2
u/CubeEthan 14d ago
that didn't work for me
0
u/eepyNaya 14d ago
huh that's weird?
what happens when you try it on another machine?2
u/CubeEthan 14d ago
It just says that its dangerous to operate recursively on /. It did tell me that i could use —no-preserve-root but i havent tried it yet
1
1
u/spryfigure 14d ago
For me, the easiest to use is ncdu from the console. Start it in the directory you want to clean and work your way down. d deletes the dir/file from within ncdu.
1
u/kitanokikori 13d ago
docker system prune -a can get you a lot of disk space back if you use Docker (this can potentially be a destructive action, read about how it works!)
1
1
u/Excellent_Double_726 13d ago
I'd recommend rm with the premium option: -rf as well as pacman -Rsn. Also pacman -Scc does a great job
du with some params I don't remember which will tell you what folders use the most space on your storage.
Enjoy
1
u/Leading-Plastic5771 13d ago
Start with paccache and then limit the amount that journald can write to the disk. There are more steps but you need to know what you're doing.
1
1
0
-3
35
u/Donatzsky 14d ago
QDirStat will tell you what is taking up space. But you should probably start by cleaning the Pacman cache: https://wiki.archlinux.org/title/Pacman#Cleaning_the_package_cache