diff --git a/collector/container/rhel/Dockerfile b/collector/container/rhel/Dockerfile index cfe2ad3013..2deeda7dd2 100644 --- a/collector/container/rhel/Dockerfile +++ b/collector/container/rhel/Dockerfile @@ -33,6 +33,8 @@ RUN mv collector-wrapper.sh /usr/local/bin/ && \ dnf install -y kmod && \ dnf clean all && \ rm -rf /var/cache/dnf && \ + # (Optional) Remove line below to keep package management utilities + rpm -e --nodeps rpm rpm-build-libs rpm-libs python3-rpm subscription-manager python3-subscription-manager-rhsm yum $(rpm -qa *dnf*) python3-hawkey && \ echo "${MODULE_VERSION}" > /kernel-modules/MODULE_VERSION.txt