This is the story: I occasionally install packages which I happen to remove afterward (via Yast - Install Manager). Some of those packages add dependencies to the system, but don’t delete them when uninstalled. This leads to the system getting cluttered with dependencies that are no longer needed, which I imagine will cause it to become slow over time and wastes disk space.
I looked at package details in Yast, and it seems the software manager knows which packages were installed specifically by the user and which are there as dependencies. Normally, I only install software via Yast repositories, and if external programs have dependency libs (typically compilers like gcc) I manually install those too. My question is if Yast can scan the dependencies of all installed packages and generate a list of all abandoned dependencies, which I can then pick from and delete if I’m sure. It would really help at keeping my system clean, as long as it’s safe. Packages that Yast doesn’t know about should of course be ignored.
In case it’s possible to do, I wanna know how safe this is. Specifically if there’s a risk of making the system no longer boot, or breaking something beyond repair. As far as I know, if Yast lists a package as a dependency for another package that no longer exists, it doesn’t make sense to keep it nor should removing it break anything, but who knows? Anyone know how this can be done?