首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无“查找”命令

无“查找”命令
EN

Stack Overflow用户
提问于 2020-02-06 02:42:54
回答 1查看 2K关注 0票数 2

我建造了一个集装箱,里面有:

代码语言:javascript
复制
> cat Dockerfile
FROM fedora:latest

USER root

RUN dnf update -y && \
    dnf clean all && \
    dnf autoremove

> docker build -t dev .
> docker run -t -d <container_id>
> docker exec -it <container_id> /bin/bash
$ dnf install -y which
$ which find
which: no find in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)

到目前为止,我使用过的每个Linux发行版都预装了find,所以我不完全确定在这里该做什么。

快速的谷歌搜索会得到关于如何使用find的结果,或者为什么在bash脚本中使用时找不到它,等等。但是不管我使用的关键词是什么,我似乎都找不到以前遇到过这种情况的人。

dnf search find没有显示结果,但可能是在另一个名称下?或者这是我自己要做的事情?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-02-06 03:03:35

代码语言:javascript
复制
# dnf whatprovides '*/bin/find'
findutils-1:4.6.0-24.fc31.x86_64 : The GNU versions of find utilities (find and xargs)
Repo        : @System
Matched from:
Filename    : /usr/bin/find

findutils-1:4.6.0-24.fc31.x86_64 : The GNU versions of find utilities (find and xargs)
Repo        : fedora
Matched from:
Filename    : /usr/bin/find
代码语言:javascript
复制
# dnf install -y findutils
票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60086982

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档