Description of problem: when reinstalling an rpm, dnf throws "erase failed" error messages for the affected rpms. This is misleading. DNF should rather throw an "info" message stating that current active rpms should/can not be removed -- OR execute silently Version-Release number of selected component (if applicable): 0.5.0-1.fc21 How reproducible: steady Steps to Reproduce: 1. run "dnf reinstall nss*" (assuming the nss series ia already installed) 2. follow the installation messages 3. Actual results: error: nss-softokn-freebl-3.16.0-2.fc21.i686: erase failed error: nss-tools-3.16.0-1.fc21.x86_64: erase failed error: nss-sysinit-3.16.0-1.fc21.x86_64: erase failed error: nss-3.16.0-1.fc21.x86_64: erase failed error: nss-softokn-3.16.0-2.fc21.x86_64: erase failed error: nss-util-3.16.0-1.fc21.x86_64: erase failed error: nss-softokn-freebl-3.16.0-2.fc21.x86_64: erase failed error: nss-mdns-0.10-13.fc20.x86_64: erase failed Expected results: No error messages -- only informative messages Additional info:
Thanks for reporting, I can confirm there's an error message flashing for a split second with 'dnf reinstall emacs-common'. We'll take a look.
Reinstall as done with rpm problem filters (which is what dnf and yum do because there's no better option yet) does not involve an erasure element, but dnf seems to expect them. Note that in rpm >= 4.12 there will be a separate rpm-level operation for reinstall which does do erasure as well.
Look like a dup of https://bugzilla.redhat.com/show_bug.cgi?id=1071854
No it's not.(In reply to Tim Lauridsen from comment #3) > Look like a dup of > https://bugzilla.redhat.com/show_bug.cgi?id=1071854 No it's not. This bug is perhaps about the problem described in bug 1071854 comment 1, but not the original problem there.
Tim is right, this bug is fixed using addReinstall see https://bugzilla.redhat.com/show_bug.cgi?id=1071854#c3 Thus I'm closin this bug as a duplicate. *** This bug has been marked as a duplicate of bug 1071854 ***