Red Hat Bugzilla – Bug 1148630
add --allowerasing hint for conflict problems
Last modified: 2015-08-10 22:08:14 EDT
Description of problem:
neither --allowerasing and --refresh is documented in the man page. --allowerasing should be automatically suggested by dnf for applicable conflicts where it would work. Suggested hint is as below.
sudo dnf install dnf-yum
[sudo] password for rahul:
Error: package dnf-yum-0.6.1-1.fc21.noarch conflicts with yum provided by yum-3.4.3-153.fc21.noarch
Hint: Use dnf installl dnf-yum --allowerasing to replace conflicting package(s).
--allowerasing and --refresh is documented in the man page in dnf 0.6.x (F21)
hinting --allowerasing can be nice, but also dangerous, sometime people will just use the hinted option without understanding what it does. And in this case it will remove yum and everything there is requiring yum and bad thing in F20
see the lastes version of man pages here:
Good that it got documented now.
Well, it won't be very dangerous if protected packages were still supported but that is an argument that doesn't seem to have convinced dnf developers yet.
if dnf-plugins-core is installed, then the protected_packages plugin will protect the packages definded in /etc/yum/protected.d & /etc/dnf/protected.d
So protected packages are supported if the distro want it to be :)
Rahul, --allowerasing is documented all the time the the switch is available. It's almost a year today.
The same applies for the --refresh. It's about 4 months.
If dnf developers will not object, I will send in a comps patch to get dnf-plugins-core be a default package
@Radek, I am not sure how I missed it. Do consider adding in a hint to use it in cases where it helps.
Rahul, having dnf-plugins-core by default would be great.
We could add that hint for conflict errors, many people report bugs that could be solved by this flag.
So I clone the comps git repo and I see that dnf hasn't been added yet as a default package in the f-22 file. Are you folks still targeting f22 as the release where dnf becomes default? Are you waiting for anything in particular before making this change?
There are a whole bunch of packages that are still depending on yum including mock, fedora-packager etc
Yes, DNF should be in F22. Lets wait for confirmation of jzeleny (if there are some news I don't know).
Nothing has changed, DNF is still supposed to become default software manager in F22
Created attachment 944212 [details]
changes to make dnf default
Comps patch for the necessary changes. I am leaving yum in the build group just because mock hasn't been ported over yet. Rest should be self evident. Please review before I commit. Thanks
Created attachment 944213 [details]
revised changes to make dnf default
Created attachment 944216 [details]
revised and sorted changes to make dnf default
Rahul, looks good, thanks.
*** Bug 1160659 has been marked as a duplicate of this bug. ***
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.
More information and reason for this action is here:
The same hint should be provided for downgrading. Example:
$ sudo dnf downgrade abrt
Last metadata expiration check performed 1:31:33 ago on Mon Jun 22 12:58:02 2015.
Error: package abrt-retrace-client-2.6.0-1.fc22.x86_64 requires abrt = 2.6.0-1.fc22, but none of the providers can be installed
The obvious thing to do is:
$ sudo dnf downgrade abrt*
Last metadata expiration check performed 1:31:36 ago on Mon Jun 22 12:58:02 2015.
No match for available package: abrt-addon-python-2.5.1-2.fc22.x86_64
No match for available package: abrt-python3-2.5.1-2.fc22.x86_64
No match for available package: abrt-gui-libs-2.5.1-2.fc22.i686
No match for available package: abrt-gui-libs-2.5.1-2.fc22.x86_64
No match for available package: abrt-tui-2.5.1-2.fc22.x86_64
No match for available package: abrt-gui-2.5.1-2.fc22.x86_64
... snip 100 lines ...
No match for available package: abrt-libs-2.6.0-1.fc22.x86_64
No match for available package: abrt-atomic-2.6.0-1.fc22.x86_64
No match for available package: abrt-retrace-client-2.6.0-1.fc22.x86_64
Error: Nothing to do.
And I was utterly confused how to downgrade abrt. The solution was:
$ sudo dnf downgrade abrt --allowerasing
Last metadata expiration check performed 1:51:32 ago on Mon Jun 22 12:58:02 2015.
Package Arch Version Repository Size
abrt-desktop x86_64 2.6.0-1.fc22 @System 0
abrt-gui x86_64 2.6.0-1.fc22 @System 222 k
abrt x86_64 2.5.1-2.fc22 updates-testing 516 k
abrt-addon-ccpp x86_64 2.5.1-2.fc22 updates-testing 184 k
abrt-addon-coredump-helper x86_64 2.5.1-2.fc22 updates-testing 102 k
abrt-addon-kerneloops x86_64 2.5.1-2.fc22 updates-testing 120 k
abrt-addon-pstoreoops x86_64 2.5.1-2.fc22 updates-testing 98 k
abrt-addon-python x86_64 2.5.1-2.fc22 updates-testing 99 k
abrt-addon-python3 x86_64 2.5.1-2.fc22 updates-testing 98 k
abrt-addon-vmcore x86_64 2.5.1-2.fc22 updates-testing 108 k
abrt-addon-xorg x86_64 2.5.1-2.fc22 updates-testing 99 k
abrt-cli x86_64 2.5.1-2.fc22 updates-testing 90 k
abrt-dbus x86_64 2.5.1-2.fc22 updates-testing 123 k
abrt-libs x86_64 2.5.1-2.fc22 updates-testing 114 k
abrt-plugin-bodhi x86_64 2.5.1-2.fc22 updates-testing 98 k
abrt-python x86_64 2.5.1-2.fc22 updates-testing 111 k
abrt-python3 x86_64 2.5.1-2.fc22 updates-testing 112 k
abrt-retrace-client x86_64 2.5.1-2.fc22 updates-testing 125 k
abrt-tui x86_64 2.5.1-2.fc22 updates-testing 100 k
Remove 2 Packages
Downgrade 17 Packages
It needed to remove some packages which were not available with the older version (for some reason). A hint after one of the first two stated commands would help a lot.
dnf-1.0.2-2.fc22,hawkey-0.5.9-2.fc22 has been submitted as an update for Fedora 22.
Note that I see this hint even when I have used the --allowerasing option. This hint probably shouldn't be displayed under those circumstances.
I see the hint when trying to downgrade. Great work, thanks.
Package dnf-1.0.2-3.fc22, hawkey-0.5.9-3.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 dnf-1.0.2-3.fc22 hawkey-0.5.9-3.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf-1.0.2-3.fc22, hawkey-0.5.9-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.