oracle / container-images

Oracle Linux container images
Other
183 stars 64 forks source link

oracle linux 8-slim doesn't have 'find' command #18

Closed durgaswaroop closed 4 years ago

durgaswaroop commented 4 years ago

I found that the latest slim image doesn't have find command installed in it. How would I install it myself?

I tried microdnf install find but that says find is not found. How can I install it?

Djelibeybi commented 4 years ago

I recommend using the fat oraclelinux:8 image and the full dnf client for this:

# docker run --rm -it oraclelinux:8 dnf whatprovides /bin/find
Oracle Linux 8 Application Stream (x86_64)                                                                            4.1 MB/s |  15 MB     00:03
Oracle Linux 8 BaseOS Latest (x86_64)                                                                                 4.1 MB/s |  15 MB     00:03
Last metadata expiration check: 0:00:02 ago on Sun Jan  5 02:40:36 2020.
findutils-1:4.6.0-20.el8.x86_64 : The GNU versions of find utilities (find and xargs)
Repo        : @System
Matched from:
Provide    : /bin/find

findutils-1:4.6.0-20.el8.x86_64 : The GNU versions of find utilities (find and xargs)
Repo        : ol8_baseos_latest
Matched from:
Provide    : /bin/find

So you need to install the findutils package using microdnf install findutils in the 8-slim image.