Find way to reliable find the origin package of a subpackage.
Created by: maxice8
the inverse can be done with
apk list --origin we want
apk list --mainpkg snooze-doc to return
Most preferable is a way that can be done quickly for a large volume of packages like Void Linux's xbps which uses symlinks so they can just be followed via the filesystem.