【发布时间】:2020-01-11 00:30:36
【问题描述】:
如何列出 Alpine Linux 上给定软件包的所有可用软件包版本?
我在 apk 帮助中找不到任何有用的信息。
apk info bash 只显示最新的可用 bash 版本。
# apk info bash
bash-5.0.0-r0 description:
The GNU Bourne Again shell
bash-5.0.0-r0 webpage:
https://www.gnu.org/software/bash/bash.html
bash-5.0.0-r0 installed size:
1200128
使用--all 标志我只能获得该版本的一些附加信息:
# apk info --all bash
bash-5.0.0-r0 description:
The GNU Bourne Again shell
bash-5.0.0-r0 webpage:
https://www.gnu.org/software/bash/bash.html
bash-5.0.0-r0 installed size:
1200128
bash-5.0.0-r0 depends on:
/bin/sh
so:libc.musl-x86_64.so.1
so:libreadline.so.8
bash-5.0.0-r0 provides:
cmd:bash
bash-5.0.0-r0 has auto-install rule:
bash-5.0.0-r0 license:
GPL-3.0-or-later
apk list 和 apk list --available 仅列出所有可用软件包的最新版本。
所以如果我运行apk list -a | grep "^bash-\d",我只会得到这个:
# apk list -a | grep "^bash-\d"
bash-5.0.0-r0 x86_64 {bash} (GPL-3.0-or-later)
【问题讨论】: