Description of problem: Fedora Docker container images contain the following in /etc/dnf/dnf.conf (among others): tsflags=nodocs Which results in smaller images because docs aren't installed, which is fine in most cases.. But it seems it's impossible to actually install the docs when one actually wants/needs them for some packages.. So this doesn't work: dnf reinstall git-core-doc --setopt='tsflags=' I also tried this variant, doesn't work either: dnf --setopt='tsflags=' reinstall git-core-doc Only way to get the docs installed is to first remove the tsflags=nodocs line from /etc/dnf/dnf.conf and *then* reinstall the rpms. For some reason dnf commandline options aren't respected and overriding options set in dnf.conf. Version-Release number of selected component (if applicable): dnf-2.7.5-1.fc26.noarch How reproducible: Always Steps to Reproduce: 1. Add "tsflags=nodocs" to /etc/dnf/dnf.conf 2. Try to install rpm with docs included: dnf reinstall git-core-doc --setopt='tsflags=' Actual results: docs aren't installed by dnf/rpm, setopt tsflags doesn't seem to override /etc/dnf/dnf.conf settings Expected results: dnf commandline options should override dnf.conf values and docs should be installed when requested from dnf commandline.
The --setopt option *appends* to the list of flags that set in configuration. There is really no way how to disable a flag this way. DNF team doesn't want to change existing behavior.
This is not how it works in yum/centos7. It allows config to be changed by using --setopt='tsflags='. Why is dnf behaviour different?
Good point about YUM compatibility. We'll look into this.
I created a patch that should solve the issue (https://github.com/rpm-software-management/dnf/pull/998).
This message is a reminder that Fedora 26 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '26'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 26 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
The issue is solved by dnf-3.0.1-1 that was released into rawhide.