Skip to content

"excludepkgs" from /etc/dnf/dnf.conf is ignored #1721

@sidt4

Description

@sidt4

Opening new issue here as per PackageKit/PackageKit#196 (comment):

Issue still seen in Fedora 42, where PackageKit (which uses libdnf) still ignores "excludepkgs".

# cat /etc/dnf/dnf.conf 
[main]
excludepkgs="*"
# dnf install emacs
Updating and loading repositories:
Repositories loaded.
Failed to resolve the transaction:
Argument 'emacs' matches only excluded packages.
$ pkcon install emacs
Resolving                               [=========================]         
Starting                                [=========================]         
Testing changes                         [=========================]         
Finished                                [                         ] (0%)  
The following packages have to be installed:
 emacs-1:30.1-13.fc42.x86_64	GNU Emacs text editor
 emacs-common-1:30.1-13.fc42.x86_64	Emacs common files
 emacsclient-1:30.1-13.fc42.x86_64	Remotely control GNU Emacs
 gdk-pixbuf2-modules-extra-2.42.12-3.fc42.x86_64	Extra image loaders for gdk-pixbuf2
 info-7.2-3.fc42.x86_64	A stand-alone TTY-based reader for GNU texinfo documentation
 libXaw-1.0.16-3.fc42.x86_64	X Athena Widget Set
 libgccjit-15.0.1-0.11.fc42.x86_64	Library for embedding GCC inside programs and libraries
 libotf-0.9.16-6.fc42.x86_64	A Library for handling OpenType Font
 libtree-sitter-0.25.2-8.fc42.x86_64	Incremental parsing library for programming tools
 libtree-sitter-java-0.23.5-1.fc42.x86_64	Java grammar for Tree-sitter
Proceed with changes? [N/y] y
$ pkcon --version
1.2.8
15:19:49	PackageKit-DNF      Using libdnf 0.73.4
15:19:49	PackageKit-DNF      Using librepo 1.19.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions