Need help solving a DNF issue

I have updates available in GNOME Software:

Yet when I run sudo dnf update I get:

Dependencies resolved.
Nothing to do.
Complete!

Why is that and how do I fix that?

Gnome Software and DNF don’t share the same metadata, so just refresh Gnome Software and run sudo dnf update --refresh

see also: Why does the software app still show pending updates when dnf does not?

I thought that was the issue too. Except when I run flatpak update everything is up-to-date.

And the packages are rpm packages:

ah, sorry, I modified my post above after realizing your pending updates aren’t flatpaks.

Now, looks like that meta data are not in sync. Just refresh them for both Software and dnf.

How do I do that nvm

I ran sudo dnf update --refresh and get:

Fedora 40 - x86_64                                      34 kB/s |  53 kB     00:01    
Fedora 40 openh264 (From Cisco) - x86_64               481  B/s | 989  B     00:02    
Fedora 40 - x86_64 - Updates                            22 kB/s |  47 kB     00:02    
Fedora 40 - x86_64 - Updates                            40 kB/s | 444 kB     00:11    
google-chrome                                          2.8 kB/s | 1.3 kB     00:00    
RPM Fusion for Fedora 40 - Nonfree - NVIDIA Driver      14 kB/s |  16 kB     00:01    
RPM Fusion for Fedora 40 - Nonfree - Steam              18 kB/s |  14 kB     00:00    
Dependencies resolved.
Nothing to do.
Complete!
  • It did update that metadata: Last metadata expiration check: 0:00:04 ago
  • still have updates in Software

refresh Gnome Software then

Updates are still in Gnome Software after a refresh. The issue isn’t GNOME Software though

I think I figured it out. GNOME Software probably automatically installed that updates. I’m assuming this because The update button says Restart & Update instead of Install. So running sudo dnf update won’t pickup new updates.

I could be wrong and still experience this issue when I get more updates.

Gnome Software use different updater that dnf .It is call packagekitd that include dnf and flatpak updates.Have totally different database to collect updates and because you have notification that have updates.Just follow instruction of “software” update and reboot to provide update process

Just follow instruction of “software” update and reboot to provide update process

Updated now (Using Software), however would I still have this issue with the dnf command in future?

Because the metadata collected by the 2 different package manager methods is different, after using dnf to update there may still be notifications in the gnome software app about updates. That will automatically disappear when packagekit next updates its metadata and things are once again in sync on your PC.

The metadata occasionally gets out of sync. Just use the manager you prefer (dnf it seems) and ignore the other one.

No, those are updates pending to be installed when you reboot.

1 Like