Dnf shows updates - discover does not

Sorry for this noob question (I’m new to Fedora). But on my relatively fresh F44 installation, dnf check-update shows me plenty of package updates. But dicover doesn’t (even after refreshing). Why is that?

This usually happens because Discover and dnf don’t read the same data. Discover goes through PackageKit, which keeps its own metadata cache separate from dnf’s, so the two can get out of sync.

Yes, but when I click “Update”, shouldn’t Packagekit also provide the update information?

Yes, that’s how it’s supposed to work. Clicking refresh in Discover should make PackageKit check for fresh updates.

But sometimes the refresh doesn’t actually update the metadata, which can leave Discover showing “Up to date” even when DNF finds updates.

Try running:

pkcon refresh force
pkcon get-updates

If the updates show up there, we know PackageKit wasn’t picking them up before.

Yes, that worked. And Discover shows them after clicking “Update” again, as well. Thanks! (But it’s still … interesting behaviour.)