On Tuesday 26 March 2024 09:09:31 Michal Hrusecky wrote:
Michael Andres via openSUSE Factory - 8:54 26.03.24 wrote:
On Monday 25 March 2024 22:30:26 -pj via openSUSE Factory wrote:
On 03-25-2024 08:31AM, Michael Andres via openSUSE Factory wrote:
...and not just the ones otherwise blocking the dup.
Would passing the command then wipe out needed existing orphaned files? e.g. On the machine here there are important and needed printer and scanner packages.
'Needed' is 'required by other packages', not 'important for user or functionality'.
How does zypper tracks what is Needed? Dependency-wise, there has to be something requiring leaf packages in dependency tree. When I install `mc`, there is no other package requiring it, so it is Unneeded orphan? 🤔 This sounds like something I was missing for quite some time, would be nice to see a list of leaf packages that I have installed and decide that I no longer need this branch... Or did I misunderstood what it does?
An orphan (AKA dropped, unwanted) (zypper packages --orphaned) is a package which is not part of any enabled repository nor does it have update candidates within those repos. So orphans contain discontinued packages as well as 3rd party packages IF they are not provided by a repository. Unneeded (zypper packages --unneeded) are autoinstalled packages which are not required by other packages. When removing packages you can use `zypper remove --clean-deps` to remove the package along with it's unneeded dependecies (or set solver.cleandepsOnRemove in /etc/zypp/zypp.conf and use --no-clean-deps to disable it for one command). -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres (he/him/his), Engineering & Innovation, ma@suse.com +------------------------------------------------------------------+ SUSE Software Solutions Germany GmbH www.suse.com Frankenstr. 146, 90461 Nuernberg, Germany Geschäftsführer: Ivo Totev, Andrew McDonald, Werner Knoblich (HRB 36809, AG Nürnberg) +------------------------------------------------------------------+