我有一个容器,我建造了一个图像,我得到了什么地方。我想出了如何在里面安装软件包。我用过dnf和yum。它们都不能工作,因为它产生了一个command not found错误。下面是我做cat /etc/os-release时出现的情况。
NAME="Red Hat Enterprise Linux"
VERSION="8.6 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.6 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.6"发布于 2022-08-30 21:02:57
最小的基于RHEL的映像使用microdnf作为它们的包管理器,这就是您在这里可以找到的。
https://unix.stackexchange.com/questions/715509
复制相似问题