如何从alpine aports安装包

时间:2017-04-06 14:10:24

标签: alpine

我一直在尝试安装一个存在于阿尔卑斯山体育馆的包裹 特别是that一个,但我找不到。它甚至可能吗?如果是,怎么样?

1 个答案:

答案 0 :(得分:1)

您在问题中定义的包filebeat位于edge存储库的testing分支中。默认情况下,在高山容器中没有这样的回购。

为了在alpine平台上安装filebeat包,我们需要:

1。添加testing repo:

/ # echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories 

2。安装filebeat包:

/ # apk add --no-cache filebeat
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
WARNING: This apk-tools is OLD! Some packages might not function properly.
(1/1) Installing filebeat (5.6.3-r0)
Executing busybox-1.27.2-r7.trigger
OK: 20 MiB in 12 packages