Software sometimes becomes out of sync with changes made via dnf (and probably via pkcon)
Please describe the issue you’re experiencing:
If I perform this sequence of steps on a system which does not have a package (e.g. gnucash) installed.
- search for "gnucash" package in gnome-software
- install gnucash via dnf
- watch the gnome-software UI
- either:
- click the left chevron to return to search results, then the magnifying glass to return to the main window, then search for the application again, OR:
- close and reopen the gnome-software UI, and search for "gnucash" again OR:
- examine the list of installed applications)
Most of the time, Software will not update to reflect the current state of the system until I close and reopen the GUI.
Some of the time, Software will not update to reflect the current state of the system, even if I close and reopen the GUI.
I think that the bug I am reporting might be a duplicate of #1787 (closed), except that in my testing, the list of installed applications is in sync with the search results for the application. That is at odds with some comments in that bug made by mcrha , and I do not know if the state of affairs has changed, or if results are merely unreliable. (Testing does produce some unreliable/unrepeatable results, today.)
The inverse operation is slightly worse. Whereas if I add a package via dnf, Software will usually reflect the correct state if I re-open the window, if instead I start with a package installed, then look at that package in Software, and then remove it via dnf, the result is almost always that Software will continue to show the package installed, even if I close and reopen the GUI. Oddly: while the UI generally appears to indicate that the application is still installed, it does lose the "open" button that would launch the application if it were installed, almost immediately upon removal of the package.
What Linux distribution are you using, and what kind of package (RPM, deb, flatpak, etc.) are you experiencing the problem with?
Fedora 37, PackageKit-1.2.5-2.fc37, dnf