3.13 busybox: apk upgrade shows help for stat
Running apk upgrade
on an alpine 3.13 system shows the busybox stat help message.
PS C:\Users\john> docker pull alpine:3.13
3.13: Pulling from library/alpine
9aae54b2144e: Pull complete
Digest: sha256:826f70e0ac33e99a72cf20fb0571245a8fee52d68cb26d8bc58e53bfa65dcdfa
Status: Downloaded newer image for alpine:3.13
docker.io/library/alpine:3.13
PS C:\Users\john> docker run --rm -it alpine:3.13
/ # apk update
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
v3.13.3-22-g7acc3190c1 [https://dl-cdn.alpinelinux.org/alpine/v3.13/main]
v3.13.3-21-g2f0cab651f [https://dl-cdn.alpinelinux.org/alpine/v3.13/community]
OK: 13885 distinct packages available
/ # apk upgrade
(1/2) Upgrading busybox (1.32.1-r3 -> 1.32.1-r4)
Executing busybox-1.32.1-r4.post-upgrade
BusyBox v1.32.1 () multi-call binary.
Usage: stat [OPTIONS] FILE...
Display file (default) or filesystem status
-c FMT Use the specified format
-f Display filesystem status
-L Follow links
-t Terse display
FMT sequences for files:
%a Access rights in octal
%A Access rights in human readable form
%b Number of blocks allocated (see %B)
%B Size in bytes of each block reported by %b
%d Device number in decimal
%D Device number in hex
%f Raw mode in hex
%F File type
%g Group ID
%G Group name
%h Number of hard links
%i Inode number
%n File name
%N File name, with -> TARGET if symlink
%o I/O block size
%s Total size in bytes
%t Major device type in hex
%T Minor device type in hex
%u User ID
%U User name
%x Time of last access
%X Time of last access as seconds since Epoch
%y Time of last modification
%Y Time of last modification as seconds since Epoch
%z Time of last change
%Z Time of last change as seconds since Epoch
FMT sequences for file systems:
%a Free blocks available to non-superuser
%b Total data blocks
%c Total file nodes
%d Free file nodes
%f Free blocks
%i File System ID in hex
%l Maximum length of filenames
%n File name
%s Block size (for faster transfer)
%S Fundamental block size (for block counts)
%t Type in hex
%T Type in human readable form
(2/2) Upgrading ssl_client (1.32.1-r3 -> 1.32.1-r4)
Executing busybox-1.32.1-r4.trigger
OK: 6 MiB in 14 packages
/ # echo $?
0
/ #
busybox on edge is fine:
PS C:\Users\john> docker run --rm -it alpine:edge
Unable to find image 'alpine:edge' locally
edge: Pulling from library/alpine
fa7045767063: Pull complete
Digest: sha256:fa3bd1cb8b0d2d6a4de1ea7e52dffee36896bc2b1566e9a89c16637051467225
Status: Downloaded newer image for alpine:edge
/ # apk update
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
v20210212-2688-gd4b1b0d678 [https://dl-cdn.alpinelinux.org/alpine/edge/main]
v20210212-2693-gec9c654473 [https://dl-cdn.alpinelinux.org/alpine/edge/community]
OK: 14223 distinct packages available
/ # apk upgrade
Upgrading critical system libraries and apk-tools:
(1/1) Upgrading apk-tools (2.12.3-r0 -> 2.12.4-r0)
Executing busybox-1.33.0-r2.trigger
Continuing the upgrade transaction with new apk-tools:
(1/7) Upgrading musl (1.2.2-r1 -> 1.2.2-r2)
(2/7) Upgrading busybox (1.33.0-r2 -> 1.33.0-r5)
Executing busybox-1.33.0-r5.post-upgrade
(3/7) Upgrading alpine-baselayout (3.2.0-r9 -> 3.2.0-r11)
Executing alpine-baselayout-3.2.0-r11.pre-upgrade
Executing alpine-baselayout-3.2.0-r11.post-upgrade
(4/7) Upgrading libcrypto1.1 (1.1.1i-r0 -> 1.1.1k-r0)
(5/7) Upgrading libssl1.1 (1.1.1i-r0 -> 1.1.1k-r0)
(6/7) Upgrading ssl_client (1.33.0-r2 -> 1.33.0-r5)
(7/7) Upgrading musl-utils (1.2.2-r1 -> 1.2.2-r2)
Executing busybox-1.33.0-r5.trigger
OK: 6 MiB in 14 packages
/ #