Bug 2184329 - daemon: API to get severity, changelog, bug/CVE refs, etc. of available updates
Summary: daemon: API to get severity, changelog, bug/CVE refs, etc. of available updates
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-04 09:15 UTC by Martin Pitt
Modified: 2023-08-16 07:13 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.