Bug 1208981

Summary: dnf aborts installation if one package doesn't exist
Product: [Fedora] Fedora Reporter: Heiko Adams <bugzilla>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: bugzilla, jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-07 14:53:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Heiko Adams 2015-04-04 19:35:00 UTC
Description of problem:
If I run a command like "sudo dnf install a b c" and pacakge b doesn't exist or is misspelled dnf aborts the installation while yum printed an information and installs packages a and b 

Version-Release number of selected component (if applicable):
$ rpm -qa dnf\*
dnf-yum-0.6.5-1.fc22.noarch
dnf-0.6.5-1.fc22.noarch
dnf-langpacks-0.9.0-2.fc22.noarch
dnf-plugins-core-0.1.5-1.fc22.noarch
dnf-conf-0.6.5-1.fc22.noarch

How reproducible:
100%

Steps to Reproduce:
1. open a terminal
2. let dnf install several packages while one package does not exist or its name is misspelled
3.

Actual results:
dnf aborts the installation

Expected results:
dnf should notify the user about the not existing package and continue installation of the remaining packages

Additional info:

Comment 1 Radek Holy 2015-04-07 09:02:50 UTC
Hello, this is not a bug; it's a feature.

Can you elaborate on the use case in which you are trying to install unneeded (because you don't mind if they are not installed) packages?

Would the solution proposed in https://bugzilla.redhat.com/show_bug.cgi?id=1197456#c17 work for you?

Comment 2 Heiko Adams 2015-04-07 14:43:27 UTC
Yeah, something like that would be a suitable solution.
But if a package doesn't exist or is misspelled dnf should ask something like "It seems Package xY doesn't exist. Did you mean XY?"

Comment 3 Radek Holy 2015-04-07 14:53:38 UTC
OK, let's close this as a duplicate of that bug.

For the "did you mean" part, please refer to bug 1138978. Maybe add yourself into the CC list so that we can see how many people need the feature.

*** This bug has been marked as a duplicate of bug 1197456 ***

Comment 4 Radek Holy 2015-04-07 14:56:36 UTC
Anyway, your use case is still more than welcome. You can only benefit from sharing it because then you can be sure that the behavior that you expect will not change without a prior notice and that the behavior will be covered by our test suite.