Skip to content

Instantly share code, notes, and snippets.

@stokito
Created August 16, 2023 12:59
Show Gist options
  • Save stokito/4901a4b76834a8d1ec33f70d70785e67 to your computer and use it in GitHub Desktop.
Save stokito/4901a4b76834a8d1ec33f70d70785e67 to your computer and use it in GitHub Desktop.
Extract/Untar files from Alpine APK file.
# The Alpine package apk file is just a tar.gz file with additional files
# https://wiki.alpinelinux.org/wiki/Apk_spec
# untar into /tmp/ folder without the .PKGINFO and .SIGN.RSA file
tar -xzf openjdk8-jre.apk -C /tmp/ --exclude=.PKGINFO --exclude=.SIGN*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment