Bug 2583488 - exclude= line in dnf.conf should be ignored during queries
Summary: exclude= line in dnf.conf should be ignored during queries
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-24 16:44 UTC by Felix Miata
Modified: 2026-11-24 16:44 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Felix Miata 2026-11-24 16:44:02 UTC
original summary:
exclude= line in dnf.conf should be ignored during queries

The problem:
# dnf list *kernel-core*
Updating and loading repositories:
Last metadata expiration check: 0:00:07 ago on 2026-11-24 15:56:20.
Repositories loaded.
No matches found.
# dnf -q --enablerepo=updates-archive list --showduplicates --releasever=43 kernel-7\*
No matching packages to list
# grep excl /etc/dnf/dnf.conf
exclude= ... kernel* ...
# zypper se -s kernel-core | grep -v 'debug|devel|srcp' | egrep 'x86|noarch'| wc -l
69
# zypper se -s kernel-core | grep -v 'debug|devel|srcp' | egrep 'x86|noarch'| sort | tail
v  | kernel-core | package | 7.2.14-100.fc43  | x86_64 | Fedora 43 - x86_64 - Updates Archive
v  | kernel-core | package | 7.2.4-100.fc43   | x86_64 | Fedora 43 - x86_64 - Updates Archive
v  | kernel-core | package | 7.2.5-100.fc43   | x86_64 | Fedora 43 - x86_64 - Updates Archive
v  | kernel-core | package | 7.2.7-100.fc43   | x86_64 | Fedora 43 - x86_64 - Updates Archive
v  | kernel-core | package | 7.2.8-100.fc43   | x86_64 | Fedora 43 - x86_64 - Updates Archive
v  | kernel-core | package | 7.2.9-100.fc43   | x86_64 | Fedora 43 - x86_64 - Updates Archive
v  | kernel-core | package | 7.2.9-101.fc43   | x86_64 | Fedora 43 - x86_64 - Updates Archive
v  | kernel-core | package | 7.3.3-100.fc43   | x86_64 | Fedora 43 - x86_64 - Updates Archive
v  | kernel-core | package | 7.3.4-100.fc43   | x86_64 | Fedora 43 - x86_64 - Updates
v  | kernel-core | package | 7.3.4-100.fc43   | x86_64 | Fedora 43 - x86_64 - Updates Archive

Obviously kernels exist.

cf. zypper, where locked packages are ignored for query purposes, while for install/remove/update purposes, it asks what to do when locked package is encountered, either remove lock (which translates to ignore when lock contains a wildcard), or do not install/remove/update. Further, zypper provides addlock (al)/removelock (rl) cmdline interface rather than need to edit configfile, though editing remains an option.


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