On Mon, 30 Dec 2024 at 04:19, Felix Miata <mrma...@earthlink.net> 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).

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.
-- 
_______________________________________________
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