I am building an Ansible Execution Environment using this image as a base:
registry.redhat.io/ansible-automation-platform-22/ee-minimal-rhel8:1.0.0-373
It does not include either yum or dnf binaries from what I can see, since typically it would not be needed to just launch Ansible playbooks. However I need to be able to install additional software dependencies.
To resolve I have been trying to install dnf from RPM and resolving dependencies manually as I go. These are the last 4 dependencies I need to resolve:
libdw.so.1()(64bit) is needed by python3-rpm-4.14.3-26.el8.x86_64
libimaevm.so.2()(64bit) is needed by python3-rpm-4.14.3-26.el8.x86_64
librpmbuild.so.8()(64bit) is needed by python3-rpm-4.14.3-26.el8.x86_64
librpmsign.so.8()(64bit) is needed by python3-rpm-4.14.3-26.el8.x86_64
I found people suggesting to install elfutils but I installed several variants of that package and it doesn't resolve those deps, it just adds to the list.
I was able to figure it out using a different RHEL8 box and running the command
locateagainst each missing binary and then runningrpm -qfagainst the full binary path to see what package provides that binary.After a bit of trial and error, here is the full list of RPMs I installed to get
dnfworking on this particular instance of RHEL8: