When you go to YaST > Software > Software management, you can use a View called Package Groups. Somewhere at the bottom of this list there is “Orphaned Packages”.
But be carefull, the fact that no other packages needs a package does not mean that you do not need it. To give an (obvious) example: FireFox is (probably) not needed by any other package as a dependancy, but it depends on you if you need it
The general consensus here (search for other threads about this subject here in the Forums, you did not realy think you are the only one bringing this up, didn’t you?) that it is not worth the effort to remove these for a few MBytes of diskspace.
Looking in YaST to my list of “Orphaned packages” I get the idea that those are packages which can not be found in any active repo in my repo list. Which is something completely different from what I told above.:shame::shame:
you disabled the repo it came from (as I did).
But in both cases, you have to decide if you need it
As other people felt some need for doing what you want to do you could search the forums with terms like “orphaned package” (as I hinted above).
Maybe you find some clever zypper command there. Or you could studu *man zypper *yourself.