Created attachment 1173069 [details] installed-software-names_20160626.log Description of problem: With the attached file installed-software-names_20160626.log # dnf install $(cat installed-software-names_20160626.log) Produces the attached output dnf_output-1.txt And fails to install missing packages - eg, wine exists in installed-software-names_20160626.log, does not exist in dnf_output-1.txt and is not installed: # dnf list wine Last metadata expiration check: 1:55:16 ago on Mon Jun 27 16:57:32 2016. Available Packages wine.i686 1.9.12-1.fc24 updates wine.x86_64 1.9.12-1.fc24 updates Version-Release number of selected component (if applicable): # rpm -qa dnf dnf-1.1.9-2.fc24.noarch How reproducible: Always Steps to Reproduce: 1. Produce a list "list" of packages to install 2. Run # dnf install $(cat list) 3. As above Actual results: Nothing installed Expected results: Missing packages from list installed Additional info: https://ask.fedoraproject.org/en/question/77770/is-it-possible-to-get-dnf-to-install-packages-listed-in-a-text-file/
Created attachment 1173070 [details] dnf_output-1.txt
Dnf install fails (by default) if one of the packages on commandline can't be installed. And there's a lot of them in your file. If you want dnf to ignore missing packages use dnf install --setopt strict=false $(cat installed-software-names_20160626.log)
Very many thanks
I wonder if this 'notabug' is in fact a bug - the bug being that dnf fails silently under this use scenario rather than providing some meaningful output? Reopening in the hope of a positive response.
I think this problem will be fixed by my patch https://github.com/rpm-software-management/dnf/pull/782. Hope that it helps
dnf-plugins-extras-2.0.1-1.fc26 dnf-plugins-core-2.1.0-1.fc26 libdnf-0.9.0-1.fc26 dnf-2.5.0-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-92e5a01da8
dnf-2.5.0-1.fc26, dnf-plugins-core-2.1.0-1.fc26, dnf-plugins-extras-2.0.1-1.fc26, libdnf-0.9.0-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-92e5a01da8
dnf-2.5.0-1.fc26 dnf-plugins-core-2.1.0-1.fc26 dnf-plugins-extras-2.0.1-1.fc26 dnfdaemon-0.3.17-3.fc26 libdnf-0.9.0-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-92e5a01da8
dnf-2.5.0-2.fc26 dnf-plugins-core-2.1.0-1.fc26 dnf-plugins-extras-2.0.1-1.fc26 dnfdaemon-0.3.18-1.fc26 libdnf-0.9.0-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-92e5a01da8
dnf-2.5.0-2.fc26, dnf-plugins-core-2.1.0-1.fc26, dnf-plugins-extras-2.0.1-1.fc26, dnfdaemon-0.3.18-2.fc26, libdnf-0.9.0-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-92e5a01da8
dnf-2.5.0-2.fc26, dnf-plugins-core-2.1.0-1.fc26, dnf-plugins-extras-2.0.1-1.fc26, dnfdaemon-0.3.18-2.fc26, libdnf-0.9.0-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.