Description of problem: I was looking for the correct options to not install dependencies that are marked as `Recommends:`, but was not easy. Finally I found: dnf -y install XXX --setopt=install_weak_deps=False Version-Release number of selected component (if applicable): dnf-1.1.10-4.fc24.noarch Steps to Reproduce: 1. man dnf Actual results: Not clear how to omit weak deps. Expected results: Some paragraph that would describe on few examples how to not install deps marked as Recommends: or how to install deps marked as Suggests..
> Some paragraph that would describe on few examples how to not install deps marked as Recommends: It's described --setopt and install_weak_deps documented in dnf.conf(5). > or how to install deps marked as Suggests.. there's no such option/command, we use Suggests only for favouring dependencies.
we can document it in examples section.
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle. Changing version to '26'.
I created a pull-request with example (https://github.com/rpm-software-management/dnf/pull/855).
libdnf-0.9.3-1.fc26 dnf-plugins-core-2.1.3-1.fc26 dnf-2.6.2-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-6f4c06b2d7
dnf-2.6.2-1.fc26, dnf-plugins-core-2.1.3-1.fc26, libdnf-0.9.3-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-6f4c06b2d7
dnf-2.6.2-1.fc26, dnf-plugins-core-2.1.3-1.fc26, libdnf-0.9.3-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.