I am trying to create a tool to inspect changes in updated packages. DNF doesn’t provide any JSON or CSV or output templates, and the best output I could find is dnf check-update -q
.
The output is not ideal. First there is an empty string, and then a specially artcrafted obsoleted section.
adwaita-cursor-theme.noarch 3.34.3-2.fc31 updates
adwaita-icon-theme.noarch 3.34.3-2.fc31 updates
at-spi2-atk.x86_64 2.34.2-1.fc31 updates
autocorr-en.noarch 1:6.3.5.2-1.fc31 updates
conky.x86_64 1.11.5-3.fc31 updates
...
wine-filesystem.noarch 5.3-1.fc31 updates
wireless-tools.x86_64 1:29-25.fc31 updates
youtube-dl.noarch 2020.03.01-1.fc31 updates
Obsoleting Packages
fonts-filesystem.noarch 2.0.1-3.fc31 updates
fontpackages-filesystem.noarch 1.44-25.fc31 @fedora
kernel-headers.x86_64 5.5.8-200.fc31 updates
kernel-headers.x86_64 5.5.6-200.fc31 @updates
Is there an (better) API for that?