KDE Discover installs outdated versions of programs, causing package downgrades

Hello

I am on Fedora KDE 44.

I sometimes use KDE Discover to install some software, and never had any issues. However, it seems that now it installs outdated versions. This was particularly odd, as I installed Haruna and it took too long to install. DNF history revealed that it downgraded the whole KDE Desktop from 6.7 to 6.6.4, and other dependencies, resulting in over 300 packages to be downgraded.

It seems that PackageKit uses the base “Fedora” repository instead of “Fedora Updates” to fetch the software by default. I even tried a Fedora 43 KDE in a virtual machine and it seems to fetch the latest versions for that Fedora version. After updating to 44, the repositories were switched, and on a fresh 44 install it’s the same.

I don’t know how PackageKit chooses the repository where to install, but for example the pkcon get-details has the repositories switched between 43 and 44.

Here’s the terminal output for the Kate package from Fedora 43 KDE:

And this one’s from Fedora 44 KDE:

KDE Discover shows Kate as version 25.12 on Fedora 44

Might there be some config options to change this, or is this a bug in the DNF backend?
Disabling base “Fedora” repository fixes the issue, but it might not be such a good idea.

This sounds like: Plasma Discover installs outdated native (RPM) packages from Fedora 44 repos - #4 by marko3209

That seems to be it, thank you!

BTW, “pkcon” is sort of deprecated. It’s currently suggested that “pkgcli” be used. “pkcon” is kept for compatibility with scripts that might still use it.