Below are easy install instructions by OS and Architecture. As always there are always the standard instructions in the README.md as well.
darwin
386 - darwin
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="8ab3902fa4614ca51b9229f840c1aca2636736b331ee9442b61ac38ea0059e4e"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.3.6/apk-file-darwin-386" -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 - darwin
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="92bf2b7c7dcf3a38f63ac692c05eca19ba78d1c007cdb545c014fc523c94af73"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.3.6/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
386 - freebsd
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="3b095a601e148600daeefdf7370710827d964268ec496853e1c818c1c3ed170f"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.3.6/apk-file-freebsd-386" -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 - freebsd
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="715bb7c9cd108120935c01879cd42565bb6732f337ab8a2a7698749017c4b60b"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.3.6/apk-file-freebsd-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
linux
386 - linux
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="d6b80c025a994d28c53a37bffc2c861ffbb5b812ce1a651d446becd518b47da4"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.3.6/apk-file-linux-386" -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="cca0ebcb0cdcef32bc031468c6e0bce5d68ef37ee95f19f201b0b44a86e2ff5b"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.3.6/apk-file-linux-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
arm - linux
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="0abe3f5e8e39fee575f9626a975fd1de65bf457b36dce31b43bbfb8b4dd15048"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.3.6/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="ade5d4042aa455765ec495ad2a6d63f732087ff59837fbeceb402687078cbecb"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.3.6/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
solaris
amd64 - solaris
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="d7d7e16031ab936aa7708132f2f2935e211c3cf60d05de33c158fa3d1414f96f"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.3.6/apk-file-solaris-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
windows
386 - windows
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="f7d0a534fe9d9fd8d4c6a9af00294f90ba9530230f3f1e00e6df3dad1e33a581"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.3.6/apk-file-windows-386" -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 - windows
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="6cbc5c082e4ff40c07b53411f740dd35b08cca0983c5e4fb7f910190706c30ee"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.3.6/apk-file-windows-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