在 alpine linux 上安裝 whereis 指令

在 alpine linux 上安裝 whereis 指令

我正在嘗試在 alpine linux 3.5 上安裝 whereis 命令

實際上我正在運行以下命令:

apk add --update whereis

但它不起作用,因為我收到此錯誤:

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]

似乎沒有一個包在哪裡,我肯定錯過了一些東西。我該怎麼做才能取得 whereis 指令?

答案1

您需要安裝該util-linux軟體包:

apk add --update util-linux

其中包含whereis二進位檔案。

相關內容