Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1133979 - yum/dnf --quiet option not working for check-update command
Summary: yum/dnf --quiet option not working for check-update command
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 22
Hardware: All
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Valentina Mukhamedzhanova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-26 14:57 UTC by Dena
Modified: 2015-08-11 02:08 UTC (History)
8 users (show)

Fixed In Version: dnf-1.0.2-3.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-11 02:08:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1232535 0 unspecified CLOSED Last metadata expiration date printed on stdout instead of stderr 2021-02-22 00:41:40 UTC

Internal Links: 1232535

Description Dena 2014-08-26 14:57:46 UTC
Description of problem:
The man page for yum lists the --quiet option to disable output, but the option does not fully work when used with the check-update command

Version-Release number of selected component (if applicable):
3.4.3-152

How reproducible:
100%

Steps to Reproduce:
1. yum --quiet check-update

Actual results:
outputs a list of packages to be updated

Expected results:
there should be no output

Additional info:
The --quiet option is disabling some of the output -- it prevents the "Loaded plugins" from being listed, but does not prevent the list of packages to be updated from being listed. A script may only be interested in the exit status, so check-update should respect the --quiet option by disabling output.

Comment 1 Fedora End Of Life 2015-05-29 12:44:12 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Dena 2015-06-28 13:24:31 UTC
This issue also exists in dnf and Fedora 22.

Comment 3 Honza Silhan 2015-06-29 12:35:46 UTC
According to "man yum" you're right - it should not print output at all.
"Run without  output.   Note  that  you likely also want to use -y."

I don't know how the option was originally designed but it makes sense to me to behave as it is. You basically use this option from scripts for parsing the plain output. The real semantic is: "In combination with non-interactive command (list, info, repoquery, ...) it shows just relevant content. It suppress messages notifying about current state or actions of DNF." I am considering this as a feature not a bug. What would be the benefit of using -q instead of `1>/dev/null`

In PR [1] documentation of DNF --quiet was extended.

[1] https://github.com/rpm-software-management/dnf/pull/302

Comment 4 Fedora Update System 2015-07-22 08:25:29 UTC
dnf-1.0.2-2.fc22,hawkey-0.5.9-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/dnf-1.0.2-2.fc22,hawkey-0.5.9-2.fc22

Comment 5 Fedora Update System 2015-08-01 02:28:37 UTC
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:
https://admin.fedoraproject.org/updates/FEDORA-2015-12577/dnf-1.0.2-3.fc22,hawkey-0.5.9-3.fc22
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-08-11 02:08:34 UTC
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.


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