Bugzilla – Bug 329018
software manager: provide aid in removing unused libraries (uninstall)
Last modified: 2010-11-27 15:13:24 UTC
This is typical situation, I install app A but it requires library L. I install both, then it appears I don't need A anymore, so I remove it, but I have no clue what to remove too. From user point of view, it would be great to click on "check for unused software" and SM would show list of unused libraries, so user could easily remove them. Technically I can imagine it could be done by building reverse dependency tree and show all leaves. The drawback of such approach would be in including main apps too :-) Maybe it could be solved by checking if: 1) there is an executable in the package 2) any of the files in the package were accessed lately 3) did user install it explictly or it was SM call (fullfilling requirements)
This functionality is rather 'tricky' to get right since Linux doesn't track usage of files. I'd encourage you to bring up you proposal on either the opensuse-factory or opensuse-softwaremgmt mailing list, so we can drive this to a broadly accepted consensus.
Revisit in preparation of Code11
Michael, jfyi. The topic is dicussed on opensuse-softwaremgmt
Klaus, recently I spotted a discussion on Polish suse forum and I was a inspired by it and by need of having such tool. So I made pretty small program that looks for orphaned packages and what's more check the access time for every file in the package. The process is lengthy but the results are quite accurate. What's more it is possibility of blocking well-known packages (rpm, yast -- those shouldn't be uninstalled). Of course this works as good as: a) packages are well prepared -- I already spot that vim&relatives are based on yast patterns, not on rpm dependencies b) user didn't turn access time info off Just for the record anyone interested can give it a try and test describe algorithm: http://margot.cad.pl/lumberjack.php it does not remove anything, it just shows the list with suggestion.
10.2 is obsolete now and this might be a kind of feature request and duplicate of "#305305: 1-click uninstall" - https://features.opensuse.org/305305 . I'll close this as FEATURE. Thanks! (changed during the 2010-11-27 bug day about bugs for obsolete versions of openSUSE)