Mail archive
alpine-devel

Re: [alpine-devel] apk fetch --recursive broken in >= v3.7

From: Roger Newman <roger.newman_at_riseup.net>
Date: Mon, 4 Dec 2017 19:39:57 +0100

Hi Dean,

without "--recursive" you will not fetch the packages dependencies. Take a look at an example from v3.6 where it works as expected.
I choose docker this time because of its dependencies.

## without --recursive

/ # apk fetch --keys-dir /etc/apk/keys --repositories-file /etc/apk/repositories --output /tmp/ docker
Downloading docker-17.05.0-r0


## with --recursive

/ # apk fetch --keys-dir /etc/apk/keys --repositories-file /etc/apk/repositories --output /tmp/ -R docker
Downloading device-mapper-libs-2.02.168-r3
Downloading libressl2.5-libcrypto-2.5.5-r0
Downloading libseccomp-2.3.2-r0
Downloading musl-1.1.16-r14
Downloading busybox-1.26.2-r9
Downloading ca-certificates-20161130-r2
Downloading iptables-1.6.1-r0
Downloading libmnl-1.0.4-r0
Downloading libnftnl-libs-1.0.7-r0


As you can see, only docker it self get fetched.

/ # apk fetch --help
...
Fetch options:
  -L, --link Create hard links if possible
  -R, --recursive Fetch the PACKAGE and all its dependencies
  --simulate Show what would be done without actually doing it
  -s, --stdout Dump the .apk to stdout (incompatible with -o, -R, --progress)
  -o, --output DIR Directory to place the PACKAGEs to


-- 
Roger Newman
---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Mon Dec 04 2017 - 19:39:57 UTC