I am interested in resolving apk package dependencies, ideally with a scripting language like python. Basically I want to be able to derive a dependency tree of a package, without the need to run on a alpine environment.
So far I am analyzing the .PKGINFO file and the dependencies. And fetch the other apk's using http://dl-cdn.alpinelinux.org/alpine/edge/main/{arch}/{package}-{version}.apk
. However from the .PKGINFO depencd entries it is not possible so far. An excerpt of the Python3 apk as example:
...
depend = so:libbz2.so.1
depend = so:libc.musl-s390x.so.1
depend = so:libcrypto.so.3
depend = so:libexpat.so.1
...
I know the post How to search for a file in apk packages and liked the idea of fetching information from the API https://api.alpinelinux.org, which isn't accessible anymore. Does someone know if a similar API is still running?
Is there any option other option to identify the package based on the .so file other than webscraping similar to apkfile as mentioned above?
Or does anybody see a more suited way of deriving the dependency tree for a package?