package: nginx-lua 1.8 missing?

3 posts / 0 new
Last post
#1 Thu, 2015-08-20 12:06
serbaut
  • serbaut's picture
  • Offline
  • Last seen: 2 years 6 months ago
  • Joined: 2015-08-20

http://pkgs.alpinelinux.org/package/main/x86_64/nginx-lua lists version 1.8 but when i install it I get 1.63:

$ docker run alpine apk --update fetch nginx-lua
fetch http: //dl-4.alpinelinux.org/alpine/v3.2/main/x86_64/APKINDEX.tar.gz
Downloading nginx-lua-1.6.3-r2

Wed, 2015-09-09 18:45
harningt
  • harningt's picture
  • Offline
  • Last seen: 8 months 1 day ago
  • Joined: 2015-07-06

This is due to the fact that v3.2 did not merge that feature fix. If you want latest & greatest packages, you'd want ot use the edge repository.

One way I did this (while keeping a mostly stable system) is to add an '@edge' repo (as well as '@testing')

Contents of /etc/apk/repositories:


http://dl-3.alpinelinux.org/alpine/v3.2/main
@edge http://dl-3.alpinelinux.org/alpine/edge/main
@testing http://dl-3.alpinelinux.org/alpine/edge/testing

You would then do

apk add -U nginx-lua@edge
to get it installed.
If I recall right, any dependencies it has that are not in the 'main' repository will be pulled in with the @edge prefix, else you get the stable one that meets the version requirements.

I suspect this answer is also relevant to many other threads about an update being indicated but missing from people's attempt-to-update.

Mon, 2015-09-28 16:19
serbaut
  • serbaut's picture
  • Offline
  • Last seen: 2 years 6 months ago
  • Joined: 2015-08-20

Thank you!

Noticed you could specify repository with -X:

$ docker run alpine apk --update -X http://dl-4.alpinelinux.org/alpine/edge/main fetch nginx-lua
fetch http://dl-4.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-4.alpinelinux.org/alpine/v3.2/main/x86_64/APKINDEX.tar.gz
Downloading nginx-lua-1.8.0-r5

Log in or register to post comments