How do you keep your /home clean

Hi,

I do not like having config files, that are obsolete, from application that I don’t use anymore and so on…

How do you keep clean you /home from those files?

greetings,
Daniel

1 Like

I would use a file manager, go to .config folder and delete files/folders that I won’t be needing anymore.

1 Like

until now I do that.

But isn’t there a script that check, witch config have an installed application an when not, delete them

For flatpak I can use:
flatpak uninstall --delete-data “application name”

Is there an equivalent for pacman or yay?

I normally don’t, because ~/.config on my systems is only 20 MiB or so. Utterly negligible.

If something bothers me, I delete it. :man_shrugging:

3 Likes

Mine is 10 times bigger…
honka_animated-128px-34
So much BLOAT!

I suspect more than half of that is by a single application (some bloatware). Which one is it?

1 Like

honka_animated-128px-35

image

Dammit, you’re right :rofl:

I HATE this proprietary garbage, but i have to use i for stack tabs feature, to overcome one super-important site’s limitations for my work…
Unfortunately all other browsers stack-tabs, usually in a form of plugins is utter garbage :expressionless:

P.S. To be fair, ~/.mozilla is much bigger, that’s why they don’t store it in ~/.config i suppose :rofl:

2 Likes
~🐸 du -s .mozilla
29M     .mozilla

:man_shrugging:

I just don’t let browsers store crap on my machine. Of course, when Firefox is running, it can get much bigger, but that gets deleted automatically as soon as I close it.

With a /hoover? :rofl:

2 Likes

Not what I know of.

And judging by the input above, if there were any, you would have known it by now :wink:

I do the same.

Frankly, I would rather not remove old configs unless I explicitly want to reset them for some reason.

They take up almost no space at all and then I have the configs if I ever decide to re-install the software.

No, the package manager should never touch your home directory.

Even that flatpak command will only remove the data that is isolated to that application. Depending on the flatpak settings, it may still leave data in your ~/.config

2 Likes

I wouldn’t trust such a script not to remove more than I wanted. In general, this windoze mentality of “cleaning the system” is not directly applicable to Linux. Now, various Tubers will suggest using some kind of a system cleaning utility like BleachBit or whatever it is called, but from reading various Linux forums for several years, I’ve seen several cases of such programs causing unwanted data loss and broken systems. The risk of that is not worth a few megabytes (or, more often, kilobytes) of storage such a program saves you.

3 Likes

~/.cache
can grow…

BLOAT!!!111 :scream: :scream_cat: :astonished: :exploding_head:

If you get too happy deleting “rc” files like those related to KDE Plasma, it could reset the desktop and other things which could be frustrating. It’s better not to delete anything at all.

Although in the past I tried to look for where the file manager stored thumbnails, or “squiggle” backups to text files, or “GOUTPUT-STREAM” with zero length or “recently-used.xbel” backups and stuff like that so I could delete them. But as was said multiple times in this thread before, the gain from delete isn’t going to approach 100MB anytime soon.

For me it isn’t a question of space, only to keep my files clean.

1 Like
find ~/.cache/ -type f -atime +100 -delete
1 Like

That will delete your AUR helpers caches and you may lose the ability to properly view diffs between versions.

1 Like

This is also less about saving a few MB. It is probably more mentally based. One simply wants to feel that the system remains clean from unnecessary legacy. I can well understand, because I am also afflicted by this disease …

1 Like

Thank you, I didn’t know that.