v0.3.1
Below are easy install instructions by OS and Architecture. As always there are always the standard instructions in the README.md as well.
darwin
amd64 - darwin
# Export the sha256sum for verification.
$ export APK-FILE_SHA256=""
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.3.1/apk-file-darwin-amd64" -o "/usr/local/bin/apk-file" \
&& echo "${APK-FILE_SHA256} /usr/local/bin/apk-file" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/apk-file"
$ echo "apk-file installed!"
# Run it!
$ apk-file -h
freebsd
amd64 - freebsd
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="3fb8003da905c61be7bac89ea2fc57653ed70038f6aa2aba0b1d948f0458eb2c"
# Download and check the sha256sum.
$ curl -fSL "" -o "/usr/local/bin/apk-file" \
&& echo "${APK-FILE_SHA256} /usr/local/bin/apk-file" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/apk-file"
$ echo "apk-file installed!"
# Run it!
$ apk-file -h
linux
386 - linux
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="1476317580b635c23e2388f70c2ece9cce3c314e222010e2e6e6d57cec22393d"
# Download and check the sha256sum.
$ curl -fSL "" -o "/usr/local/bin/apk-file" \
&& echo "${APK-FILE_SHA256} /usr/local/bin/apk-file" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/apk-file"
$ echo "apk-file installed!"
# Run it!
$ apk-file -h
amd64 - linux
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="f8b007af2088881cb646afb702d7156971c493f64e7eb7098d069b82c1f30bdc"
# Download and check the sha256sum.
$ curl -fSL "" -o "/usr/local/bin/apk-file" \
&& echo "${APK-FILE_SHA256} /usr/local/bin/apk-file" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/apk-file"
$ echo "apk-file installed!"
# Run it!
$ apk-file -h
arm - linux
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="0df4b0bddd1bb4d7e2452cd2f5073a108a2e6162ebbf0ac2867edefd15d24c0c"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.3.1/apk-file-linux-arm" -o "/usr/local/bin/apk-file" \
&& echo "${APK-FILE_SHA256} /usr/local/bin/apk-file" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/apk-file"
$ echo "apk-file installed!"
# Run it!
$ apk-file -h
arm64 - linux
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="32cb7e69327b709d11bd65fa7d2dd0ad1402d3809c29ed984fbc2514f5ea857b"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.3.1/apk-file-linux-arm64" -o "/usr/local/bin/apk-file" \
&& echo "${APK-FILE_SHA256} /usr/local/bin/apk-file" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/apk-file"
$ echo "apk-file installed!"
# Run it!
$ apk-file -h
windows
386 - windows
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="56acb09b4b3946f98290531243ec6b91e8dd1b683ed992826a15abef03fb803a"
# Download and check the sha256sum.
$ curl -fSL "" -o "/usr/local/bin/apk-file" \
&& echo "${APK-FILE_SHA256} /usr/local/bin/apk-file" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/apk-file"
$ echo "apk-file installed!"
# Run it!
$ apk-file -h