r/linuxmint • u/Inquisitive-Mind-A • 24d ago
SOLVED Is there a program that selects and deletes all orphaned files?
I'm a person who HATES unused storage. Because I know leftover files build quickly, I try my best not to install anything I know I won't use. But there are occasions where I do test something like a fix. I tried deborphan but that gets rid of the entire DE (and I'm almost certain I've used it improperly). I'm annoyed having to do a fresh install every time I notice my storage has significantly decreased from before the packages/apps to after uninstallation.
0
Upvotes
•
u/AutoModerator 24d ago
Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
5
u/chuggerguy Linux Mint 22.3 Zena | MATÉ 24d ago
If I understand correctly (not sure about hating unused storage but leftover files maybe)...
Have you tried using
apt purge someAppinstead ofapt remove someApp? It might do a better job removing any config files it created. (mostly in$HOME/.config/and/etc/maybe )And follow that up with
apt autoremove. That should remove no longer needed leftover dependencies of someApp.If you use timeshift you can create a snapshot right before experimenting and then restore when finished. ("a fix" might better be undone like this unless you keep good track of all changes so you can undo)
I use identical mirrored instances of Mint. One master, one slave. When I'm thinking, I use the slave instance for testing. If I'm not and want to make sure I'm back to where I was, I boot slave and mirror back to master. That's just me though.
Have fun and good luck.
6
u/zuccster 24d ago
This feels like something you should work on with a therapist rather than an Mint issue.
2
u/rcentros LM 21/22 | Cinnamon 24d ago
sudo apt autoremoveshould help. There's a man page on "apt autoremove." It looks like there is also a "purge" option -- but I haven't gotten too deeply into this. I just runsudo apt autoremovefrom time to time.1
u/sineout 24d ago
sudo apt purge packagenameto completely erase a package (including configuration files and the like except for those in your home directory, those you'll need to look for manually), thensudo apt autoremoveto remove any orphaned dependencies1
u/_Lost-In-The-Weeds_ LMDE7 Cinnamon 24d ago
In the future when removing software use
That will remove the program and it's configuration files, I don't know how to do that after the fact other than manually hunting things down.
But I suspect that is the small end of your drive space issue, logs can be an issue, as can ~/.cache
Spend some time with the disk usage analyzer and figure out where your space is going.
My / partition is pretty trim, 7.62GB at the moment and that includes /home but none of my data. Also I am using lz4 disk compression.
3
u/JoeLinux247 LM 22.3 C 24d ago
Also for your consideration ...
How to Clean Linux Mint Safely
https://easylinuxtipsproject.blogspot.com/p/clean-mint.html
2
u/nisitiiapi Linux Mint 22.3 Zena | Cinnamon 24d ago
Others have already noted
apt purge <package_name>andapt --purge autoremove. But, if you want to check for any "lingering" config files from when you did not use purge, there are some options:dpkg -l | grep "^rc"and remove them withaptitude purge ~c.0
u/Due-Result7928 24d ago edited 24d ago
https://czkawka.org/#download
It is just very good.
otherwise you can safely type
sudo apt autoremove (in a terminal).
Of course a blockhead down cast...It was AI..it is just working well.