Bug 2184329

Summary: daemon: API to get severity, changelog, bug/CVE refs, etc. of available updates
Product: [Fedora] Fedora Reporter: Martin Pitt <mpitt>
Component: dnf5Assignee: rpm-software-management
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: jkolarik, mblaha, nsella, pkratoch, rpm-software-management
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Pitt 2023-04-04 09:15:43 UTC
Description of problem: With PackageKit and dnf 4's CLI we can get details about available updates, such as the changelog, severity (security, bug fix, enhancement), and a list of bugzilla or errata URLs. I don't see such an API in <https://dnf5.readthedocs.io/en/latest/dnf_daemon/dnf5daemon_dbus_api.8.html>

This is necessary for replacing PackageKit on cockpit's "Software Updates" page (and most likely also for GNOME Software?)

Version-Release number of selected component (if applicable):

dnf5daemon-server-5.0.7-1.fc39.x86_64

Thanks!

Comment 1 Marek Blaha 2023-04-12 15:11:56 UTC
I've added the bug to upstream dnfdaemon tracking issue https://github.com/rpm-software-management/dnf5/issues/169
Do I understand correctly that what you need is basically an equivalent of `dnf updateinfo --info -v` command?

Comment 2 Martin Pitt 2023-04-21 05:26:23 UTC
Marek: Sorry for missing your reply. Indeed `dnf updateinfo --info -v` looks roughly like what I'm looking for. For cockpit we don't care much whether there is a single call to get info for all pending updates, or a per-package call -- whichever is more efficient and easier on your side. Thanks!

Comment 3 Marek Blaha 2023-08-03 08:24:33 UTC
There is https://github.com/rpm-software-management/dnf5/pull/688 PR that introduces `Advisory` interface to get list of available updates.
The output contains what's present in `updateinfo` repository metadata.

Comment 4 Fedora Release Engineering 2023-08-16 07:13:03 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.