在 alpine linux 上安装 whereis 命令

Mic*_*ino 10 command-line packages alpine-linux

我正在尝试在 alpine linux 3.5 上安装 whereis 命令

实际上我正在运行以下命令:

apk add --update whereis
Run Code Online (Sandbox Code Playgroud)

但它不起作用,因为我收到此错误:

fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  whereis (missing):
    required by: world[whereis]
Run Code Online (Sandbox Code Playgroud)

似乎没有包 whereis,我肯定错过了什么。我应该怎么做才能获得 whereis 命令?

jmr*_*cha 23

您需要安装util-linux软件包:

apk add --update util-linux
Run Code Online (Sandbox Code Playgroud)

其中包含whereis二进制文件。