[go: up one dir, main page]

Skip to content
/ alpkit Public

Rust library and CLI tool for reading Alpine Linux’s apk package format and APKBUILD

License

Notifications You must be signed in to change notification settings

jirutka/alpkit

Repository files navigation

Alpkit

Version on crates.io Minimal supported Rust version docs.rs CI Workflow

This project provides a Rust library and CLI tool for reading the APK(v2) package format and APKBUILD.

apk-inspect

apk-inspect is a CLI tool built on the alpkit library for extracting metadata from Alpine’s APKv2 packages and APKBUILD files to JSON.

Installation

Using Pre-Built Binary

🐧 Linux: [x86_64] [aarch64] [armv7]
macOS: [x86_64]

If your package manager doesn’t provide apk-inspect, you can use a pre-built binary.

  1. 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
  2. Install apk-inspect somewhere on your PATH, 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.

From Source Tarball

wget https://github.com/jirutka/alpkit/archive/v0.1.0-pre.2/alpkit-0.1.0-pre.2.tar.gz
tar -xzf alpkit-0.1.0-pre.2.tar.gz
cd alpkit-0.1.0-pre.2

cargo build -p apk-inspect --release --locked
install -D -m755 target/release/apk-inspect -t /usr/local/bin/

License

This project is licensed under MIT License. For the full text of the license, see the LICENSE file.