apk fetch
would be nice with an apk fetch -R which could download/copy packages and their dependencies from system repository to either configurable cache dir, a given dir from command line and maybe even to stdout.
This can be used by the build script to make ISO with only some packages and their dependnencies. (I.e vserver iso with vserver kernel, util-vserver, lvm2, mdadm, e2fsprogs etc).
This can also be used by mkinitramfs script to find the needed packages.
For example:
apk fetch —stdout alpine-baselayout | tar -C $INITRAMFS_DIR -zx
$RAWBASEFILES
(from redmine: issue id 24, created on 2009-04-09, closed on 2009-04-15)
- Changesets:
- Revision 9567337f by Timo Teräs on 2009-04-15T06:56:09Z:
fetch: new applet to download .apk files
Fixes #24.