apk-inspect is a CLI tool built on the alpkit library for extracting metadata from Alpine’s APKv2 packages and APKBUILD files to JSON.
If your package manager doesn’t provide apk-inspect, you can use a pre-built binary.
-
Download and verify alpkit binary for your OS and CPU architecture (pick the right link from the list above), for example:
curl -sSLO https://github.com/jirutka/alpkit/releases/download/v0.1.0-pre.2/apk-inspect.x86_64-linux curl -sSL https://github.com/jirutka/alpkit/releases/download/v0.1.0-pre.2/checksums.txt | sha256sum -c --ignore-missing
-
Install
apk-inspect
somewhere on yourPATH
, e.g./usr/local/bin
:install -D -m755 apk-inspect.* /usr/local/bin/apk-inspect
All Linux binaries are statically linked with musl libc, so they work on every Linux system (distro) regardless of used libc.
This project is licensed under MIT License. For the full text of the license, see the LICENSE file.