Bug 1615377 - "excludes" option in dnf.conf does not work
Summary: "excludes" option in dnf.conf does not work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-13 13:08 UTC by Vít Ondruch
Modified: 2018-10-03 13:44 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-10-03 13:44:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Vít Ondruch 2018-08-13 13:08:14 UTC
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:

Comment 1 Vít Ondruch 2018-08-13 13:10:08 UTC
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 ...
~~~

Comment 2 Jan Kurik 2018-08-14 08:36:39 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 3 Vít Ondruch 2018-10-03 13:29:49 UTC
This seems to be resolved by an update to:

~~~
$ rpm -q libdnf
libdnf-0.20.0-2.fc30.x86_64
~~~

Comment 4 Jaroslav Rohel 2018-10-03 13:44:59 UTC
Command line argument "-x kernel\*" overrode the exclude from dnf.conf.

Fixed by PR https://github.com/rpm-software-management/libdnf/pull/573


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