Will McDonald composed on 2024-12-30 09:48 (UTC-0000):

>  Felix Miata wrote:

>> First I looked at
>> https://dnf5.readthedocs.io/en/latest/dnf5.conf.5.html#main-options-colors
>> and then tried:
>> color_list_installed_older=white,blue
>> color_list_installed_newer=white,blue
>> color_list_installed_reinstall=white,blue
>> color_list_installed_running_kernel=white,blue
>> color_list_installed_extra=white,blue
>> color_list_available_upgrade=white,blue
>> color_list_available_downgrade=white,blue
>> color_list_available_install=white,blue
>> color_list_available_reinstall=white,blue
>> color_list_available_running_kernel=white,blue

> Your combos here aren't right. It's not expecting two colours for each
> setting. It's looking for a single colour (blue, green, red, black, white
> etc.) and an attribute/property for that single colour (bold, dim, reverse,
> underlined).

Neither

color_list_installed_older=gray
color_list_installed_newer=gray
color_list_installed_reinstall=gray
color_list_installed_running_kernel=gray
color_list_installed_extra=gray
color_list_available_upgrade=gray
color_list_available_downgrade=gray
color_list_available_install=gray
color_list_available_reinstall=gray
color_list_available_running_kernel=gray

nor

color_list_installed_older=white
color_list_installed_newer=white
color_list_installed_reinstall=white
color_list_installed_running_kernel=white
color_list_installed_extra=white
color_list_available_upgrade=white
color_list_available_downgrade=white
color_list_available_install=white
color_list_available_reinstall=white
color_list_available_running_kernel=white

in /etc/dnf/dnf.conf produces any noticeable effect in 41 on running

        dnf upgrade

Most reporting what it will do is in colors, while most output from proceeding
after y is bright white, with a bit of either red?, brown? or orange?.

> You can see the default combos with:

> root@fedora:~# dnf --dump-main-config | grep colo
> color = auto
> color_list_available_downgrade = dim,magenta
> color_list_available_install = bold,cyan
> color_list_available_reinstall = bold,green
> color_list_available_upgrade = bold,blue
> color_list_installed_extra = bold,red
> color_list_installed_newer = bold,yellow
> color_list_installed_older = yellow
> color_list_installed_reinstall = dim,cyan
> color_search_match = bold,magenta
> color_update_installed = dim,red
> color_update_local = dim,green
> color_update_remote = bold,green

> If I add the following to /etc/dnf/dnf.conf:

> root@fedora:~# cat /etc/dnf/dnf.conf
> # see `man dnf.conf` for defaults and possible options
> [main]
> color_list_available_upgrade=black

> Then re-dump the config:

> root@fedora:~# dnf --dump-main-config | grep upgrade
> color_list_available_upgrade = black

> And if I then run dnf check-update my output will *only* be in black (for
> the update commands, the others will still be set in their default states
> until I override them.) Obviously you'll what white if you're running in a
> VTY.-- 
Evolution as taught in public schools is, like religion,
        based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata
-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to