Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
apk-tools
apk-tools
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 60
    • Issues 60
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 15
    • Merge Requests 15
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • apk-toolsapk-tools
  • Issues
  • #7103

Closed
Open
Opened Apr 08, 2017 by Chris Giorgi@TemptorSent
  • Report abuse
  • New issue
Report abuse New issue

Add ability for apk to extract files, extended headers, and metadata directly from .apks

Currently, apk offers no direct way to extract specific contents or metadata from .apks files and the pax headers utilized in the .apk archive format are not easily read with any available tool.

Many scripts need to extract a subset of files from a .apk, and the current method requires either downloading to a temp directory or using apk fetch to stdout pipe repeatedly (which is very wasteful for multiple invocations), verifying with ‘apk verify’, listing with ‘tar -tvf’ piped to sed (using a subshell to generate the expressions) looking for the desired files, capturing which of the desired files are found in the .apk, and finally extracting the found files using ‘tar -xvf’.

Additionally, none of the available tools can read the pax headers in a usable form, reducing one to parsing the raw tar stream with awk to extract the desired headers and metadata, such as checksums.

apk should expose functionality allowing extracting or retrieving all information from each entry as well as accessing archive-level meta-data, and should support basic fnmatch style globbing of entries to be extracted.

(from redmine: issue id 7103, created on 2017-04-08)

Assignee
Assign to
v3.0
Milestone
v3.0
Assign milestone
Time tracking
None
Due date
None
3
Labels
Feature High New
Assign labels
  • View project labels
Reference: alpine/apk-tools#7103