Am 26.03.24 um 9:54 AM schrieb Andrei Borzenkov:
What is rather confusing to users^Wadmins is the fact that packages automatically selected during installation/administration are considered "user installed" although users most definitely never consciously installed them. This may happen as an example due to some YaST module adding packages needed by this module, there could be other cases (I have feeling that everything added during initial installation is considered "user installed", but I may be wrong here).
I've also wondered how certain packages ended up being user installed, so at some point I wrote a wrapper around zypper that diff'ed /var/lib/zypp/AutoInstalled before and after the command. If I remember correctly, packages installed as a result of conflict resolution count also as user installed, even though for the most part they're just there to fulfill some requirement. Unfortunately my "tracing" didn't cover YaST, which might also have resulted in some packages being marked as user-installed. It probably did for operations like "switch packages to other repository" that I might have done at some point.