Bug 1208981 - dnf aborts installation if one package doesn't exist
Summary: dnf aborts installation if one package doesn't exist
Keywords:
Status: CLOSED DUPLICATE of bug 1197456
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-04 19:35 UTC by Heiko Adams
Modified: 2015-04-07 14:56 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-04-07 14:53:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1197456 0 low CLOSED [RFE] implement `strict` config option (defaults=True) 2021-02-22 00:41:40 UTC

Internal Links: 1197456

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.


Note You need to log in before you can comment on or make changes to this bug.