On 2017-04-27 15:52, Anton Aylward wrote:
On 27/04/17 09:07 AM, Carlos E. R. wrote:
On 2017-04-26 19:45, Anton Aylward wrote:
BEWARE ! ! !
None of these are to be used indiscriminately for wholesale removal!
The algorithm ONLY checks for these being at the end of some kind of dependency tree. Many should not be removed.
"Orphaned" lists only those rpm that are not included in a repository. It is not exactly a cleanup.
You are failing to differentiate between the command 'rpmorphan' and the command 'zypper packages --orphaned'
The first one is unknown to me and not installed.
They are not the same; they produce two different lists. They have two different algorithms.
Your assertion is true only for the latter. The former walks the while tree of dependencies in the RPM database looking for what amounts to 'end-nodes', things that have nothing depending on them. Well, OK, if it was _just_ than then it would list every executable :-) So it does a fair bit of pruning. But is is very different from the other command.
For example, the independently installed Adobe Reader from Xerox shows up, as do many fonts and many icon sets. While these can be removed without actually triggering a cascade of other things, that doesn't mean the SHOULD be removed.
They don't show here :-)
Try running both the commands.
Telcontar:~ # zypper install rpmorphan ... Loading repository data... Reading installed packages... Resolving package dependencies... The following 7 NEW packages are going to be installed: perl-Curses perl-Curses-UI perl-MDV-Packdrakeng perl-RPM2 perl-Tk perl-URPM rpmorphan The following 4 recommended packages were automatically selected: perl-Curses-UI perl-RPM2 perl-Tk perl-URPM 7 new packages to install. Overall download size: 2.5 MiB. Already cached: 0 B. After the operation, additional 7.1 MiB will be used. Continue? [y/n/...? shows all options] (y): ... Telcontar:~ # cer@Telcontar:~> rpmorphan | wc -l 325 cer@Telcontar:~> It lists many -lang packages, many components of libreoffice. I don't recognize them as orphaned. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)