从边缘存储库添加高山软件包
问题描述:
如果我使用的是Alpine 3.8,如何从Alpine Edge存储库中添加特定的程序包?甚至支持吗?据我所知,没有等效的反向移植。
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.
我想添加新版本: https://pkgs.alpinelinux.org/package/edge/community/armhf/librdkafka
,而不是3.8版本中的旧版本:
https://pkgs.alpinelinux.org/package/v3.8/community/s390x/librdkafka
And not the older version in the 3.8 repo: https://pkgs.alpinelinux.org/package/v3.8/community/s390x/librdkafka
答
您可以使用-repository
参数为apk指定确切的存储库。
您的情况是:
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