KDE Discover shows package and kernel updates that dnf does not

I have a pretty fresh F41 install (installed yesterday, using the Everything ISO).

Today, KDE Discover is showing me that updates are available (“System upgrade - 22 packages will be upgraded - Update from Fedora Linux 41 (Forty One)”). This seems to be an upgrade of the kernel (to 6.12.15-200.fc41) and various package updates. As one example, openssh has an update to 9.9p1-3.fc41.

I was expecting that the same updates would also be available from the command line using dnf, but it seems like they aren’t. If I do sudo dnf --refresh upgrade, I see “Updating and loading repositories”, followed by a list of the same repositories listed in KDE Discover, but the output finishes with “Nothing to do”. If I check the installed versions of packages, they are lower than what Discover is offering me.

For example dnf list kernel* tells me my kernel packages are all at 6.12-13-200, and dnf list openssh tells me my openssh is at 9.9p1-2-fc41.

I might be missing something obvious as a noob, but I couldn’t figure out what is happening!

  • I don’t have any Flatpaks installed (I know any updates to them would show up in Discover but not dnf).
  • The repositories listed in the output of sudo dnf --refresh upgrade are the same ones that are shown in Discover.
  • It looks like in earlier releases, old-style dnf used a different cache from packagekit. But according to that thread, the discrepancy should go away in F41, because “dnf” now points to dnf5.

I’m sure this isn’t a big deal, I just couldn’t explain what I’m seeing! Why could this be happening?

It looks like you referring on that :

Currently, dnf, microdnf, and PackageKit use their own cache, leading to significant metadata redundancy. With dnf5 and dnf5daemon, which share metadata, this redundancy will be eliminated.
[/quote]

Unfortunately packagekit is still depending on dnf4 what means you still have two caches.
The change of dnf5 happened but as this are different projects, the change from package-kit not sole depends on fedora alias dnf5.

Unfortunately I could not find a schedule when this will be done. Stay tuned.

1 Like

Got it, I see. It doesn’t seem like a big issue but it’s good to understand why it happens.

Thanks for your help!

1 Like