Bug 1022200

Summary: yum --color=always Nonfunctional
Product: [Fedora] Fedora Reporter: quantumn
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 19CC: admiller, ffesti, firas.alkafri, jzeleny, packaging-team-maint, quantumn, zpavlas
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Fedora 19
Last Closed: 2013-10-30 08:54:35 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:
Attachments:
Description Flags
Example of yaourt output none

Description quantumn 2013-10-22 16:59:32 UTC
Description of problem:
When using yum --color=always search {package} ... no color results.


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

How reproducible:
always

Steps to Reproduce:
1. yum --color=always search {package}
2.
3.

Actual results:
White text, not color

Expected results:
Color results

Additional info:

Also when doing a search yum does not indicate which of the packages listed, are already installed.  Attached please find a snap of Arch's yaourt.

Comment 1 quantumn 2013-10-22 17:02:38 UTC
Created attachment 815100 [details]
Example of yaourt output

Comment 2 Zdeněk Pavlas 2013-10-23 08:20:30 UTC
yum search does no coloring, it just highlights (bold) the string you searched for. "yum list" should produce some color output. (installed/downloaded/newer-than-installed/older-than-installed should all be printed in different colors).

These colors are customizable (man yum.conf, color_list_* options). Does "yum list" work on your system as expected?

Comment 3 quantumn 2013-10-23 16:00:50 UTC
Surely this isn't correct as if only applicable to list it would be 
# yum --color=list list

Anyway I have no color even in list, nor is there any indication of whether the respective packages are installed or not.

Comment 4 Zdeněk Pavlas 2013-10-24 10:53:02 UTC
> # yum --color=list list

No, the --color option is global. Normally when output is redirected (eg with "|grep ...") you want to turn colors off. With --color=always it should be still on.

> Anyway I have no color even in list,

It works for me.. Upgrades are blue, downgrades are cyan, etc.. Maybe you didn't have any upgrades/downgrades available?  Does the following work?

# echo color_list_installed_reinstall=red >>/etc/yum.conf
# yum info yum

Loaded plugins: ...
Installed Packages
Name        : yum
              ^^^^ should be in red
Repo        : installed

Comment 5 quantumn 2013-10-28 15:52:06 UTC
OK, Fedora is just too painful to set up, in too many ways.

I'm out of here.