Red Hat Bugzilla – Bug 1191579
python3-dnf cannot be used without python2
Last modified: 2015-04-06 14:49:12 EDT
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"
dnf = 0.6.3-2.fc21
python(abi) = 3.4
python3-hawkey >= 0.5.2
python3-libcomps >= 0.1.6
python3-librepo >= 1.7.5
rpm-python3 >= 4.12.0
[root@host ~]# rpm -q --requires dnf | grep "python\|dnf"
config(dnf) = 0.6.3-2.fc21
python(abi) = 2.7
python-hawkey >= 0.5.2
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
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"
[root@host ~]# rpm -ql python3-dnf | grep "/etc"
[root@host ~]# echo $?
The packaging of DNF was changed, the packages should be independent in f21, f22, f23 and epel7 for python API usage. This PR  moves conf inside each subpackage so it can be run from cmdline too.
hawkey-0.5.4-1.fc22,dnf-0.6.5-1.fc22 has been submitted as an update for Fedora 22.
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:
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.
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.