v0.1.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
386 - darwin
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="169481554970d12b72d544cc5db76454f0331c7a3469494dd7f20e044dcfd809"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.1.1/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="a01bcb2982d8ef145a0757e4cab7bcf62ab7f8601a7ce6194872ba671fca7dde"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.1.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
386 - freebsd
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="9c02176974dfbc38eadbf97df57002a36d54922363db5d6282f48f6a18ad4d66"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.1.1/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="4961afe19c76cfdb9ff5dc501ee0878ae23d1674c7b295198bc9e27a0c1aaf61"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.1.1/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="1efe18b9a32c362fbd227f834f4d7b4b79fdf27414651d6d2903172d83211831"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.1.1/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="c65ec8852c9cabfe8a2090d920a4e1c3077631aa35594b84ea6a438fde3c7465"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.1.1/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="2a4720f57a2873d26dae220ce5dfc0f6654cad8d6fe1b142e4b5d3f9d16a33f8"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.1.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="80f9e27c449acba08305efc179589248c71331beb5f449fae0e5c7c7bad67c8a"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.1.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
solaris
amd64 - solaris
# Export the sha256sum for verification.
$ export APK-FILE_SHA256="f54abee234dd9bb23cb7f33d6a3d65afbab996a16a21ef945160612c116bfdce"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.1.1/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="ee3d66542784fe43f2059cf57412afd74034573b4e9dc7b5febfec85c14d004c"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.1.1/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="b89f0394286ee68eca5047f9f126205ea430ac248a8e85f107158f552f8a77a1"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/apk-file/releases/download/v0.1.1/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