Bug 1280590 - Software updates applet ignores excludes in dnf.conf
Summary: Software updates applet ignores excludes in dnf.conf
Keywords:
Status: CLOSED DUPLICATE of bug 1256108
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: KDE SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-12 03:14 UTC by Benedikt Gollatz
Modified: 2019-11-27 12:05 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-30 15:51:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Benedikt Gollatz 2015-11-12 03:14:30 UTC
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):
plasma-pk-updates-0.2-5.fc23.x86_64


How reproducible:
Always


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.


Actual results:
The applet will warn that there are a number of available software updates list the excluded packages for updating.


Expected results:
No listing of excluded packages by the "Software updates" Plasma applet.


Additional info:
I have observed that this behaviour persists even after the applet refreshes the metadata caches ("Last updated" timer in the applet resets).

Comment 1 Benedikt Gollatz 2015-11-12 17:58:20 UTC
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.

Comment 2 Rex Dieter 2015-11-12 18:02:43 UTC
One workaround, add excludes= entries to .repo files containing the packages you want skipped.

See also bug #1237014  (same topic)

Comment 3 Rex Dieter 2015-11-30 15:51:50 UTC

*** This bug has been marked as a duplicate of bug 1256108 ***

Comment 4 Jonathan Wakely 2019-11-27 12:05:05 UTC
(In reply to Rex Dieter from comment #2)
> One workaround, add excludes= entries to .repo files containing the packages
> you want skipped.

N.B. that requires listing every package out in full. Unlike dnf, PackageKit does NOT support wildcards like exclude=*foo* .repo files.


Note You need to log in before you can comment on or make changes to this bug.