Description of problem: This is content of my dnf.conf: ~~~ $ cat /etc/dnf/dnf.conf [main] gpgcheck=1 installonly_limit=3 clean_requirements_on_remove=True keepcache=True exclude=libreoffice-gtk2,libreoffice-help-en,hunspell-en,sane-backends-drivers-cameras,gnome-tweaks,openssl-pkcs11 ~~~ But the packages are not excluded from the transaction: ~~~ $ LANG=C.UTF-8 sudo dnf update --disablerepo=rhel7-csb -x kernel\* | grep openssl-pkcs11 openssl-pkcs11 x86_640.4.8-1.fc29 rawhide 57 k ~~~ Version-Release number of selected component (if applicable): $ rpm -q dnf dnf-3.2.0-2.fc29.noarch How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Packages excluded in dnf.conf are included. Expected results: Packages excluded in dnf.conf are excluded. Additional info:
This is actually a bit larger snippet: ~~~ ... snip ... Installing weak dependencies: beignet x86_64 1.3.2-5.fc29 rawhide 4.8 M compiler-rt x86_64 6.0.1-2.fc29 rawhide 1.9 M exiv2 x86_64 0.26-12.fc29 rawhide 886 k geolite2-city noarch 20180605-2.fc29 rawhide 19 M geolite2-country noarch 20180605-2.fc29 rawhide 1.0 M gnome-tweaks noarch 3.29.90.1-1.fc29 rawhide 338 k hunspell-en noarch 0.20140811.1-13.fc29 rawhide 193 k libguestfs-tools-c x86_64 1:1.39.8-1.fc29 rawhide 4.9 M libguestfs-xfs x86_64 1:1.39.8-1.fc29 rawhide 17 k libomp x86_64 6.0.1-3.fc29 rawhide 314 k libreoffice-gtk2 x86_64 1:6.0.6.1-7.fc29 rawhide 234 k libreoffice-help-en x86_64 1:6.0.6.1-7.fc29 rawhide 4.9 M mesa-libOpenCL x86_64 18.1.5-1.fc29 rawhide 311 k network-scripts-teamd x86_64 1.27-10.fc29 rawhide 11 k openssl-pkcs11 x86_64 0.4.8-1.fc29 rawhide 57 k python3-beaker noarch 1.10.0-1.fc29 rawhide 109 k python3-crypto x86_64 2.6.1-24.fc29 rawhide 477 k sane-backends-drivers-cameras x86_64 1.0.27-18.fc29 rawhide 31 k ... snip ... ~~~
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle. Changing version to '29'.
This seems to be resolved by an update to: ~~~ $ rpm -q libdnf libdnf-0.20.0-2.fc30.x86_64 ~~~
Command line argument "-x kernel\*" overrode the exclude from dnf.conf. Fixed by PR https://github.com/rpm-software-management/libdnf/pull/573