Red Hat Bugzilla – Bug 1280590
Software updates applet ignores excludes in dnf.conf
Last modified: 2015-11-30 10:51:50 EST
Description of problem:
Packages that have been downgraded to a previous Fedora release and excluded from automatic updating by adding an exclude option to dnf.conf still appear as updates in the "Software updates" Plasma applet.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Downgrade some packages, say xorg-x11-server-* and xorg-x11-drv-* to the F22 build.
2. Add "exclude=xorg-x11-server-* xorg-x11-drv-*" to the [main] section of /etc/dnf/dnf.conf.
3. Verify that "dnf update" will not update these packages to the F23 version.
The applet will warn that there are a number of available software updates list the excluded packages for updating.
No listing of excluded packages by the "Software updates" Plasma applet.
I have observed that this behaviour persists even after the applet refreshes the metadata caches ("Last updated" timer in the applet resets).
Unsurprisingly, plasma-pk-updates simply connects to PackageKit for information about package updates. Much to my surprise, however, the hawkey/libhif PackageKit backend completely bypasses DNF and goes to libsolv directly to perform its own dependency resolution.
I have found no documentation on how to configure package excludes either in PackageKit or the backend, but I feel such a feature should be available to advanced users. Presumably, configuring excludes should be possible independently of the backend, so I've chosen to move the bug to the PackageKit component.
One workaround, add excludes= entries to .repo files containing the packages you want skipped.
See also bug #1237014 (same topic)
*** This bug has been marked as a duplicate of bug 1256108 ***