Description of problem: Anaconda should use the DNF5 API for the package installation since Fedora 39. Drop the dependency on the python3-dnf and libdnf packages and remove these packages from the installation environment. Additional info: https://fedoraproject.org/wiki/Changes/MajorUpgradeOfMicrodnf https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle. Changing version to 38.
Update: The current plan for Anaconda is to continue to use DNF4 in Fedora 39 and switch to DNF5 in Fedora 40.