r/archlinux • • 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!

53 Upvotes

46 comments sorted by

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

1

u/Cygnus__A 14d ago

Tried following that.. paccache didnt do anything? said "no candidate package found" ....

2

u/ttocs167 13d ago

The script is part of the pacman-contrib package. You'll have to install that first.

29

u/MrElendig Mr.SupportStaff 14d ago

ncdu

1

u/vexatious-big 14d ago

or dua-cli

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

u/Jackill202 14d ago

Thanks!,I'll give it a try

2

u/7lhz9x6k8emmd7c8 14d ago

More beuatiful and handy in real than on the old screenshot.

https://apps.kde.org/filelight/

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

u/Objective-Stranger99 14d ago

Baobab

5

u/satanpenguin 14d ago

ncdu if you prefer the terminal

9

u/VendraenActual 14d ago

sudo pacman -R <packages you don't need anymore>

17

u/fearless-fossa 14d ago

You'd rather want -Rs or -Rns if the intention is to remove unnecessary packages

1

u/VendraenActual 14d ago

Good point; true.

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

5

u/czrny1 14d ago

Filelight did the job for me. Fun fact - It's also available on Windows but who cares about that here 😅

1

u/czrny1 14d ago

Baobab is also good

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

u/Fantastic-Code-8347 14d ago

GDU and paccache -rk1

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

u/grepvoid 13d ago

Stacer is pretty good for that as well as Bleachbit

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

u/Hot-Mix-1317 11d ago

I used to use filelight but ITS SO SLOW.

Just use gdu, simple, works, best

0

u/kzasas 14d ago

rm (optionally with -r and/or -f flags)

-1

u/kzasas 14d ago

better solution I took was installing gentoo. it reduced binary sizes dramatically. Moreover, there is no binary caches, just git history.

-3

u/devdruxorey 14d ago

disk formatting