What are the system cleaners that can be recommended for EOS

CCleaner is one the most recommended apps on Windows platform to cleanup and delete unwanted files.

If we want an equivalent app for Linux what would be the recommendation? KDE Sweeper and BleachBit are two which come to mind. But apart from that are there any other cleaners that you can recommend? Do you use any cleaner on EOS or other distro that you can recommend?

I would like the app to do the following. This is not an complete list.

  1. Cleanup and remove unnecessary language files. il18_es, il18_de and so on.
  2. Cleanup and remove various caches of the applications, not limited to browsers/pacman/yay/etc.
  3. Find all the unwanted backup and lock files which are no longer used and clean it up.
  4. Remove all the X/Wayland cache, Thumbnail cache, Kwrite/Gedit/notepad++ cache, Acrobat/Okular/etc cache, etc.

If there are 2 apps which can do this, that also works. For example KDE Sweeper only clears KDE related items. Nothing else. But I can consider using KDE Sweeper along with other app.

To be honest I would only recommend a cleaner that only cleans what should be cleaned, and i have strong doubts it has been ā€œinventedā€ yet. When I was still actively using Windows I came across a lot of reports on the internet from people that messed up there system using CCleaner.
So unless you have very good knowledge of what such a cleaner does , donā€™t use it. Just my 2cents.

1 Like

I suggest, instead of looking for a one-click-do-it-all application which make everything behind a nice looking GUI, look for ways of doing it yourself by learning simple maintenance commands.

You donā€™t need to master it all right from the beginning. Take your time and learn about your system, about its filesystem, package management etc. ArchWiki is invaluable source of information. Start reading and ask question here in the forum if something is unclear.

This is a good start: https://wiki.archlinux.org/title/System_maintenance

5 Likes

So went through the wiki and found out that the following are listed as GUI based applications

  • BleachBit
  • Czkawka GUI
  • dupeGuru
  • File Shredder
  • FSlint
  • Shredder
  • Sweeper

Now dupeGuru and Czkawka do not look like disk cleaners more like finding duplicate file finders File Shredder is a GNome Utility. FSlint has not been updated since 2017 and now recommends that we use Czkawka.

Could not find in Wiki the location where temp/cache files for say vlc player, LibreOffice, etc are kept.

So has anyone used the other apps given in the list above. And are there other apps that we can consider?

Besides a duplicate finder I dont use any of these and donā€™t recommend them.

The issue besides we are not Windows and collect a bunch of Garbage many of these programs can be more harmful than good. (Memory management in Windows and Linux is very different) My best Recommendation for running a smooth system is to follow these two threads.

10 Likes

This is all you need

CLEAN JOURNAL:
journalctl --vacuum-time=4weeks

CLEAN CACHE (All Packages):
paccache -r

CLEAN CACHE (Uninstalled Packages):
paccache -ruk0

REMOVE ORPHANS:
yay -Yc

Be careful with provided programs. If you do not know what you are doing, your entire system will be destroyed very quickly. But in the end, everyone has to know for themselves what they are doing

5 Likes

The -r by itself alone will not clear all the packages from the cache. It will keep the 3 recent ones for each package.

If you want to clear out the whole of /var/cache/pacman/pkg, you can use pacman -Scc.
Or paccache -rk0, I think.

Correct!

2 Likes

I only contacted him because I have already damaged one or two systems with improper use of BleachBit. Itā€™s no different with the others. Therefore: if you donā€™t know what youā€™re doing: Hands off!

2 Likes

ā€œimproper useā€ is the keyword. Wrongly configured, it can remove more things than you want. And never to be run as root.

Cautiously configured and using its whitelist for things you know that you absolutely donā€™t want it to be removed, it is OK.

I use it this way, and run it with an alias for bleachbit -c --preset from a terminal which applies your configs from the GUI.

2 Likes

I did not understand by ā€œI only contacted him because I have alreadyā€. Can you please explain it? Or maybe rephrase it?

Apart from running BleachBit as root, do you recall what options were selected which resulted in damage to the systems? If yes can you please share?

Thanks for the warning about use of BleachBit. Will keep that in mind.

1 Like

Thanks @thefrog. These links help

1 Like

Thanks @cactux. Will keep this mind, i.e. never to be run as root. Any other suggestion or tip? Any and all would be welcome. :smiley:

Would it be possible to run this with systemd-tmpfiles-clean.timer? You know put these in a config file inside the directory /etc/tmpfiles.d/?

While it is possible to run the commands as a ā€˜Scheduled Taskā€™ I would highly recommend NOT doing this. These commands only take a minute to run and you can just alias them so as not need to remember the full command. I do this once a month before my weekly backup. The issue with Automating these things is that it could remove something you are unaware of that you needed.

1 Like

Ah my dream of running an unattended system which manages itself is slowly fading away.

OpenAI/Anthropic this is a perfect usecase for one of your agents. Intelligent Agents which can handle the maintenance/update/backup of Arch based systems cannot come early enough. :grin:

Why? Its not that hard really. I mean you act like its pulling teeth in which I say if its not for you fine donā€™t use it.

Oh, nothing references this /boot/efi/linux*, lets just remove it and keep the system tidy (AI bot)ā€¦in fact, what is this initrd, lets delete it too.
Hey, the /boot directory tree is empty, lets delete it.
Thatā€™s the kind of logic youā€™d get from todayā€™s AI (I think).

3 Likes

Everything I do is overkill. . . . . I run an use the following and havenā€™t yet seen any deterious effects. . .

Bleachbit
Stacer
Sweeper
Yay -Scc
Octopi cache cleaner (I run Octopi occasionally. . . )
paccache -r
paccache -ruk0
yay -Yc
paru -c

Overkill . . .. .

Rich :wink:

Oh god no. I was just kidding.

Yikes. :face_with_spiral_eyes:

You are really living on the knifes edge. And you have not seen any deleterious effects? any?

1 Like