Alpine Add Package from Edge repository

前端 未结 3 2083
猫巷女王i
猫巷女王i 2021-01-31 15:57

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.

相关标签:
3条回答
  • 2021-01-31 16:11

    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
    
    0 讨论(0)
  • 2021-01-31 16:13

    Edge repository may be enabled permanently. Just do the following:

    sed -i '/edge/s/^#//' /etc/apk/repositories
    
    0 讨论(0)
  • 2021-01-31 16:22

    You can also add the repo:

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

    and reference it with apk via @testing. Example:

    apk add package-name@testing

    0 讨论(0)
提交回复
热议问题