Red Hat Bugzilla – Bug 507883
can't disable color from cmd line
Last modified: 2014-01-21 18:10:15 EST
+++ This bug was initially created as a clone of Bug #506754 +++
Description of problem:
I still see color when I use the option "--color=never" or set color=never in yum.conf
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. $ yum --color=never list 'e2fs*'
IMHO, no color should be the default.
--- Additional comment from email@example.com on 2009-06-18 11:43:38 EDT ---
Here's the fix:
...you can change the default to no colour by setting "color=never" in your yum.conf.
--- Additional comment from firstname.lastname@example.org on 2009-06-18 14:27:18 EDT ---
confirm patch worked. thanks.
i know i can set it in yum.conf and that's what i'll be doing.
This is a simple fix (move a couple of lines around) and ready to go for snap1.
Release note added. If any revisions are required, please set the
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.
Due to a logic error in the code, yum ignored the --color=never option on the command line and color=never option in yum.conf. Yum output was therefore always in color, regardless of user preferences. With the error corrected, users can now use yum in monochrome.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.