Bug 1359810

Summary: cmd 'dnf install I_dont_exit zsh' installs nothing
Product: [Fedora] Fedora Reporter: Petr Sklenar <psklenar>
Component: dnfAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: urgent    
Version: 24CC: bblaskov, ignatenko, jsilhan, mluscon, packaging-team-maint, pnemade, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Regression, Reopened, TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-25 14:50:00 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 Petr Sklenar 2016-07-25 13:32:20 UTC
Description of problem:
cmd 'dnf install I_dont_exit zsh' installs nothing

Version-Release number of selected component (if applicable):
dnf-1.1.9-2.fc24.noarch

How reproducible:
always

Steps to Reproduce:
1. dnf install I_dont_exit zsh

Actual results:
zsh is not installed as 'I_dont_exit' is not available
this is regression

see log:

[root@qeos-77 KerberosSupport]# rpm -q zsh
package zsh is not installed
[root@qeos-77 KerberosSupport]# dnf install zsh wtf
Last metadata expiration check: 2:59:33 ago on Mon Jul 25 06:27:30 2016.
No package wtf available.
Error: Unable to find a match.
[root@qeos-77 KerberosSupport]# dnf install zsh
Last metadata expiration check: 2:59:39 ago on Mon Jul 25 06:27:30 2016.
Dependencies resolved.
============================================================================================================================================================================
 Package                               Arch                                     Version                                      Repository                                Size
============================================================================================================================================================================
Installing:
 zsh                                   x86_64                                   5.2-5.fc24                                   fedora                                   2.7 M

Transaction Summary
============================================================================================================================================================================
Install  1 Package

Total download size: 2.7 M
Installed size: 6.2 M
Is this ok [y/N]: ^COperation aborted.
[root@qeos-77 KerberosSupport]# rpm -q dnf
dnf-1.1.9-2.fc24.noarch


Expected results:
it installs zsh and write info that 'I_dont_exit zsh' is not available

Additional info:

Comment 1 Igor Gnatenko 2016-07-25 13:35:01 UTC
[ignatenk@ignatenko pygpgme]$ sudo dnf install wtf zsh
Last metadata expiration check: 0:34:16 ago on Mon Jul 25 14:59:59 2016.
No package wtf available.
Error: Unable to find a match.
[ignatenk@ignatenko pygpgme]$ sudo dnf --setopt=strict=false install wtf zsh
Last metadata expiration check: 0:34:28 ago on Mon Jul 25 14:59:59 2016.
No package wtf available.
Dependencies resolved.
================================================================================
 Package        Arch              Version               Repository         Size
================================================================================
Installing:
 zsh            x86_64            5.2-5.fc24            fedora            2.7 M

Transaction Summary
================================================================================
Install  1 Package

Total download size: 2.7 M
Installed size: 6.2 M
Is this ok [y/N]: n
Operation aborted.

Comment 2 Petr Sklenar 2016-07-25 14:04:06 UTC
Its not user friendly. I am expecting similar usage like yum and yum installs such a packages.

Comment 3 Igor Gnatenko 2016-07-25 14:50:00 UTC
It has been even implemented in yum, see: https://bugzilla.redhat.com/show_bug.cgi?id=1274211

definitely NOTABUG.

Comment 4 Honza Silhan 2016-07-25 15:33:32 UTC
Good news for you is that strict=0 will be default behavior when you invoke `/usr/bin/yum` from `yum-dnf` with DNF backend.

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