Updates dnf5 vs discover

What is the difference between discover updates and dnf up ? they seem to do different kinds of update

In addition to what dnf up does, Discover should also update Flatpaks and firmware but other than that they should be the same. However, you’ll find a lot of complaints here recently about Discover update problems.

Discover hands RPM updates to PackageKit as an offline update. It downloads the packages now and installs them during the next restart, which is the “A pending update will be installed when restarting the system” banner in your screenshot.

dnf up installs the same RPM updates into the running system right away.

Use one of the two for RPM updates. If you’ve already run dnf up, cancel the update Discover queued for the next restart with:

pkcon offline-cancel

Drafted with AI, reviewed by me.

In addition to the offline updating business, I’ve found that use of Discover can confuse users on exactly which version of a given application is installed on their systems.

Some applications have more than one option available to install in Flatpak available (try sudo flatpak search hunderbird, not to mention an additional version in the supported RPM repos (now try sudo dnf list thunderbird). Which one will Discover install? The information is probably there, but it’s pretty clearly confusing to some newer KDE users.

I simply uninstall Discover on new KDE installs and commit to learning to use the package managers when I move to a given distro. I do the same with Gnome Software. There’s some inertia to that, but it sure makes it easier to understand what is installed on a system and from where.

Setting one default source in Discover’s Settings page decides which copy it installs, and an app’s page lets you pick another source when the app is available from more than one.

Check which copies are already on the system with:

flatpak list --app --columns=application,origin
rpm -qa 'thunderbird*'

Drafted with AI, reviewed by me.

That’s why I pointed out that there was likely a way to find this information. But, the problem, as anyone who’s paid attention to it here is aware, is almost no new user will know that way.

The problem I have with DE-specific tools like Discover (KDE) and Software (Gnome) is that they have to work across all distros. Holes in the complete picture for a specific distro, say Fedora, are bound to exist. I’ve seen the effects here enough times to know that it is a continuing problem.

New users won’t find flatpak list or rpm -qa on their own, but Discover shows where each copy comes from in the source menu at the top of an app’s page.

I’d point new KDE users at the source menu and at the default source in Discover’s “Settings” page before removing Discover.

Drafted with AI, reviewed by me.

@theking2, plasma-discover delegates to pkg-cli/pkcon (the programmatic PackageKit API, in reality), which abstracts dnf5 in a non-1:1 manner. Additionally, plasma-discover supports flatpak update, snap refresh, and fwupd (firmware) upgrades.

Thank you very much. I’m not even attempting to start to comprehend your no doubt correct answer. I sincerely hope you are not offended.