How good is Pop_OS at cleaning up after itself?
One of the things that always annoyed me about windows was all the orphaned and old files it leaves behind after an update. Slowly but surely it would start to eat at your hd space and you had to find cleaning software to dig it all out. Although it has improved dramatically over the years.
So I'm curious how Pop handles this. Do I need a cleaning program or does it manage old and unused files on its own?
Posted Jun 13, 2021, 1:02 AM UTC
Package managers on Linux take note of every file that a package installed, and what packages are installed. When you receive an upgrade, the package manager will remove all files that belonged to the installed package before extracting the new files from the new one. This applies globally to virtually every Linux distribution.
There can be some left over configuration files if you removed a package without using the
--purgeflag, but they're not going to cause any system slow downs or take up much space at all. Some software may have written config files locally if you ran it, but they also aren't going to cause any harm. Temporary files are wiped out by the next boot, if not on shut down.Very cool. Thank you for the reply!
something to remember is that in general - the package manager tools do NOT 'clean up' the users home directory.
I see many cases where a person uninstalls a program (say firefox for example ) and then reinstalls it - and expects the program to have totally 'clean' 'back to defaults' settings.. Thats typically not how it works.
Also programs like STEAM and installing programs via WINE - can leave stuff in the users home even after removing steam or wine.
Good Luck.
That makes sense. Those files are pretty easy to get to and clean up though. My concern was having to dig around in the root structure for random bits in an OS that I still know very little about.
I like to keep things tidy in my systems. It's nice to know I don't have to worry about too much.
compared to windows... its not really an issue. :)
Bleachbit, sudo apt autoremove, sudo apt autoclean
can also clean the old files
Just one thing I observed:
when I did "fresh installation" using the bootable usb, there's one new bootloader being created. I did it for several times, and now I have some extra "Pop!OS" bootloaders should I open up the boot order menu... don't know how to get rid of it.
(clean installation and wipe the drive can do but that's not practical)
The active boot directory is here:
Run,
Check the boot menu for old uuid's with
Example output,
If it looks like this then Backup all of /boot and /boot/efi
and remove the
/boot/efi/EFI/Pop_OS-uuiddirectories that do not have the current Root FS UUID: in the name.