How to only display Title and Description with dnf5?

I would like to see only the Titles and the multiple lines of the Description of incoming updates. How can I do this?

Until now, I did not get further than:

dnf advisory info --updates | grep -i "title\|description"

But the command above only provides the first line of the Description. I would like to see all Description lines.

Especially the long lists of Packages make the dnf advisory info --updates command unpleasant to read for me.

dnf advisory info --updates | awk '/^Title/ || /^Description/ { p=1; print; next }; ! /^ / { p=0; next }; { if (p) print }'

I’m sure people will follow up with more concise sed and perl versions :wink:

2 Likes

Consider using:

dnf changelog --upgrades
2 Likes