Bug 1449598 - RFE: dnf shouldn't stop processing the command line at the first unknown package
Summary: RFE: dnf shouldn't stop processing the command line at the first unknown package
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1208918
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-10 10:50 UTC by Robin Hack
Modified: 2017-05-10 11:27 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of: 1208918
Environment:
Last Closed: 2017-05-10 11:27:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Robin Hack 2017-05-10 10:50:13 UTC
Hello. I see same results with dnf-1.1.10-6.fc25.noarch.

dnf install samba ntpd smbd

[root@qeos-103 force-user]# dnf install samba ntpd smbd
Last metadata expiration check: 0:08:00 ago on Wed May 10 06:41:53 2017.
No package ntpd available.
No package smbd available.
Error: Unable to find a match.

+++ This bug was initially created as a clone of Bug #1208918 +++

Description of problem:

With you I nused to use the following construct:
yum install -y `cat putpack`
where putback contained a list of packages I had removed because the installed version was not currently in any repo. They typically were packages that were dropped or had soname conflicts. yum would report on packages that no longer existed and still try to install the rest. dnf stops processing at the first unknown package which is annoying if there are a number of dropped packages, since I only find out about one for each run. I don't so much mind that when there is a problem that dnf doesn't do anything, but it would be nice if it reported all of the unknown packages when it runs.

--- Additional comment from Honza Silhan on 2015-04-07 15:33:45 EDT ---



--- Additional comment from Radek Holy on 2015-04-08 01:55:19 EDT ---

With all the respect, I don't think this is a duplicate of that bug. The request is to print all of the packages that were not found and stop the process after that. It makes a lot of sense to me.

--- Additional comment from Radek Holy on 2015-06-18 04:26:52 EDT ---



--- Additional comment from Andrew McNabb on 2015-06-18 10:28:17 EDT ---

Yes, I agree that this is not a duplicate of bug 1197456.

If a command contains 10 missing packages, then one must repeatedly remove the missing package that dnf reports and rerun. The process would be far less tedious if dnf reported upfront all missing packages that had been requested.

--- Additional comment from Tom Horsley on 2015-07-18 18:01:52 EDT ---

Amen! I'm trying to update my f22 partition to have as many of the same packages installed as were on my f20 partition, and only telling me about 1 at a time is incredibly worthless.

--- Additional comment from Honza Silhan on 2015-07-21 08:01:15 EDT ---

PR: https://github.com/rpm-software-management/dnf/pull/306

--- Additional comment from Fedora Update System on 2015-08-10 06:05:26 EDT ---

dnf-plugins-core-0.1.10-1.fc23,dnf-1.1.0-1.fc23,hawkey-0.6.0-1.fc23 has been submitted as an update for Fedora 23.
https://admin.fedoraproject.org/updates/dnf-plugins-core-0.1.10-1.fc23,dnf-1.1.0-1.fc23,hawkey-0.6.0-1.fc23

--- Additional comment from Fedora Update System on 2015-08-10 06:49:29 EDT ---

dnf-plugins-core-0.1.10-1.fc22,dnf-1.1.0-1.fc22,hawkey-0.6.0-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/dnf-plugins-core-0.1.10-1.fc22,dnf-1.1.0-1.fc22,hawkey-0.6.0-1.fc22

--- Additional comment from Fedora Update System on 2015-08-10 22:10:42 EDT ---

Package dnf-plugins-core-0.1.10-1.fc22, dnf-1.1.0-1.fc22, hawkey-0.6.0-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.1.10-1.fc22 dnf-1.1.0-1.fc22 hawkey-0.6.0-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-13162/dnf-plugins-core-0.1.10-1.fc22,dnf-1.1.0-1.fc22,hawkey-0.6.0-1.fc22
then log in and leave karma (feedback).

--- Additional comment from Fedora Update System on 2015-08-14 22:14:02 EDT ---

dnf-plugins-core-0.1.10-1.fc22, hawkey-0.6.0-1.fc22, dnf-1.1.0-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

--- Additional comment from Fedora Update System on 2015-08-19 03:51:15 EDT ---

dnf-plugins-core-0.1.10-1.fc23, hawkey-0.6.0-1.fc23, dnf-1.1.0-2.fc23 has been pushed to the Fedora 23 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 1 Igor Gnatenko 2017-05-10 10:52:14 UTC
Please, don't clone bugs. it is just creating something what is not understandable. Please write new bug with just description what bug is.

Comment 2 Robin Hack 2017-05-10 11:23:56 UTC
Hello. Maybe some basic of reading texts should help you to understand.


# dnf install samba ntpd smbd

[root@qeos-103 force-user]# dnf install samba ntpd smbd
Last metadata expiration check: 0:08:00 ago on Wed May 10 06:41:53 2017.
No package ntpd available.
No package smbd available.
Error: Unable to find a match.

This should pass and ignore non-existed packages.

Can you please confirm that you are able to read?

Comment 3 Igor Gnatenko 2017-05-10 11:27:01 UTC
use --setopt=strict=False if you want non-strict behavior.


Note You need to log in before you can comment on or make changes to this bug.