Alpine Add Package from Edge repository

clay picture clay · Oct 19, 2018 · Viewed 22.3k times · Source

If I'm using Alpine 3.8, how can I add a specific package from the Alpine Edge repository? Is this even supported? There is no equivalent of backports, from what I can see.

I want to add the new version of this: https://pkgs.alpinelinux.org/package/edge/community/armhf/librdkafka

And not the older version in the 3.8 repo: https://pkgs.alpinelinux.org/package/v3.8/community/s390x/librdkafka

Answer

valiano picture valiano · Oct 20, 2018

You could specify the exact repo to apk, using the --repository parameter.
In your case:

apk add librdkafka --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main