Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document "dnf list --installed" output colors #2102

Open
Tiagoquix opened this issue Mar 4, 2025 · 1 comment
Open

Document "dnf list --installed" output colors #2102

Tiagoquix opened this issue Mar 4, 2025 · 1 comment
Labels
Priority: LOW RFE Request For Enhancement (as opposed to a bug) Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take

Comments

@Tiagoquix
Copy link

Tiagoquix commented Mar 4, 2025

Hello.

When I use dnf list --installed *kernel*, I get the following:
image

However, I cannot know what the colors of the output mean when there are multiple versions of the same package.
When I use dnf list --installed, almost all packages are bright green color.
Those of the kernel (used as example) are bright green, blue and white.

https://dnf.readthedocs.io/en/latest/command_ref.html#list-command
https://dnf5.readthedocs.io/en/latest/commands/list.8.html#list-command

I checked the above pages and didn't find an answer.

I would like to know what they mean, and I also want to make a suggestion to clear confusion for future users.

You could do it like so:
In the first line that says "Installed packages", acting as a title, you could put the meanings with colors in brackets.
Example:

Installed packages (MeaningOne, MeaningTwo, MeaningThree)

Where MeaningOne is colored with the appropriate color and says what it is. For example, "MeaningOne" can mean "Installed" with bright green color and "MeaningTwo" can mean "outdated package installed" with normal white color.

I believe this is a very simple addition to clear possible confusions for users.

Thanks.

@ppisar ppisar changed the title Clarification of "dnf list --installed" output colors Document "dnf list --installed" output colors Mar 4, 2025
@ppisar ppisar added RFE Request For Enhancement (as opposed to a bug) Priority: LOW Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take labels Mar 4, 2025
@ppisar
Copy link
Contributor

ppisar commented Mar 4, 2025

Thanks for the suggestion. We should document and make the colors self-describing in the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: LOW RFE Request For Enhancement (as opposed to a bug) Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take
Projects
None yet
Development

No branches or pull requests

2 participants