apk policy listing packages in wrong order
Per apk policy --help
packages are supposed to be listed "in order of installation preference".
In Alpine 3.18 with apk-tools-2.14.0-r2
I am instead observing multiple versions of the same package from a single custom repo being listed unsorted in whatever order they are defined in the repo index. The first result is not what is installed:
# apk policy libuuid
libuuid policy:
2.38.1-r7:
https://.../v3.18/main
2.38.1-r8:
https://.../v3.18/main
/ # apk add libuuid
WARNING: This apk-tools is OLD! Some packages might not function properly.
(1/1) Installing libuuid (2.38.1-r8)
OK: 7 MiB in 16 packages
The repo APKINDEX
contains:
P:libuuid
V:2.38.1-r7
A:x86_64
S:13571
I:40960
T:DCE compatible Universally Unique Identifier library
U:https://git.kernel.org/cgit/utils/util-linux/util-linux.git
L:BSD-3-Clause
o:util-linux
m:Natanael Copa <ncopa@alpinelinux.org>
t:1681557467
c:25bd220db5fce58966f17cf7719f9c73a5c5295e
D:so:libc.musl-x86_64.so.1
p:so:libuuid.so.1=1.3.0
z:v3.18/main/x86_64/libuuid-2.38.1-r7.apk
y:fbcdcb907098b719a1a7dd21aa48ddce83e8b62c
P:libuuid
V:2.38.1-r8
A:x86_64
S:13567
I:40960
T:DCE compatible Universally Unique Identifier library
U:https://git.kernel.org/cgit/utils/util-linux/util-linux.git
L:BSD-3-Clause
o:util-linux
m:Natanael Copa <ncopa@alpinelinux.org>
t:1686107202
c:c7de7fac9ae57f268781a733984e74a36f867d1c
D:so:libc.musl-x86_64.so.1
p:so:libuuid.so.1=1.3.0