Red Hat Bugzilla – Bug 1302318
Exclude in dnf.conf affects output "dnf list installed"
Last modified: 2016-02-01 07:58:31 EST
Description of problem:
When excluding a package, "dnf list installed" doesn't show the package any more, although it's installed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. add exclude=kernel* in dnf.conf in the [main] section
2. dnf list installed kernel\*
Error: No matching Packages to list
Shows installed packages
From "man dnf.conf":
Exclude packages of this repository, specified by a name or a glob and separated by a comma, from all operations. Can be disabled using ``--disableexcludes`` command line switch.
tip: you can then exclude package just in the repo when you want it to be excluded.