Description of problem: python3-dnf requires dnf which requires python2. Therefore python3-dnf cannot be used without python2. As a result if this I cannot prepare minimal container image without python2. [root@host ~]# rpm -q --requires python3-dnf | grep "python\|dnf" /usr/bin/python3 dnf = 0.6.3-2.fc21 python(abi) = 3.4 python3-hawkey >= 0.5.2 python3-iniparse python3-libcomps >= 0.1.6 python3-librepo >= 1.7.5 python3-pygpgme rpm-python3 >= 4.12.0 [root@host ~]# rpm -q --requires dnf | grep "python\|dnf" /usr/bin/python config(dnf) = 0.6.3-2.fc21 python(abi) = 2.7 python-hawkey >= 0.5.2 python-iniparse python-libcomps >= 0.1.6 python-librepo >= 1.7.5 rpm-python >= 4.12.0 Version-Release number of selected component (if applicable): [root@host ~]# rpm -q python3-dnf dnf python3-dnf-0.6.3-2.fc21.noarch dnf-0.6.3-2.fc21.noarch How reproducible: Deterministic
CCing Slavek, he should be aware.
AFAIK dnf should be switched to python3-dnf in F22 and rawhide, so this shouldn't be a problem when the switch happens... But someone from dnf maintainers should confirm.
The most problematic part is that configuration file is owned by package "dnf" The packaging need to be changed anyway because python3-dnf does not work without configuration file. [root@host ~]# rpm -ql dnf | grep "/etc" /etc/bash_completion.d/dnf-completion.bash /etc/dnf /etc/dnf/dnf.conf /etc/dnf/plugins /etc/dnf/protected.d/dnf.conf /etc/libreport/events.d/collect_dnf.conf /etc/logrotate.d/dnf [root@host ~]# rpm -ql python3-dnf | grep "/etc" [root@host ~]# echo $? 1
The packaging of DNF was changed, the packages should be independent in f21, f22, f23 and epel7 for python API usage. This PR [1] moves conf inside each subpackage so it can be run from cmdline too. [1] https://github.com/rpm-software-management/dnf/pull/236
hawkey-0.5.4-1.fc22,dnf-0.6.5-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/hawkey-0.5.4-1.fc22,dnf-0.6.5-1.fc22
Package hawkey-0.5.4-1.fc22, dnf-0.6.5-1.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing hawkey-0.5.4-1.fc22 dnf-0.6.5-1.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-5337/hawkey-0.5.4-1.fc22,dnf-0.6.5-1.fc22 then log in and leave karma (feedback).
dnf-plugins-extras-0.0.6-2.fc22,yum-utils-1.1.31-505.fc22,yum-3.4.3-505.fc22,hawkey-0.5.4-1.fc22,dnf-0.6.5-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/dnf-plugins-extras-0.0.6-2.fc22,yum-utils-1.1.31-505.fc22,yum-3.4.3-505.fc22,hawkey-0.5.4-1.fc22,dnf-0.6.5-1.fc22
dnf-plugins-extras-0.0.6-2.fc22, yum-3.4.3-505.fc22, dnf-0.6.5-1.fc22, yum-utils-1.1.31-505.fc22, hawkey-0.5.4-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.