Bug 1022200 - yum --color=always Nonfunctional
Summary: yum --color=always Nonfunctional
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 19
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-22 16:59 UTC by quantumn
Modified: 2013-10-30 08:54 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Fedora 19
Last Closed: 2013-10-30 08:54:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Example of yaourt output (350.85 KB, image/png)
2013-10-22 17:02 UTC, quantumn
no flags Details

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.


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