DNF5 does not support the "--color=no" flag

With F41, I no longer have monochromatic output from “dnf” command. This is really bad news for me as, at 67 years of age, my vision really has difficulty with the colours (UK spelling) now being forced on me.

I have been using Fedora for morew than 15 years now (confirmed Micro$haft WinDROSS hater) and always appreciated the Red Hat and Fedora Linux acceptance of people with disabilities and issues. Now it seems that such consideration has gone out the window into the disabled invalid trash can. I guess I should I have got the clue when “systemctl” forced colour on us and forced us to pipe through “tee” (systemctl status | tee), but I naively thought that would be as far as it went.

Are Red Hat planning on forcing colour output on us for every command? If so, I will now never be able to use my computer again.

THANKS A LOT for eliminating people with visual problems from the command prompt.

Ed Bessanr

This flag is not yet implemented in DNF5:
Implement `--color` flag and respect `color` option · Issue #839 · rpm-software-management/dnf5 · GitHub

You can use DNF4 or a wrapper script until they fix this issue:

sudo tee /usr/local/bin/dnf << "EOF" > /dev/null
#!/usr/bin/bash
dnf5 "${@}" | cat
EOF
sudo chmod +x /usr/local/bin/*
hash -r
2 Likes

If you’re using the new ptyxis terminal, there are also a few monochrome color palettes, one of them (e.g. Mono White) might suit your needs.

2 Likes